Closed Lobz closed 2 years ago
It already breaks ifthen
, which forloop
is based upon.
\documentclass{report}
%\usepackage[spanish]{babel}
\usepackage{ifthen}
\begin{document}
\ifthenelse{3>2}{\typeout{YES}}{\typeout{NO}}
\end{document}
Uncommenting the babel
line produces
! Missing = inserted for \ifnum.
<to be read again>
>
l.7 \ifthenelse{3>2}{\typeout{YES}}{\typeout{NO}}
While it's best to load babel-spanish
with the es-noquoting
option, nowadays, this remains a problem.
I’m closing this issue because it’s documented in the spanish
docs. This (mis)feature made sense 25 years ago, but admittedly not today. Fortunately, it can be deactivated easily.
This issue made me loose a few good hours until I managed to pinpoint babel as the culprit. From looking at the logs, I think spanish redefines < and >, making the syntax of forloop impossible. Here's a minimal example using the very example of forloop: