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.
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.
| Documentation on CTAN |
|
||
| Documentation off CTAN | -none known- | ||
| Maintainers |
|
||
| Version | 1.13 | ||
| License | LaTeX Project Public License | ||
| Related packages | -none recorded- | ||
| Keywords |
|
||
| Characterizations |
You can suggest changes to the keywords and characterizations and the maintainer information.
You can get information about any package.