[pdftex] Getting the correct word spacing after Macros.

Olaf Dietrich olaf at dtrx.de
Tue Jun 11 12:29:16 CEST 2002


Michael Chapman (2002-06-11T09:27:05+0000):
> 
> 
> I have a document with several dozen complicated words/phrases. To 
> trivialise, if I were to set:
> 
> \newcommand{\USA}{United States of America}
> 
> is there an easy way of making the command so a space is (automatically) 
> inserted if the next character is a letter or number, but no space is 
> inserted if the next character is punctuation.

Use the xspace package.

Olaf



More information about the pdftex mailing list