A user of my menukeys
package reported, that there’s an issue with the activ characters in french, i.e. !
, ;
, ?
and :
. I found out that it’s not a bug in menukeys
but catoptions
seems to interferre with babel
here.
\documentclass{article}
\usepackage[french]{babel}
\RequirePackage{catoptions}
\begin{document}
\begin{itemize}
\item Test:
\item Test;
\item Test?
\item Test!
\end{itemize}
\end{document}
The above code gives
without catoptions
, but
with catoptions
.
As you can see the !
and the :
seem to lose their activeness. So the question is: How to restore the activeness of !
and :
?
catoptions
says "In fact, the package is meant to be loaded on top of other packages, so as to exploit its catcode preserving scheme". Does changing the package loading order help?catoptions
beforebabel
is even worse! For some reasonsfrenchle
is loaded, and many unscrutable errors are raised.\AtBeginDocument{\shorthandon{:}\shorthandon{!}}
in the preamble, but I don't know whether this has side effects withmenukeys
.\AtBeginDocument{\cptrestorecatcodes}
, but this command doesn't take into account characters possibly activated by Babel. It's a clear bug.