dot2tex - A Graphviz to LaTeX converter
The purpose of dot2tex is to give graphs generated by Graphviz a more LaTeX friendly look and feel. This is accomplished by converting xdot output from Graphviz to a series of PSTricks or PGF/TikZ commands. This approach allows:
- Typesetting labels with LaTeX, allowing mathematical notation.
- Using native PSTricks and PGF/TikZ commands for drawing arrows (optional).
- Using backend specific styles to customize the output
New. Dot2tex can preprocess graphs using the preview package. Information about label sizes will be extracted and used to get correctly sized nodes and edge labels.
The figure below shows the difference between Graphviz's PS rendering and the dot2tex/PSTricks rendering.
Dot2tex is written in Python. The source code is available under an MIT license. Go to the download section for instructions on how to download and install dot2tex. A documentation page is also available.
New: Belorussian translation of the dot2tex description.
Feedback and support
Please contact me if you have ideas for improvements or find bugs.
There is also an online forum/mailing list available: dot2tex-users.
A few examples of dot2tex' features are shown below. Click on the images to download a PDF version. More examples are available in the gallery.
The following graph shows that dot2tex supports transparent nodes when using the PGF/TikZ backend.