I am getting an error when trying to compile the following code:
Code: Select all
\documentclass{book}
\usepackage[frenchb,english]{babel}
\begin{document}
\section{The proof of Theorem \protect \ref{th:t2vla} }
\end{document}
! Missing \endcsname inserted.
<to be read again>
\protect
l.18 \end{document}
?
The error comes from the semi-column ":" in the \ref. It is interpreted in the French style, which is why there is a "\endcsname".
However, there are no \selectlanguage{frenchb} before, so it should not interpret it as it is obviously doing. I have tried to add a \selectlanguage{english} before, but he does not change anything.
This seems to me as a bug in latex or babel. Does anyone has a fix which does not involve removing the ":" from the reference.
Perhaps, this is due to the version of latex and babel, I am using:
TeX, Version 3.14159 (Web2C 7.4.5)
LaTeX2e <2001/06/01>
Babel <v3.7h>
Thanks for any help.