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.

cfr
  • 198,882
Zarko
  • 296,517

1 Answers1

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

Gonzalo Medina
  • 505,128
  • This is a duplicate, surely? – cfr Jul 03 '15 at 23:44
  • This was fast! Thank you. Before asking I search through SE, but didn't find similar question ... – Zarko Jul 03 '15 at 23:50
  • 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 04 '15 at 07: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 04 '15 at 12:28
  • @Zarko The quotes library is a problem, as I understand it, because it conflicts with the shorthands which babel defines for some languages. For Spanish, TikZ causes issues even without it because the use of < conflicts. – cfr Jul 04 '15 at 12:29