CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/xpunctuate

README.md

| xpunctuate: a package to add punctuation, e.g. to | abbreviations, as and when necessary |

(along the lines of xspace).
Philip G. Ratcliffe - version 2.0 (2023/08/13)

——————————————————–

  • xpunctuate.ins to produce xpunctuate.sty
  • Copy xpunctuate.sty to one of your input directories.
  • xpunctuate.dtx for usage instructions and documentation.

This is the first revision of the "xpunctuate" package; it defines commands for typesetting, e.g., abbreviations where the trailing period may clash with a sentence terminator. More precisely it avoids the natural problem of definitions such as defetc{emph{etc}.}, which may then cause double periods if used at the end of sentences, such as ... cats, dogs etc. It also deals with optional commas, which again may be rendered unnecessary by the presence of a following sentence terminator.

Change history: v2.0 overhauled all user commands, introduced NewDocumentCommand, added xspaceafter. v1.0 first official release.

Download the contents of this package in one zip archive (223.0k).

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.

Packagexpunctuate
Version2.0 2023-08-13
LicensesThe Project Public License 1.3c
Copyright2012–2023 Philip G. Ratcliffe
MaintainerPhilip G. Ratcliffe
Contained inTeX Live as xpunctuate
MiKTeX as xpunctuate
TopicsMacro support
...
Guest Book Sitemap Contact Contact Author