You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function is_multiline_labelhere is correctly detecting when a label is supposed to be considered multiline according to the graphviz format documented here, but this means that one cannot include any LaTex that begins with \l in a label name. For example, with -t math, the following graph isn't parsed the way I expect.
The \leq is interpreted as indicating a multiline label with eq at the beginning of the second line, whereas I'm trying to render a "<=" sign in math mode.
I guess there is no perfect solution to this, since the dot syntax is in direct conflict with LaTex syntax on this. A flag indicating that the multiline detection should be skipped would be one workaround, although I actually do sometimes want multiline labels and to use \leq (just skipping the check for \l would be good enough. @kjellmf I'm happy to try to submit a PR if you would indicate what you think the best solution is. Of course, I can also just make this change in my local copy and be done with it.
I know you were asking for a new maintainer. I find this package very useful, I've unfortunately already adopted a lot of orphaned packages that are closer to my own research and I can't really take on another one.
The text was updated successfully, but these errors were encountered:
tkralphs
added a commit
to tkralphs/dot2tex
that referenced
this issue
Feb 10, 2020
The function
is_multiline_label
here is correctly detecting when a label is supposed to be considered multiline according to the graphviz format documented here, but this means that one cannot include any LaTex that begins with\l
in a label name. For example, with-t math
, the following graph isn't parsed the way I expect.The
\leq
is interpreted as indicating a multiline label witheq
at the beginning of the second line, whereas I'm trying to render a "<=" sign in math mode.I guess there is no perfect solution to this, since the dot syntax is in direct conflict with LaTex syntax on this. A flag indicating that the multiline detection should be skipped would be one workaround, although I actually do sometimes want multiline labels and to use
\leq
(just skipping the check for\l
would be good enough. @kjellmf I'm happy to try to submit a PR if you would indicate what you think the best solution is. Of course, I can also just make this change in my local copy and be done with it.I know you were asking for a new maintainer. I find this package very useful, I've unfortunately already adopted a lot of orphaned packages that are closer to my own research and I can't really take on another one.
The text was updated successfully, but these errors were encountered: