I'm getting the error Package enumitem: Undefined label
with the following code:
\documentclass{article}
\usepackage[french,english]{babel}
\usepackage{enumitem}
\setlistdepth{10}
\renewlist{itemize}{itemize}{10}
\setlist[itemize]{label=$\cdot$}
\setlist[itemize,1]{label=\textbullet}
\setlist[itemize,2]{label=--}
\setlist[itemize,3]{label=*}
\begin{document}
\selectlanguage{french}
\begin{itemize}
\item {\selectlanguage{english} Test}
\item Text
\end{itemize}
\end{document}
Is there any way to fix this?
\selectlanguage
. Useotherlanguage*
or\foreignlanguage
.\selectlanguage
in a group is the same as using\foreignlanguage
.babel-french
kicking in, but that's secondary.\selectlanguage
in group for locally changing the language, and this is the first time I encountered an error. And it only happens when I'm trying to extend the number of levels ofitemize
.\selectlanguage
for locally change language. Never. It's just that simple.