Skip to content

dot2tex "eats" escaped backslashes from labels in raw mode #106

Description

@bmateu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions