Dear All,
I am trying to use xspace package in my \newcommands, but seem to have
different behaviour in LaTeX and in L2H. L2H doesn't suppress the extra
space if I ask for that using {} after the my command, as it does in
LaTeX2e.
An example:
\documentclass{article}
\usepackage{xspace}
\newcommand{\mybeta}{greekbeta\xspace}
\begin{document}
\Huge
\noindent
Trying greekbetamacro.\\ % The way I want it to look sometimes = no spaces
Trying greekbeta macro.\\% But sometimes I will need the space, like this.
Trying \mybeta{}macro \\ % The way it works \LaTeX2e, but not in L2H
% and this is the way I use it.
% Testing other possibilities...
Trying \mybeta{}Macro \\ % Doesn't depend on the case
Trying \mybeta,macro \\ % works with common punctuation characters
Trying \mybeta:macro \\
Trying \mybeta;macro \\
Trying \mybeta?macro \\
Trying \mybeta!macro \\
Trying \mybeta-macro \\
Trying \mybeta . macro \\
Trying \mybeta , macro \\ % Does suppress extra spaces I have added
Trying \mybeta : macro \\ % before punctuation characters also in L2H
Trying \mybeta ; macro \\
Trying \mybeta ? macro \\
Trying \mybeta ! macro \\
Trying \mybeta -macro \\
Trying \mybeta{}. macro\\ % But adds it again if I use {}
\end{document}
Any suggestions to get around this ?
xspace.perl to my eyes seems to define {} as characters that suppress the
extra space. But they don't.
Oh yes, I am using l2h98.1p5
cheers, Marko
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<o>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Marko Hyvonen tel: +44-(0)1223-766 030 / 766 027
fax: +44-(0)1223-766 082
Department of Biochemistry email: [EMAIL PROTECTED]
University of Cambridge http://www-cryst.bioc.cam.ac.uk/~marko
80 Tennis Court Road
CB2 1GA Cambridge home: 63 Mulberry Close
England Cambridge CB4 2AS
tel: +44-(0)1223-564 022
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<o>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>