xpunctuate – Process trailing punctuation which may be redundant
The package provides commands enabling the user (or package writer) to insert punctuation after a macro. The method is similar to that of xspace, but goes further.
The package provides the commands \xperiod, \xcomma and \xperiodcomma, which follow a similar procedure to that of \xspace, and insert punctuation if and only if it is necessary.
It also provides \xperiodafter, \xcommaafter, \xperiodcommaafter and \xspaceafter, which all take one argument, the word or phrase to be punctuated. These then avoid problems with the spacing of periods and commas after emphasised words.
|Licenses||The LaTeX Project Public License 1.3c|
|Copyright||2012–2023 Philip G. Ratcliffe|
|Maintainer||Philip G. Ratcliffe|
|Contained in||TeX Live as xpunctuate|
MiKTeX as xpunctuate
Download the contents of this package in one zip archive (223.0k).
Maybe you are interested in the following packages as well.
- conv-xkv: Create new key-value syntax
- fetchcls: Fetch the current class name
- fifo-stack: FIFO and stack implementation for package writers
- collect: Collect text for later re-use