1

I´ve got problems with combination of TikZ´s graphs library and czech babel. Here is an example:

\documentclass{standalone}

  \usepackage[czech]{babel}
  \usepackage{tikz}
  \usetikzlibrary{graphs,positioning}

\begin{document}

   \begin{tikzpicture}
      \node (a) {a};
      \node (b) [right=of a] {b};
      \node (c) [right=of b] {c};
      \node (d) [below=of b] {d};
        \graph{a->{b,c} -> d};
   \end{tikzpicture}

\end{document}

My output is this:

enter image description here

(Btw for desired image see PGFManual site 209 but it should be easy)I also tried \graph[use existing nodes] but the result was just this:

enter image description here

I saw here advice to use \usetikzlibrary{graphs,babel} but my MixTex just came up with:

I can't find file tikzlibrarybabel.code.tex.

So is there some way how to force these graphs to cooperate?

  • My miktex finds tikzlibrarybabel.code.tex without problems. Is your pgf version up-to-date? – Ulrike Fischer Feb 20 '17 at 19:49
2

enter image description here

you need to add TikZ library babel:

\documentclass[tikz, margin=3mm]{standalone}
\usepackage[czech]{babel}
\usetikzlibrary{babel,% <-- added
                graphs,
                positioning
                }

\begin{document}
    \begin{tikzpicture}
\node (a) {a};
\node (b) [right=of a] {b};
\node (c) [right=of b] {c};
\node (d) [below=of b] {d};
    \graph{a->{b,c} -> d};
\end{tikzpicture}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.