dot2tex - multiline graphviz node with math mode -


i have node represents multiline label in math mode. however, failed include newline symbol \n node label. here try

\begin{dot2tex}[neato,scale=.5,options=-t math] digraph g { c[shape=none,label="x_1",pos="1,.25!"]; d[label="d",pos=".5,-1.6!"];   } \end{dot2tex} 

how can add newline node c?

from dot2tex documentation page:

the \ character needs escaped \\ if used in label attribute.

therefore, label="first line\\\\second line" (four backslashes) should result in latex newline sequence (can't test though).


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -