With the input dot file:
digraph test {
100 -> 102 [label="Test raw \\latex output \\textit{italic text}"];
}
compiled with dot2tex --texmode raw --format tikz test.dot
the tikz draw command for the label is
\draw (176.04bp,62.625bp) node {Test raw latex output textit{italic text}};
while the expected result according to the documentation is
\draw (176.04bp,62.625bp) node {Test raw \latex output \textit{italic text}};
I've tried to escape 1, 2, 3, 4 times the backslash but it still produce result without any backslalshes.
Surprisingly, when adding --tikzedgenodes option, the backslashes are escaped correctly.
With the input dot file:
compiled with
dot2tex --texmode raw --format tikz test.dotthe tikz draw command for the label is
\draw (176.04bp,62.625bp) node {Test raw latex output textit{italic text}};while the expected result according to the documentation is
I've tried to escape 1, 2, 3, 4 times the backslash but it still produce result without any backslalshes.
Surprisingly, when adding
--tikzedgenodesoption, the backslashes are escaped correctly.