AZ logo

Package xspace:
Define commands that appear not to eat spaces.

The xspace package provides a single command that looks at what comes after it in the command stream, and decides whether to insert a space to replace one "eaten" by the TeX command decoder. The decision is based on what came after any space, not on whether there was a space (which is unknowable): so if the next thing proves to be punctuation, the chances are there was no space, but if it's a letter, there's probably a need for space. This technique is not perfect, but works in a large proportion of cases.

The package is part of the tools bundle in the LaTeX required distribution.

Getting it

If possible, get this package from your distribution using its installation manager. (For installation help, click on your distribution's name.)

Distribution Package name
MiKTeX tools
TeX Live tools

You can also visit xspace's CTAN directory to browse the source or download the material for installation by hand.

More

Documentation on CTAN
xspace.pdf
Documentation off CTAN -none known-
Maintainers
Morten Høgholm
David Carlisle
Version 1.13
License LaTeX Project Public License
Related packages -none recorded-
Keywords
macro programming
Characterizations
primary:
Programming in TeX > Other

You can suggest changes to the keywords and characterizations and the maintainer information.

You can get information about any package.