下面的 MWE 给出错误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}
原因是选项似乎以某种方式重新定义slovenian
(如果我删除此选项,MWE 可以正常工作)。请帮我修复此错误。babel
"
答案1
加载babel
库:
\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}