[tex-live] clash between babel (french), hyperref and \cite on keys with a colon character

Vincent Lefevre vincent at vinc17.net
Mon Sep 22 15:44:36 CEST 2014


There's a clash between babel (french), hyperref and \cite on keys
with a colon character. This can be seen on:

----------------------------------------------------------------------
\documentclass{article}
\usepackage[french,english]{babel}
\usepackage{hyperref}

\begin{document}

The following link does not work due to the space before the colon,
added by babel in French:
\selectlanguage{french}
\cite{foo:bar} (foo:bar)

The following link works:
\selectlanguage{english}
\cite{foo:bar} (foo:bar)

\newpage

\selectlanguage{english}
\begin{thebibliography}{1}
\bibitem{foo:bar} Foo bar.
\end{thebibliography}

\end{document}
----------------------------------------------------------------------

This should really be fixed without requiring the user to use some
workaround. For instance, couldn't babel redefine \cite to locally
make the behavior like in English?

This bug is particularly annoying since using colons in bib keys
seems to be common.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


More information about the tex-live mailing list