Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL attribute neglected - active hyperlinks lost #69

Open
bruceleerabbit opened this issue Aug 8, 2019 · 1 comment
Open

URL attribute neglected - active hyperlinks lost #69

bruceleerabbit opened this issue Aug 8, 2019 · 1 comment

Comments

@bruceleerabbit
Copy link

bruceleerabbit commented Aug 8, 2019

When dot code contains the URL attribute such as this:

  digraph G {
    node [shape="circle"];
    x -> y [label="hotlink", URL=<https://github.com/kjellmf/dot2tex/issues/69>];
  }

the attribute is being ignored and the resulting LaTeX code does not have the link. The output is something like this:

\begin{tikzpicture}[>=latex,line join=bevel,]
[...]
  \draw (74.932bp,42.257bp) node {$hotlink$};
[...]
\end{tikzpicture}

That's just a label named "hotlink" with no effect when clicked. This is what it should be:

\usepackage{hyperref}
[...]
\begin{tikzpicture}[>=latex,line join=bevel,]
[...]
  \draw (74.932bp,42.257bp) node {\href{https://github.com/kjellmf/dot2tex/issues/69}{hotlink}};
[...]
\end{tikzpicture}
@kjellmf
Copy link
Collaborator

kjellmf commented Aug 8, 2019

This should be pretty straightforward to implement. I'll add it to my todo list, but dot2tex is unfortunately low on my priority list at the moment.

Ref:
https://www.graphviz.org/doc/info/attrs.html#d:URL
https://www.graphviz.org/doc/info/attrs.html#k:escString

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

No branches or pull requests

2 participants