1CHECKNR(1)                  General Commands Manual                 CHECKNR(1)
2
3
4

NAME

6       checknr - check nroff/troff files
7

SYNOPSIS

9       checknr  [ -s ] [ -f ] [ -a.x1.y1.x2.y2. ... .xn.yn ] [ -c.x1.x2.x3 ...
10       .xn ] [ file ...  ]
11

DESCRIPTION

13       Checknr checks a list of nroff(1) or troff(1) input files  for  certain
14       kinds of errors involving mismatched opening and closing delimiters and
15       unknown commands.  If no files are specified, checknr checks the  stan‐
16       dard input.  Delimeters checked are:
17
18       (1)    Font changes using \fx ... \fP.
19
20       (2)    Size changes using \sx ... \s0.
21
22       (3)    Macros  that  come in open ... close forms, for example, the .TS
23              and .TE macros which must always come in pairs.
24
25       Checknr knows about the ms(7) and me(7) macro packages.
26
27       Additional pairs of macros can be  added  to  the  list  using  the  -a
28       option.   This must be followed by groups of six characters, each group
29       defining a pair of macros.  The six characters are a period, the  first
30       macro name, another period, and the second macro name.  For example, to
31       define a pair .BS and .ES, use -a.BS.ES
32
33       The -c option defines commands  which  would  otherwise  be  complained
34       about as undefined.
35
36       The -f option requests checknr to ignore \f font changes.
37
38       The -s option requests checknr to ignore \s size changes.
39
40       Checknr  is  intended  to  be  used on documents that are prepared with
41       checknr in mind, much the same as lint.  It expects a certain  document
42       writing  style  for \f and \s commands, in that each \fx must be termi‐
43       nated with \fP and each \sx must be terminated with \s0.  While it will
44       work to directly go into the next font or explicitly specify the origi‐
45       nal font or point size, and many existing documents actually  do  this,
46       such  a  practice  will  produce  complaints from checknr.  Since it is
47       probably better to use the \fP and \s0 forms anyway, you  should  think
48       of this as a contribution to your document preparation style.
49

SEE ALSO

51       nroff(1), troff(1), checkeq(1), ms(7), me(7)
52

DIAGNOSTICS

54       Complaints about unmatched delimiters.
55       Complaints about unrecognized commands.
56       Various complaints about the syntax of commands.
57

BUGS

59       There is no way to define a 1 character macro name using -a.
60       Does  not  correctly  recognize  certain reasonable constructs, such as
61       conditionals.
62
63
64
654th Berkeley Distribution         May 7, 1986                       CHECKNR(1)
Impressum