[l2h] Trouble with control space

Walter Gull Walter.Gull at freesurf.ch
Fri Feb 10 09:03:45 CET 2006


Greg Gamble wrote:
> On Thu, Feb 09, 2006 at 12:26:42PM +0000, Anthony Stone wrote:
>> I'm having trouble with LaTeX2html's treatment of "control space",
>> i.e. backslash followed by space, which TeX and LaTeX use to force a
>> space after a control sequence. That is, if I say
>> \newcommand{\foo}{{\sc Foo}}
>> to get Foo in caps and small caps, I have to write \foo\ in the LaTeX
>> source in order to make sure it is followed by a space.
> 

An alternative, which enforces a normal space would be
\newcommand{\foo}{{\sc Foo} }

With that construct you get a space by simply writing in your LaTeX source:

\foo xyz

The price you pay is that you can no longer suppress the space by a
construct

{\foo}xyz



More information about the latex2html mailing list