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

  • Thread starter Thread starter Gavin Harper
  • Start date Start date
  • Tags Tags
    Dot
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
2 replies · 9K views
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.