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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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