When babel package is loaded graphviz does not accept double quotes in graphviz code. See https://www.overleaf.com/13251515ycdczbrgzczy#/51024557/
\documentclass{standalone}
\usepackage{inputenc}
%\usepackage[german]{babel}
\usepackage[pdf]{graphviz}
\begin{document}
\digraph[scale=0.5]{abc}{
b [ shape = none
label = <<table border="0">
<tr><td>b</td></tr>
</table>>];
a -> b -> c;
}
\end{document}
This code is correctly interpreted if either the border attribute is removed or package babel is commented out (as in the example code).
I wonder if there is a workaround or what is babel anyway.
UPDATE: I found a practicable workaround:
- use
babelwith both german and english language; - use
\selectlanguage{english}before you enter the graphviz code; \selectlanguage{german}again after the code.
The disadvantage of this solution is that German umlauts cannot be used in graphviz code labels, so maybe there exists some better workaround.
graphvizcan cope with unicode, you could input the accented characters that way. There's no point in loadinginputencwithout an option, is there? Don't you wantutf8there? – cfr Jan 20 '18 at 02:45