Is There a Way to Include Subscripts in GraphViz/dot Graphs?

  • Thread starter Thread starter Gavin Harper
  • Start date Start date
  • Tags Tags
    Dot
AI Thread Summary
The discussion centers on the need for a method to include subscripts in graph vertices when using GraphViz/dot for LaTeX documents. Currently, users rely on dot2tex for this functionality. However, it has been noted that Emden Gansner and Dwight Perry have implemented a native feature for subscripts in the latest development snapshot of GraphViz, which is expected to be included in the upcoming stable release. This new feature may require the use of a cairo back end for proper functionality. Additionally, one user mentioned transitioning to TikZ in TeX to eliminate the extra step of compiling a separate file, indicating a preference for a more streamlined process.
Gavin Harper
Messages
16
Reaction score
0
Currently I am forced to use dot2tex to convert my graphs from .dot to .tex for inclusion in a latex document as I cannot find a working method for including subscripts in my graph vertices, for example: v1, v2.

The dot2tex method is fine but I would like to know if a "native" functionality exists within GraphViz/dot.

Thank you
 
Physics news on Phys.org
Funny you should ask. Emden Gansner and Dwight Perry implemented this feature in the current development snapshot, which in a few days should become the next stable release. It may require using a cairo back end (e.g. -Tpng:cairo).
 
truenorth said:
Funny you should ask. Emden Gansner and Dwight Perry implemented this feature in the current development snapshot, which in a few days should become the next stable release. It may require using a cairo back end (e.g. -Tpng:cairo).

Thank you for the update! I am now just using Tikz in TeX now as it also avoids the redundant step of compiling a separate file.
 

Similar threads

Replies
5
Views
3K
Replies
4
Views
2K
Replies
12
Views
3K
Replies
2
Views
14K
Replies
4
Views
2K
Replies
3
Views
2K
Back
Top