Debian Codegraph @

utils/lacheck/lacheck.hlp

raw
1 1 LaCheck
2
3 A consistency checker for LaTeX documents.
4
5 LaCheck filename[.tex]
6
7 2 DESCRIPTION
8
9 LaCheck is a general purpose consistency checker for LaTeX documents.
10 It reads a LaTeX document and displays warning messages, if it finds
11 bad sequences. It should be noted, that the badness is very
12 subjective. LaCheck is designed to help find common mistakes in LaTeX
13 documents, especially those made by beginners.
14
15 The things checked are: Mismatched groups (braces), environments and
16 math mode delimiters. When a mismatch is found, line numbers for
17 "both" start and end of the mismatch is given. The error messages
18 comes in pairs, one for the end match and one for the beginning,
19 marked with `<-' and `->' respectively.
20
21 Bad spacing including missing a `\' after an abbreviation, missing an
22 `\@' before a punctuation mark in a paragraph that is ended by an
23 capital letter, double spaces like ` ~', bad usage of ellipsis (like
24 using ... instead of \ldots, or using \ldots where \cdots should be
25 used), missing \~ before a \cite or \ref commands, space before
26 footnotes, italic corrections before comma, point, or italic text,
27 italic correction after normal text, missing italic correction when
28 switching from italic to normal text, and double italic correction.
29
30 Badly placed punctuation marks around end of math mode delimiters.
31 This is, pucktuation placed right after display math end or
32 punctuation placed right before text math end. Sequences of
33 whitespace followed by punctuation marks are also caught. Bad use of
34 quotation characters, i.e. constructs like "\'word" or "word\`" are
35 warned about, tabs in verbatim environments are caught, certain TeX
36 primitives are frowned upon, attempts to give font specifiers
37 arguments such as \em{text} are noted, and use of @ in LaTeX macros
38 are reported.
39
40 LaCheck will read files that are input using \input or \include. Files
41 with suffix `.sty' are omitted, as they probably will cause LaCheck to
42 crash.
43
44 2 USAGE
45
46 LaCheck filename[.tex]
47
48 LaCheck may be invoked from within Emacs using compile:
49
50 To run:
51 "M-x compile RET lacheck RET"
52 , and then
53 "C-x `"
54 to parse the messages
55
56 2 OUTPUT
57
58 The output is UNIX-error like, and may be parsed using Emacs compile
59 mode. Here is a sample:
60
61 0
62 lacheck compiler
63
64 "/usr/mef/compiler.tex", line 34: missing `\' after "etc."
65
66 "/usr/mef/compiler.tex", line 179: double space at " ~"
67
68 "/usr/mef/compiler.tex", line 186: <- unmatched "}"
69
70 "/usr/mef/compiler.tex", line 181: -> unmatched "$$"
71 1
72
73 A control space `\\ ' should be inserted at line 34, to prevent an
74 end-of-sentence space.
75 Also, at line 179, the first space of the sequence " ~" should
76 probably be deleted.
77 The last two lines is an example, where the user mistyped, and
78 probably inserted an extra "}" somewhere.
79
80 2 DIAGNOSTICS
81
82 Some special cases should be explained. In cases where a sentence ends
83 with something that LaCheck thinks is an abbreviation an missing `\\'
84 error may also occur, if the following sentence begins with a
85 lowercase letter.
86
87 A mismatch error may cause more to follow, due to the chosen
88 algorithm. In such cases just correct the "first" error and run
89 LaCheck again
90
91 Braces, environments and math mode must be balanced within a file.
92
93 LaCheck may be confused by unmatched stuff placed inside verbatim-like
94 environments called something else than exactly `verbatim'.
95
96 2 FILES
97
98 Source: TEX_DISK:[TEX.TEX__SOURCE.LACHECK]
99
100 Executable: TEX_EXE:LACHECK.EXE
101
102 SEE ALSO
103 TeX, emacs, LaTeX
104
105 2 BUGS
106
107 LaCheck gets confused by advanced macros, is fooled by simple macros,
108 can't figure out if you use a non-standard way to switch italic on or
109 off, does not like TeX at all, does not provide any options to turn
110 off specific warnings, and is at best a crude approximation.
111
112 Ideas for improvements and bug reports are very welcome. Such should
113 be directed to the maintainers, their email address is
114 <[email protected]>.
115
116 2 AUTHOR
117 Kresten Krab Thorup with modifications by Per Abrahamsen.
118