1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
|
Message 30 in Test.tex: Multiple spaces detected in input.
o To test the program upon it
^^^
Message 30 in Test.tex: Multiple spaces detected in input.
o To show off some of the features
^^^
Message 22 in Test.tex: Comment displayed.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
^
Message 22 in Test.tex: Comment displayed.
% Warning 1
^
Message 1 in Test.tex: Command terminated with space.
\foo This is an error.
^
Message 22 in Test.tex: Comment displayed.
% Warning 2
^
Message 2 in Test.tex: Non-breaking space (`~') should have been used.
This is a faulty reference to \ref{foo}
^
Message 22 in Test.tex: Comment displayed.
% Warning 3
^
Message 3 in Test.tex: You should enclose the previous parenthesis with `{}'.
$[(ab)^{-1}]^{-2}$ is not beautiful
^
Message 3 in Test.tex: You should enclose the previous parenthesis with `{}'.
$[(ab)^{-1}]^{-2}$ is not beautiful
^
Message 30 in Test.tex: Multiple spaces detected in input.
$[(ab)^{-1}]^{-2}$ is not beautiful
^^
Message 22 in Test.tex: Comment displayed.
% Warning 4-6, 28
^
Message 6 in Test.tex: No italic correction (`\/') found.
Testing {\it italic} in \/ this {\em sentence\/}, as {\em you \/ see\/}.
^
Message 42 in Test.tex: You should remove spaces in front of `\/'
Testing {\it italic} in \/ this {\em sentence\/}, as {\em you \/ see\/}.
^
Message 4 in Test.tex: Italic correction (`\/') found in non-italic buffer.
Testing {\it italic} in \/ this {\em sentence\/}, as {\em you \/ see\/}.
^^
Message 28 in Test.tex: Don't use \/ in front of small punctuation.
Testing {\it italic} in \/ this {\em sentence\/}, as {\em you \/ see\/}.
^^
Message 42 in Test.tex: You should remove spaces in front of `\/'
Testing {\it italic} in \/ this {\em sentence\/}, as {\em you \/ see\/}.
^
Message 5 in Test.tex: Italic correction (`\/') found more than once.
Testing {\it italic} in \/ this {\em sentence\/}, as {\em you \/ see\/}.
^^
Message 22 in Test.tex: Comment displayed.
% LaTeX2e
^
Message 42 in Test.tex: You should remove spaces in front of `\/'
Testing \textem{italic} in \/ this \textit{sentence\/}, as \textem{you \/ see\/}.
^
Message 4 in Test.tex: Italic correction (`\/') found in non-italic buffer.
Testing \textem{italic} in \/ this \textit{sentence\/}, as \textem{you \/ see\/}.
^^
Message 4 in Test.tex: Italic correction (`\/') found in non-italic buffer.
Testing \textem{italic} in \/ this \textit{sentence\/}, as \textem{you \/ see\/}.
^^
Message 42 in Test.tex: You should remove spaces in front of `\/'
Testing \textem{italic} in \/ this \textit{sentence\/}, as \textem{you \/ see\/}.
^
Message 4 in Test.tex: Italic correction (`\/') found in non-italic buffer.
Testing \textem{italic} in \/ this \textit{sentence\/}, as \textem{you \/ see\/}.
^^
Message 4 in Test.tex: Italic correction (`\/') found in non-italic buffer.
Testing \textem{italic} in \/ this \textit{sentence\/}, as \textem{you \/ see\/}.
^^
Message 4 in Test.tex: Italic correction (`\/') found in non-italic buffer.
Testing \textem{italic\/} in this \textit{sentence}, as \textem{you see}.
^^
Message 22 in Test.tex: Comment displayed.
% Warning 7
^
Message 7 in Test.tex: Accent command `\'' needs use of `\i'.
This \'is a test of $\hat{j}$ accents.
^^
Message 7 in Test.tex: Accent command `\hat' needs use of `\jmath'.
This \'is a test of $\hat{j}$ accents.
^^^^
Message 22 in Test.tex: Comment displayed.
% Warning 8
^
Message 8 in Test.tex: Wrong length of dash may have been used.
It wasn't anything - just a 2---3 star--shots.
^
Message 8 in Test.tex: Wrong length of dash may have been used.
It wasn't anything - just a 2---3 star--shots.
^^^
Message 8 in Test.tex: Wrong length of dash may have been used.
It wasn't anything - just a 2---3 star--shots.
^^
Message 22 in Test.tex: Comment displayed.
% From Knuths TeXbook Chapter 14
^
Message 22 in Test.tex: Comment displayed.
% "How TeX Breaks Paragraphs into Lines", fourth paragraph:
^
Message 22 in Test.tex: Comment displayed.
% Warning 9-10
^
Message 22 in Test.tex: Comment displayed.
% Brackets:
^
Message 10 in Test.tex: Solo `)' found.
)}{[])} }}}]]])))
^
Message 10 in Test.tex: Solo `}' found.
)}{[])} }}}]]])))
^
Message 9 in Test.tex: `}' expected, found `)'.
)}{[])} }}}]]])))
^
Message 10 in Test.tex: Solo `}' found.
)}{[])} }}}]]])))
^
Message 10 in Test.tex: Solo `}' found.
)}{[])} }}}]]])))
^
Message 10 in Test.tex: Solo `}' found.
)}{[])} }}}]]])))
^
Message 10 in Test.tex: Solo `}' found.
)}{[])} }}}]]])))
^
Message 10 in Test.tex: Solo `]' found.
)}{[])} }}}]]])))
^
Message 10 in Test.tex: Solo `]' found.
)}{[])} }}}]]])))
^
Message 10 in Test.tex: Solo `]' found.
)}{[])} }}}]]])))
^
Message 10 in Test.tex: Solo `)' found.
)}{[])} }}}]]])))
^
Message 10 in Test.tex: Solo `)' found.
)}{[])} }}}]]])))
^
Message 10 in Test.tex: Solo `)' found.
)}{[])} }}}]]])))
^
Message 22 in Test.tex: Comment displayed.
% Envs:
^
Message 9 in Test.tex: `baz' expected, found `quux'.
\begin{quux} \begin{baz} \end{quux} \end{baz} \end{asoi} \begin{dobedo}
^^^^
Message 9 in Test.tex: `quux' expected, found `baz'.
\begin{quux} \begin{baz} \end{quux} \end{baz} \end{asoi} \begin{dobedo}
^^^^
Message 10 in Test.tex: Solo `asoi' found.
\begin{quux} \begin{baz} \end{quux} \end{baz} \end{asoi} \begin{dobedo}
^^^^
Message 22 in Test.tex: Comment displayed.
% Warning 11
^
Message 11 in Test.tex: You should use \ldots to achieve an ellipsis.
Foo...bar. $1,...,3$. $1+...+3$. $1,\cdots,3$. $1\cdot\ldots\cdot3$.
^^^
Message 11 in Test.tex: You should use \ldots to achieve an ellipsis.
Foo...bar. $1,...,3$. $1+...+3$. $1,\cdots,3$. $1\cdot\ldots\cdot3$.
^^^
Message 11 in Test.tex: You should use \cdots to achieve an ellipsis.
Foo...bar. $1,...,3$. $1+...+3$. $1,\cdots,3$. $1\cdot\ldots\cdot3$.
^^^
Message 11 in Test.tex: You should use \ldots to achieve an ellipsis.
Foo...bar. $1,...,3$. $1+...+3$. $1,\cdots,3$. $1\cdot\ldots\cdot3$.
^^^^^^
Message 11 in Test.tex: You should use \cdots to achieve an ellipsis.
Foo...bar. $1,...,3$. $1+...+3$. $1,\cdots,3$. $1\cdot\ldots\cdot3$.
^^^^^^
Message 22 in Test.tex: Comment displayed.
% Warning 12
^
Message 12 in Test.tex: Interword spacing (`\ ') should perhaps be used.
1st. Foo Inc. Ab.cd. foo ab.cd. Foo. bar baz., billy.; bob.: joe.! frank.? james.. george
^
Message 12 in Test.tex: Interword spacing (`\ ') should perhaps be used.
1st. Foo Inc. Ab.cd. foo ab.cd. Foo. bar baz., billy.; bob.: joe.! frank.? james.. george
^
Message 12 in Test.tex: Interword spacing (`\ ') should perhaps be used.
1st. Foo Inc. Ab.cd. foo ab.cd. Foo. bar baz., billy.; bob.: joe.! frank.? james.. george
^
Message 12 in Test.tex: Interword spacing (`\ ') should perhaps be used.
1st. Foo Inc. Ab.cd. foo ab.cd. Foo. bar baz., billy.; bob.: joe.! frank.? james.. george
^
Message 12 in Test.tex: Interword spacing (`\ ') should perhaps be used.
1st. Foo Inc. Ab.cd. foo ab.cd. Foo. bar baz., billy.; bob.: joe.! frank.? james.. george
^
Message 12 in Test.tex: Interword spacing (`\ ') should perhaps be used.
1st. Foo Inc. Ab.cd. foo ab.cd. Foo. bar baz., billy.; bob.: joe.! frank.? james.. george
^
Message 11 in Test.tex: You should use \ldots to achieve an ellipsis.
1st. Foo Inc. Ab.cd. foo ab.cd. Foo. bar baz., billy.; bob.: joe.! frank.? james.. george
^^
Message 12 in Test.tex: Interword spacing (`\ ') should perhaps be used.
1st. Foo Inc. Ab.cd. foo ab.cd. Foo. bar baz., billy.; bob.: joe.! frank.? james.. george
^
Message 11 in Test.tex: You should use \ldots to achieve an ellipsis.
1st.\ foo Inc.\ ab.cd.\ foo ab.cd.\ Foo.\ bar baz., billy.; bob.:\ joe.!\ frank.?\ james..\ george
^^
Message 22 in Test.tex: Comment displayed.
% Warning 13
^
Message 13 in Test.tex: Intersentence spacing (`\@') should perhaps be used.
Look at THIS! It's an error.
^
Message 22 in Test.tex: Comment displayed.
% Warning 14
^
Message 1 in Test.tex: Command terminated with space.
\hat
^
Message 14 in Test.tex: Could not find argument for command.
\hat
^^^^
Message 22 in Test.tex: Comment displayed.
% Warning 18,19
^
Message 18 in Test.tex: Use either `` or '' as an alternative to `"'.
Is this an "example", or is it an ´example´.
^
Message 18 in Test.tex: Use either `` or '' as an alternative to `"'.
Is this an "example", or is it an ´example´.
^
Message 19 in Test.tex: Use "'" (ASCII 39) instead of "´" (ASCII 180).
Is this an "example", or is it an ´example´.
^
Message 19 in Test.tex: Use "'" (ASCII 39) instead of "´" (ASCII 180).
Is this an "example", or is it an ´example´.
^
Message 22 in Test.tex: Comment displayed.
% Warning 20
^
Message 20 in Test.tex: User-specified pattern found: \unknown.
That bug is \unknown\ to me.
^^^^^^^^
Message 22 in Test.tex: Comment displayed.
% That bug is \unknown\ to me.
^
Message 22 in Test.tex: Comment displayed.
% Warning 21
^
Message 21 in Test.tex: This command might not be intended.
\LaTeX\ is an extension of \TeX\. Right?
^^
Message 22 in Test.tex: Comment displayed.
% Warning 23
^
Message 23 in Test.tex: Either `\,`` or ``\,` will look better.
```Hello', I heard him said'', she remembered.
^^^
Message 22 in Test.tex: Comment displayed.
% Warning 24
^
Message 24 in Test.tex: Delete this space to maintain correct pagereferences.
Indexing text \index{text} is fun!
^
Message 22 in Test.tex: Comment displayed.
% Warning 25
^
Message 25 in Test.tex: You might wish to put this between a pair of `{}'
$5\cdot10^10$
^^
Message 22 in Test.tex: Comment displayed.
% Warning 26
^
Message 26 in Test.tex: You ought to remove spaces in front of punctuation.
Do you understand ?
^
Message 22 in Test.tex: Comment displayed.
% Warning 27
^
Message 1 in input.tex: Command terminated with space.
\this is a test of whether the file is actually inputted...
^
Message 11 in input.tex: You should use \ldots to achieve an ellipsis.
\this is a test of whether the file is actually inputted...
^^^
Message 1 in input.tex: Command terminated with space.
\this is a test of whether the file is actually inputted...
^
Message 11 in input.tex: You should use \ldots to achieve an ellipsis.
\this is a test of whether the file is actually inputted...
^^^
Message 22 in Test.tex: Comment displayed.
% Warning 29
^
Message 29 in Test.tex: $\times$ may look prettier here.
The program opens a screen sized 640x200 pixels
^
Message 22 in Test.tex: Comment displayed.
% Warning 30
^
Message 30 in Test.tex: Multiple spaces detected in input.
White is a beautiful colour.
^^^^^^^^^^^
Message 22 in Test.tex: Comment displayed.
% Warning 31
^
Message 31 in Test.tex: This text may be ignored.
\end{verbatim} foo bar
^^^^^^^
Message 22 in Test.tex: Comment displayed.
% Warning 32-34
^
Message 32 in Test.tex: Use ` to begin quotation, not '.
This is either an 'example`, an ''example`` or an `"`example'`'.
^
Message 33 in Test.tex: Use ' to end quotation, not `.
This is either an 'example`, an ''example`` or an `"`example'`'.
^
Message 32 in Test.tex: Use ` to begin quotation, not '.
This is either an 'example`, an ''example`` or an `"`example'`'.
^^
Message 33 in Test.tex: Use ' to end quotation, not `.
This is either an 'example`, an ''example`` or an `"`example'`'.
^^
Message 34 in Test.tex: Don't mix quotes.
This is either an 'example`, an ''example`` or an `"`example'`'.
^^^
Message 34 in Test.tex: Don't mix quotes.
This is either an 'example`, an ''example`` or an `"`example'`'.
^^^
Message 22 in Test.tex: Comment displayed.
% Warning 35
^
Message 35 in Test.tex: You should perhaps use `\sin' instead.
$sin^2 + cos^2 = 1$
^^^
Message 35 in Test.tex: You should perhaps use `\cos' instead.
$sin^2 + cos^2 = 1$
^^^
Message 22 in Test.tex: Comment displayed.
% Warning 36-37
^
Message 36 in Test.tex: You should put a space in front of parenthesis.
This( an example( Nuff said )), illustrates( ``my'' )point.
^
Message 37 in Test.tex: You should avoid spaces after parenthesis.
This( an example( Nuff said )), illustrates( ``my'' )point.
^
Message 36 in Test.tex: You should put a space in front of parenthesis.
This( an example( Nuff said )), illustrates( ``my'' )point.
^
Message 37 in Test.tex: You should avoid spaces after parenthesis.
This( an example( Nuff said )), illustrates( ``my'' )point.
^
Message 37 in Test.tex: You should avoid spaces in front of parenthesis.
This( an example( Nuff said )), illustrates( ``my'' )point.
^
Message 36 in Test.tex: You should put a space in front of parenthesis.
This( an example( Nuff said )), illustrates( ``my'' )point.
^
Message 37 in Test.tex: You should avoid spaces after parenthesis.
This( an example( Nuff said )), illustrates( ``my'' )point.
^
Message 37 in Test.tex: You should avoid spaces in front of parenthesis.
This( an example( Nuff said )), illustrates( ``my'' )point.
^
Message 36 in Test.tex: You should put a space after parenthesis.
This( an example( Nuff said )), illustrates( ``my'' )point.
^
Message 22 in Test.tex: Comment displayed.
% Warning 38
^
Message 38 in Test.tex: You should not use punctuation in front of quotes.
``An example,'' he said, ``would be great.''
^
Message 22 in Test.tex: Comment displayed.
% Warning 39
^
Message 39 in Test.tex: Double space found.
For output codes, see table ~\ref{tab:fmtout}.
^
Message 22 in Test.tex: Comment displayed.
% Warning 40
^
Message 40 in Test.tex: You should put punctuation outside inner math mode.
$\this,$ and $$this$$.
^
Message 40 in Test.tex: You should put punctuation inside display math mode.
$\this,$ and $$this$$.
^
Message 22 in Test.tex: Comment displayed.
% Warning 41
^
Message 1 in Test.tex: Command terminated with space.
foo \above qux
^
Message 41 in Test.tex: You ought to not use primitive TeX in LaTeX code.
foo \above qux
^^^^^^
Message 22 in Test.tex: Comment displayed.
% Warning 42
^
Message 42 in Test.tex: You should remove spaces in front of `\footnote'
This is a footnote \footnote{foo}.
^
Message 22 in Test.tex: Comment displayed.
% Warning 43
^
Message 43 in Test.tex: `\left' is normally not followed by `{'.
Here is a mistake $\left{x\right}$.
^^^^^
Message 43 in Test.tex: `\right' is normally not followed by `}'.
Here is a mistake $\left{x\right}$.
^^^^^^
Message 21 in Test.tex: This command might not be intended.
This one triggers warning 22 $\left\{x\right\}$.
^^
Message 21 in Test.tex: This command might not be intended.
This one triggers warning 22 $\left\{x\right\}$.
^^
Message 22 in Test.tex: Comment displayed.
% Warning 44 -- user regex -- default message
^
Message 22 in Test.tex: Comment displayed.
% Warning 44 -- user regex -- user message
^
Message 22 in Test.tex: Comment displayed.
% Math mode check
^
Message 35 in Test.tex: You should perhaps use `\sin' instead.
\ensuremath{sin x\text{is not the same as sin x, but is the same as $sin x$}}
^^^
Message 35 in Test.tex: You should perhaps use `\sin' instead.
\ensuremath{sin x\text{is not the same as sin x, but is the same as $sin x$}}
^^^
Message 36 in Test.tex: You should put a space in front of parenthesis.
Also, $x(3)\text{ is not x(3) but it is $x(3)$}$
^
Message 22 in Test.tex: Comment displayed.
This is\\% a comment. Nothing here should be checked(right)?
^
Message 36 in Test.tex: You should put a space in front of parenthesis.
But this is not a \% comment, so we should find this error(right)?
^
Message 22 in Test.tex: Comment displayed.
Here(on this line only)is a warning $sin(x)$ suppressed. % chktex 36 chktex 35
^
Message 22 in Test.tex: Comment displayed.
Here(on this line only)is a warning $sin(x)$ suppressed. % CHKTEX 35 36
^
Message 36 in Test.tex: You should put a space in front of parenthesis.
Here(on this line only)is a warning $sin(x)$ suppressed. % CHKTEX 35 36
^
Message 36 in Test.tex: You should put a space after parenthesis.
Here(on this line only)is a warning $sin(x)$ suppressed. % CHKTEX 35 36
^
Message 22 in Test.tex: Comment displayed.
In section~\ref{sec:4} it is suppressed. % chktex -1
^
Message 22 in Test.tex: Comment displayed.
% In section~\ref{sec:5} we don't have a warning.
^
Message 22 in Test.tex: Comment displayed.
% Verb check
^
Message 14 in Test.tex: Could not find argument for command.
\verb#
^^^^^
Message 31 in Test.tex: This text may be ignored.
\end{verbatim} FOO
^^^
Message 22 in Test.tex: Comment displayed.
% Warning 16,15
^
Message 16 in Test.tex: Mathmode still on at end of LaTeX file.
Message 17 in Test.tex: Number of `(' doesn't match the number of `)'!
Message 17 in Test.tex: Number of `[' doesn't match the number of `]'!
Message 17 in Test.tex: Number of `{' doesn't match the number of `}'!
|