1 .TH "LaCheck" "1" "May 23, 1991"
3 lacheck - A consistency checker for LaTeX documents.
11 lacheck is a general purpose consistency checker for LaTeX documents.
12 It reads a LaTeX document and displays warning messages, if it finds
13 bad sequences. It should be noted, that the badness is
17 The things checked are:
19 Mismatched groups (braces), environments and math mode
20 delimiters. When a mismatch is found, line numbers for
22 start and end of the mismatch is given. The error messages comes in
23 pairs, one for the end match and one for the beginning, marked with
24 \`<-\' and \`->\' respectively.
26 Bad spacing. This is: missing a \`\\ \' after an abbreviation, missing
27 an \`\\@\' before a punctuation mark in a paragraph that is ended by an
28 capital letter, double spaces like \` \~\', bad usage of ellipsis
29 (like using ... instead of \\ldots, or using \\ldots where \\cdots
32 lacheck will read files that are input using \\input or \\include.
33 Files with suffix \`.sty\' are omitted, as they probably will cause
36 lacheck may be invoked from within Emacs(1) using compile:
39 .B "M-x compile <ret>"
45 The output is UNIX-error like, and may be parsed using Emacs(1)
46 compile mode. Here is a sample:
51 "/usr/mef/compiler.tex", line 34: missing \`\\\\\\\\ \' after "etc."
53 "/usr/mef/compiler.tex", line 179: double space at " ~"
55 "/usr/mef/compiler.tex", line 186: <- unmatched "}"
57 "/usr/mef/compiler.tex", line 181: -> unmatched "$$"
60 A control space \`\\ \' should be inserted at line 34, to prevent an
61 end-of-sentence space.
62 Also, at line 179, the first space of the sequence " ~" should
64 The last two lines is an example, where the user mistyped, and
65 probably inserted an extra "}" somewhere.
68 Some special cases should be explained. In cases where a sentence ends
69 with something that lacheck thinks is an abbreviation an missing \`\\
70 \' error may also occur, if the following sentence begins with a
73 A mismatch error may cause more to follow, due to the chosen
74 algorithm. In such cases just correct the
76 error and run lacheck again
78 Braces, environments and math mode must be balanced within a file.
80 tex(1), Emacs(1), latex(1)
82 Lots... Ideas for improvements and bug reports are very welcome.
84 directed to the author.
86 Kresten Krab Thorup, Email <krab@iesd.auc.dk>