6

The MWE below gives error language@active@arg" has extra }.

\documentclass{article}
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}
\usepackage[english,slovene]{babel}%
    \usepackage{tikz}
\usetikzlibrary{quotes}

\begin{document}
    \begin{tikzpicture}
\draw (0,0) edge ["right", ->] (2,0);
    \end{tikzpicture}
\end{document}

Cause for it is option slovenian in babel which seem to redefine " somehow (if I remove this option, MWE work fine). Please, help me fix this error.

7

Load the babel library:

\documentclass{article}
    \usepackage[T1]{fontenc}
    \usepackage[utf8]{inputenc}
\usepackage[english,slovene]{babel}%
    \usepackage{tikz}
\usetikzlibrary{quotes,babel}

\begin{document}
    \begin{tikzpicture}
\draw (0,0) edge ["right", ->] (2,0);
    \end{tikzpicture}
\end{document}

enter image description here

  • This is a duplicate, surely? – cfr Jul 3 '15 at 23:44
  • This was fast! Thank you. Before asking I search through SE, but didn't find similar question ... – Zarko Jul 3 '15 at 23:50
  • @cfr maybe Problem with babel and tikz using \draw – Paul Gaborit Jul 4 '15 at 6:14
  • In my case I have problem only when use quotes library. Using all other TikZ libraries didn't make any troubles. Anyway, the answer is to my question and how to draw line is the same. SO it can be considered as duplicate. – Zarko Jul 4 '15 at 7:57
  • @Zarko Yes. Unfortunately the search feature sucks. I asked a question yesterday despite being pretty sure I'd read a duplicate simply because I could not find it. – cfr Jul 4 '15 at 12:28

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.