forked from xyz2tex/dot2tex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGES
312 lines (241 loc) · 10.9 KB
/
CHANGES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
dot2tex change log
==================
Here you can see the full list of changes between each dot2tex release.
2.9.1
-----
Not released yet.
- Preprocessing head and tail labels now works in the ``duplicate`` mode.
- Added support for preprocessing head and tail labels (pstricks).
- Relaxed syntax for including external dot files. Comments are now allowed after ``\input{}``.
- All xdot coordinates are now parsed as float (issue #31).
- Added the svgnames option when loading xcolor in the default templates (issue #25).
2.9.0
-----
Released 2014-05-16.
- Added support for preprocessing head and tail label (pgf and tikz).
- Graphviz arrow styles are now mapped to corresponding PGF/TikZ arrows.
- Project is now hosted on GitHub.
- Numbers are now outputted as floats. Some versions of Graphviz uses scientific notation
for small numbers. TeX does not handle that well [issue #11].
- Added support for more Graphviz node shapes when using the tikz output format:
square, diamond, trapezium and star.
- Fixed compatibility issue with Pyparsing 2.0.1.
- Fixed a bug in preprocessing triggered by using the ``--styleonly`` option
with the tikz output format.
- The number of sides in the hexagon tikz shape is now correct. Thanks to Jean Pichon for
reporting this.
- Added support for the point shape when using the TikZ output format.
- Node labels are no longer shown when the node shape is point and the output
format is TikZ.
- Fixed issue 14. Parsing of dimension data from the TeX-log is now
more robust and the ``--autosize`` option should now work in Cygwin.
- Added the ``--progoptions`` option for passing options to the graph layout program.
- Documentation is now built using Sphinx
- Cleaned up internal error handling.
- When dot2tex fails to parse a graph, dot2tex will now raise an exception
and quit. In previous versions dot2tex attempted to run the graph through
Graphviz first.
- Log handlers are no longer configured when using dot2tex as a library.
- Fixed [issue 20]. ``format=positions`` no longer fails if node coordinates
are floats. Thanks to Nicolas Thiery for reporting this bug.
- Fixed several bugs in the parsing of ID numerals. The bug caused labels
like ``label="1.2.3.4"`` to be interpreted as ``label=1.2`` [issue 17].
Thanks to Vsevolod for reporting this.
- ``stdout`` is now properly restored after parsing dot data. Thanks to Nicolas Thiery
for the patch.
- Parentheses, ``()``, in tikz node names are now replaced with ``{}``. Parentheses are not valid
characters in node names. Tanks DamienJadeDuff for reporting this.
2.8.7
-----
Released 2009-10-05.
- Edges with no edge points are now properly handled.
- Added the ``positions`` output format that returns a dictionary with node
names as keys and (x, y) tuples as values. Works only when called as a module.
Feature suggested by Nicolas Thiery.
- Fixed handling of ``stderr`` when creating xdot data. Thanks to Nicolas Thiery
for reporting this bug.
- Exceptions are now caught when accessing invalid win32 registry keys.
Updated Graphviz registry key.
Thanks Andreas Frische for reporting this.
- Fixed templates so that crop code is not inserted when preprocessing the graph.
2.8.6
-----
Released 2009-07-09.
- Added the ``--pgf118`` option for generating code compatible with PGF 1.18 and
earlier.
- Fixed a bug in handling of the special ``d2toptions`` attribute. It was read
even when commented out. Thanks Misha Aizatulin for reporting this.
- Fixed label alignment issues when using recent versions of Graphviz.
- Silenced os.popen3 deprecation warning in Python 2.6.
- Fixed bug in handling of d2toption when dot2tex was used as a module.
2.8.5
-----
Released 2009-03-02
- Updated TikZ/PGF templates to use ``line join=bevel`` instead of
``join=bevel``. The name of the option was changed in PGF 2.0 and ``join``
is now used by TikZ's chain library. The change will break PGF 1.18
compatibility.
- Unquoted unicode strings are now correctly parsed.
2.8.4
-----
Released 2008-09-23.
- Fixed a really stupid bug in the quoting of the Graphviz binaries.
The code in the 2.8.3 release did not quote the binaries at all.
Thanks Peter Collingbourne for spotting this!
2.8.3
-----
- File paths to the Graphviz executables are now quoted. This solves
an issue with paths containing spaces. Thanks Pedro Teixeira and
Mateusz for reporting this.
- Fixed a template typo. Dot2tex looks for the ``<<start_figonlysection>>``,
but ``<<startfigonlysection>>`` is used in the documentation. Now both
versions can be used.
- Added ``--cache`` command line option. If caching is enabled, dot2tex
will check if the input graph has been processed before. If it has
not changed the graph will not be converted (not documented yet).
2.8.2
-----
- Fixed a parsing bug in the detection of output format in cases like::
dot2tex --preproc example.dot | dot2tex
Thanks Peter Collingbourne for the patch!
- Removed obsolete shebang line from dot2tex.py
2.8.1
-----
- Fixed a severe bug in the preprocessing code for the tikz output format.
2.8.0
-----
Released 2008-05-05.
- Node names are now filtered to ensure that they are valid TikZ node names.
- Correct fill and stroke color is now set when using the tikz and pst output formats.
- Invisible nodes now generate zero-size coordinates when using the tikz
output format. This allows drawing edges to/from invisible nodes.
- Added dropshadows.dot and sportsbracket.dot examples.
- Concentrated edges are now supported in the pgf and pstricks output formats.
- The dot parser now correctly parses quoted string like::
label="A \"quote\""
label="\n\nA"
- The dot parser now supports concatenation of double quoted strings using
the + character. Example::
a [label="partA" + "partB" + "partC"];
- Added support for edge compass points when using the tikz output format.
Example: ``a.n -> b.e`` is translated to ``\draw (a.north) ... (b.east)``
- The external pydot module has been replaced with a custom version
of the pydot's dot parser. Available in the dotparsing.py file.
- Added support for file input. If the input data contains the line
``\input{filename.dot}``
filename.dot will be loaded and processed. (Thanks Kim Sullivan for the idea)
- Added interface for using dot2tex as a library. Example::
import dot2tex
testgraph="digraph G {a_1-> a_2 -> a_3 -> a_1;}"
texcode = dot2tex.dot2tex(testgraph,format='tikz',crop=True)
2.7.0
-----
Released 2007-12-10.
- Added the ``--codeonly`` option. When this option is used, only draw
commands are generated. Intended for use with the dot2texi package.
- Minor improvements to the documentation.
- Added ``graphanndtti.tex`` example.
2.6.1
-----
- Fixed missing header in the file dot2tex/dotex
- Fixed various typos in the documentation
2.6.0
-----
Released 2007-09-14.
- Added the ``--autosize`` option. Equivalent to::
> dot2tex --preproc ex.dot | dot2tex
- Added the ``--prog`` option for choosing between dot, neato, circo, towpi
and fdp, when the input is in plain dot format.
- Added the special ``d2toptions`` graph attribute. Allows you to specify
dot2tex options in command line format.
- Added a dot2tex wrapper script and changed setup.py to make it fully
compatible with both setuptools and distutils. A dot2tex module will
now be put in the site-packages directory and a wrapper script in the
scripts directory.
- Fixed typo in error message.
- Added ``--runtests`` option to run doc tests (experimental).
- Fixed issue with wrong template when both the --preview and --figonly
options were used.
2.5.0
-----
Released 2007-07-28.
- Added the TikZ output format (``-f tikz``)
- Added the ``lblstyle`` attribute for styling graph, node and edge labels.
(PGF and TikZ only)
- Added the ``--tikzedgelabels`` option for placing edge labels without
using xdot edge label information (tikz and pgf output format only).
- Added a topath edge attribute for using TikZ' to paths (tikz and
pgf only).
- Information about the selected output format is now stored in the graph
generated in preprocessing mode. No longer necessary to specify an
output format in the final run.
- Edges with the same source and dest are now handled correctly in
preprocessing mode. Only the edge defined last was preprocessed.
- Added the ``--nodeoptions`` and ``--edgeoptions`` options and corresponding
``d2tnodeoptions`` and ``d2tedgeoptions`` graph attribute (tikz only).
- Added the ``exstyle`` attribute. Ignored in preprocessing mode. (pgf and
tikz only)
2.0.3
-----
- Special TeX char escape code rewritten. Now works as intended.
The ``$`` character was not properly escaped.
- Added ``&`` to list of special characters.
2.0.2
-----
- Fixed a severe bug in the interpretation of color attributes in edges.
Colors were not reset after a change to a single edge color.
2.0.1
-----
- Node margins are now interpreted correctly for nodes with size < minsize.
- Nodes now grow correctly to fit labels when size > minsize
- Updated documentation with an example on how to change node sizes.
2.0.0
-----
Released 2007-04-23
- Fixed a number of preprocessing bug related to how node attributes are
interpreted.
- Added automata.dot example.
- Changed the name of the ``--preview`` option to ``--crop``.
- Added the --preproc option for preprocessing labels with preview.sty.
- Added the --debug option. Writes detailed debug information to dot2tex.log.
- The ^ char is now properly escaped.
- Default PGF/TikZ template now requires PGF v >= 1.09.
- Added new template tags to support preprocessing mode.
- Templates for preprocessing, output and figonly mode can now be put
in the same file.
- Added the ``--alignstr`` option.
- Added the ``--valignmode`` option.
- Added the ``--usepdflatex`` option.
1.5.0
-----
Released 2006-10-22
- Added a few more helpfull error messages.
- Added the ``--figonly`` option.
- The ``$`` character is now properly escaped.
- Fixed a few issues when converting between Graphviz to backend styles.
- Fixed scoping issues when drawing edges in duplicate mode.
- Added more intelligent detection of xdot input. Older versions of
Graphviz does not include the ``xdotversion`` attribute in the
output.
- Styles are now transfered to the PSTricks and PGF/TikZ backend.
- Added a force straight line option to avoid using curves for
straight edges.
- PGF/TikZ is now set as the default backend.
- Fixed a line ending issue in data converted internally to the xdot format.
- Added the ``-V`` version command line switch
- Added the ``--encoding`` option
- Added option for switching node and graph draw order.
- Fixed bug in PGF/TikZ color handling
- Added the ``--preview`` option to crop graphs
- Added ``--figpreamble`` and ``--figpostamble`` options and graph attributes.
- Added ``--docpreamble`` option and ``d2tdocpreamble`` graph attribute
- Added ``--graphstyle`` option
- Added ``--gvcols`` option
- Changed default PGF/TikZ arrow type to >=latex'
1.0.1
-----
- Fixed bug in gvcols.tex
1.0.0
-----
Released 2006-09-10
- First public release.