CTAN has a new package: xpunctuate
Date: May 24, 2012 7:02:58 AM CEST
On Wed, 23 May 2012 Philip G. Ratcliffe submitted the
xpunctuate
package.
Summary description: An extension of the "xspace" package to include possibly redundant periods and commas.
License type: lppl
Announcement text:
This package affords the user or package writer post-macro punctuation insertion, \emph{i.e.}, beyond (but similar to) that of the "xspace" package. Three new commands are defined: \xperiod, \xcomma and \xperiodcomma, which, following a similar procedure to the standard \xspace macro, are designed to insert the relevant punctuation \emph{if and only if} necessary.
This package is located at http://mirror.ctan.org/macros/latex/contrib/xpunctuate . More information is at http://www.ctan.org/pkg/xpunctuate (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
Thanks for the upload. For the CTAN Team Rainer Schöpf
This package affords the user or package writer post-macro punctuation insertion, \emph{i.e.}, beyond (but similar to) that of the "xspace" package. Three new commands are defined: \xperiod, \xcomma and \xperiodcomma, which, following a similar procedure to the standard \xspace macro, are designed to insert the relevant punctuation \emph{if and only if} necessary.
This package is located at http://mirror.ctan.org/macros/latex/contrib/xpunctuate . More information is at http://www.ctan.org/pkg/xpunctuate (if the package is new it may take a day for that information to appear). We are supported by the TeX Users Group http://www.tug.org . Please join a users group; see http://www.tug.org/usergroups.html .
Thanks for the upload. For the CTAN Team Rainer Schöpf
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.
Package | xpunctuate |
Version | 2.0 2023-08-13 |
Copyright | 2012–2023 Philip G. Ratcliffe |
Maintainer | Philip G. Ratcliffe |