checknr [ -a.Macro1.Macro2 ... ] [ -c.Command1.Command2 ... ] [ -f ] [ -s ] [ File ... ]
The checknr command checks a list of nroff or troff input files for certain kinds of errors involving mismatched opening and closing delimiters and unknown commands. If no files are specified, the checknr command checks standard input.
The checknr command can handle both the ms and me macro packages.
The checknr command is intended to be used on documents that are prepared with the checknr command in mind, much the same as the lint command. The checknr command requires a certain document writing style for the \f and \s commands, in that each \fNewfont must be terminated with \fP and each \sNewsize must be terminated with \s0. While it works to go directly into the next font or to explicitly specify the original font or point size, such a practice produces error messages from the checknr command.
File specifies nroff or troff input files for errors involving mismatched opening and closing delimiters and unknown commands. The default is standard input.
Note: The checknr command does not correctly recognize certain reasonable constructs, such as conditionals.
The checkeq command, lint command, nroff command, troff command.
The me macro package, ms macro package.