[texhax] Clash between \emph and \xspace

Michael Barr mbarr at math.mcgill.ca
Sat Nov 4 19:40:47 CET 2006


If you compile the following file:

\documentclass{article}
\usepackage{xspace}
\newcommand{\lin}{Lindel\"of\xspace}
\begin{document}
(property we call \emph{amply \lin})

(property we call {\it amply \lin})

(property we call {\it amply \lin\/})
\end{document}

you will see Goldilocks spacing after ``Lindel\"of''.  Since the second is 
one is much too close, you can see that it is not the case that \xspace 
has added a space.  I assume that the problem is that both macros use 
\futurelet.  Any suggestions?

Michael Barr



More information about the texhax mailing list