[texhax] Preserve space at end of expression enclosed in braces

Dan Hatton vi5u0-texhax at yahoo.co.uk
Wed May 20 12:33:29 CEST 2009


On Tue, 19 May 2009, Uwe Lueck wrote:

> And does the \relax produce the wanted leading space?

Yes

> As usual, please back your request with an actual application of
> your macros that seems not to work properly.

\documentclass{minimal}
\usepackage{pstricks}
\definecolor{LBRed}{rgb}{0.9,0.1,0.2}
\definecolor{LBBlue}{rgb}{0.4,0.3,1.0}
\newcommand{\morerefadd}[1]{{\color{LBBlue}#1}}
\begin{document}
Sometimes I miss out\morerefadd{ }spaces from my text.  Sometimes I
even forget\morerefadd{ whole clauses}.
\end{document}

As I said, Philip's \relax idea fixes the problem.

-- 

Regards,

Dan


More information about the texhax mailing list