xpunctuate

Process trailing punctuation which may be redundant

Version:
2.0
Copyright:
Philip G. Ratcliffe
License:
lppl1.3c
Packaged on:
08/19/2023 18:19:00
Number of files:
2
Size on disk:
3.64 kB

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.