Comprehensive TeX Archive Network

xspace – Define commands that appear not to eat spaces

The xs­pace pack­age pro­vides a sin­gle com­mand that looks at what comes af­ter it in the com­mand stream, and de­cides whether to in­sert a space to re­place one "eaten" by the com­mand de­coder. The de­ci­sion is based on what came af­ter any space, not on whether there was a space (which is un­know­able): so if the next thing proves to be punc­tu­a­tion, the chances are there was no space, but if it's a let­ter, there's prob­a­bly a need for space. This tech­nique is not per­fect, but works in a large pro­por­tion of cases.

The pack­age is part of the la­tex-tools bun­dle in the re­quired dis­tri­bu­tion.

Sources /macros/latex/required/tools
Ver­sion 1.13
Li­cense The Project Public Li­cense
Main­tainer David Carlisle
Morten H√łgholm
The Team
TDS archive latex-tools.tds.zip
Con­tained in TeX Live as tools
MiKTeX as tools
Topics sup­port for de­vel­op­ment of macros

Down­load the con­tents of this pack­age in one zip archive (6.5M).

Com­mu­nity Com­ments

Guest Book Sitemap Contact Contact Author