]> git.saurik.com Git - wxWidgets.git/blame - utils/tex2rtf/tools/lacheck.1
added Unload(handle); updated the docs
[wxWidgets.git] / utils / tex2rtf / tools / lacheck.1
CommitLineData
56d34922
JS
1.TH "LaCheck" "1" "May 23, 1991"
2.SH NAME
3lacheck - A consistency checker for LaTeX documents.
4.SH SYNOPSIS
5.B "lacheck "
6.I "filename"
7[
8.I .tex
9]
10.SH DESCRIPTION
11lacheck is a general purpose consistency checker for LaTeX documents.
12It reads a LaTeX document and displays warning messages, if it finds
13bad sequences. It should be noted, that the badness is
14.I "very "
15subjective.
16.LP
17The things checked are:
18.LP
19Mismatched groups (braces), environments and math mode
20delimiters. When a mismatch is found, line numbers for
21.I "both"
22start and end of the mismatch is given. The error messages comes in
23pairs, one for the end match and one for the beginning, marked with
24\`<-\' and \`->\' respectively.
25.LP
26Bad spacing. This is: missing a \`\\ \' after an abbreviation, missing
27an \`\\@\' before a punctuation mark in a paragraph that is ended by an
28capital letter, double spaces like \` \~\', bad usage of ellipsis
29(like using ... instead of \\ldots, or using \\ldots where \\cdots
30should be used)
31.LP
32lacheck will read files that are input using \\input or \\include.
33Files with suffix \`.sty\' are omitted, as they probably will cause
34errors.
35.LP
36lacheck may be invoked from within Emacs(1) using compile:
37
38To run:
39.B "M-x compile <ret>"
40, and then
41.B "C-x `"
42to parse the messages
43
44.SH OUTPUT
45The output is UNIX-error like, and may be parsed using Emacs(1)
46compile mode. Here is a sample:
47
48.PD 0
49lacheck compiler
50.TP
51"/usr/mef/compiler.tex", line 34: missing \`\\\\\\\\ \' after "etc."
52.TP
53"/usr/mef/compiler.tex", line 179: double space at " ~"
54.TP
55"/usr/mef/compiler.tex", line 186: <- unmatched "}"
56.TP
57"/usr/mef/compiler.tex", line 181: -> unmatched "$$"
58.PD 1
59.LP
60A control space \`\\ \' should be inserted at line 34, to prevent an
61end-of-sentence space.
62Also, at line 179, the first space of the sequence " ~" should
63probably be deleted.
64The last two lines is an example, where the user mistyped, and
65probably inserted an extra "}" somewhere.
66
67.SH DIAGNOSTICS
68Some special cases should be explained. In cases where a sentence ends
69with something that lacheck thinks is an abbreviation an missing \`\\
70\' error may also occur, if the following sentence begins with a
71capital letter.
72.LP
73A mismatch error may cause more to follow, due to the chosen
74algorithm. In such cases just correct the
75.I "first"
76error and run lacheck again
77.LP
78Braces, environments and math mode must be balanced within a file.
79.SH SEE ALSO
80tex(1), Emacs(1), latex(1)
81.SH BUGS
82Lots... Ideas for improvements and bug reports are very welcome.
83Such should be
84directed to the author.
85.SH AUTHOR
86Kresten Krab Thorup, Email <krab@iesd.auc.dk>