CHECKNR(1)
πΈ NAME πΈ
okay bestie, this is checknr(1) β the manual for checknr, aka check nroff/troff files β part of BSD System Compatibility. It checks a list of nroff(1) or troff(1) input files for certain kinds of errors involving mismatched opening and closing delimiters and unknown commands. If no files are specified, checknr checks standard input. periodt π
β¨ SYNOPSIS β¨
checknr [-fs] [-a.x1.y1.x2.y2. ... .xn.yn] [-c.x1.x2.x3 ... .xn] [file ...]
π DESCRIPTION π
The delimiters checked are:
- Font changes using
\fx ... \fP. - Size changes using
\sx ... \s0. - Macros that come in open ... close forms, for example, the
.TSand.TEmacros which must always come in pairs.
checknr knows about the ms(7) and me(7) macro packages. iykyk π¦
Additional pairs of macros can be added to the list using the -a option. This must be followed by groups defining pairs of macros. The characters in each group are a period, the first macro name, another period, and the second macro name. For example, to define a pair .BS and .ES, use -a.BS.ES.
-a.x1.y1.x2.y2. ... .xn.ynβ adds extra macro pairs to the list; each group is a period, the first macro name, another period, and the second macro name. Example:-a.BS.ESdefines the pair.BSand.ESπ«-c.x1.x2.x3 ... .xnβ defines commands which would otherwise be complained about as undefined. no false alarms, bestie π-fβ requestschecknrto ignore\ffont changes.-sβ requestschecknrto ignore\ssize changes.
checknr is intended to be used on documents that are prepared with checknr in mind, much the same as lint. It expects a certain document writing style for \f and \s commands, in that each \fx must be terminated with \fP and each \sx must be terminated with \s0. While it will work to directly go into the next font or explicitly specify the original font or point size, and many existing documents actually do this, such a practice will produce complaints from checknr. Since it is probably better to use the \fP and \s0 forms anyway, you should think of this as a contribution to your document preparation style. main character document-prep energy π
π SEE ALSO π
nroff(1)troff(1)checkeq(1)ms(7)me(7)
π DIAGNOSTICS π
- Complaints about unmatched delimiters.
- Complaints about unrecognized commands.
- Various complaints about the syntax of commands.
π«Ά NOTES π«Ά
β οΈ okay listen, it does not correctly recognize certain reasonable constructs, such as conditionals. not the vibe, but forewarned is forearmed π
xoxo, 4th Berkeley Distribution β 11/6/05 β CHECKNR(1) signing off, mwah! πβ¨
π¦ where this page comes from
- alpine 3.24: heirloom-doctools-doc 191015-r6 Β· CDDL-1.1
- Copyright (c) 1980 Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms