AFAIK there is no Graphviz mechanism for specifying something as “clickable” or “hyperlinked.” Graphviz has a notion of things like “URLs” and “tooltips,” but what actual UX these translate to is entirely up to downstream tools. I guess this is sort of an impedance mismatch. Clicking a link launches a browser from the PDF doc. The hyperref LaTeX package enables you to put hyperlinks to URLs in your document, thus making the document interactive. Clickable in what? Surely this depends on what output format you’re producing? I just know one or two times I ran into a bizarre problem with my LaTeX code not being compiled correctly, and someone said use XeLaTeX and LuaLaTeX instead, and it fixed my problem. There is also XeLaTeX and LuaLaTeX tools, but I’m not real clear on what they offer. So if we must import a PosScript file from graphviz, then we must use the plain latex /tool/ to create a PostScript doc, convert to PDF, and give up some PDF features. The problem is that pdflatex does not support importing PostScript, so if you have \includegraphics in the tex doc, the pdflatex tool will reject it. You might be wondering why even consider the *.tex => DVI => PS => PDF route, as opposed to *.tex => PDF. IIRC there is a way to embed hyperlinks in the DVI and make them appear in a PDF (possibly with an extra PostScript middlestep), but I guess that’s only useful if hyperlinks is the only special PDF feature the doc uses. You can also get a PDF the old way: *.tex => DVI => PDF using the dvipdf tool for the last step. If you go straight from *.tex source to PDF using pdflatex, all the special PDF features are honored (which has lots of capabilities like embedding other (MIME specified) files in the PDF, and having hyperlinks to URLs that will launch when clicked). DVI files are then converted to PostScript or PDF, or other formats (fax, gif, png, hp, laserjet, etc). The latex tool produces a DVI (device independent) file. Latex and pdflatex are both tools that compile LaTeX code. LaTeX is the language (TeX plus some macros), right? And pdflatex is a tool for converting LaTeX source to PDF output. latex vs pdflatex is what I’m confused by. Maybe the question should go to a TikZ user forum.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |