1Note: This file was written with only two purposes in mind:
2    o To test the program upon it
3    o To show off some of the features
4
5Most of the file does thus consist of lots of pseudo-commands, which
6are nonsense in a TeXnical manner.
7
8%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9
10% Warning 1
11
12\foo This is an error.
13\smallskip This is a not. $\foo Neither$ is this.
14
15\startsection[title={Testing ConTeXt}]
16These should now be an error.
17\stoptext
18
19% Warning 2
20
21This is a faulty reference to \ref{foo}
22This is not a faulty reference to~\ref{foo}
23
24% Warning 3
25
26$[(ab)^{-1}]^{-2}$  is not beautiful
27${{[{(ab)}^{-1}]}}^{-2}$ is beautiful
28
29% Warning 4-6, 28
30
31Testing {\it italic} in \/ this {\em sentence\/}, as {\em you \/ see\/}.
32Testing {\it italic\/} in this {\em sentence,} as {\em you see}.
33
34% LaTeX2e
35
36Testing \textem{italic} in \/ this \textit{sentence\/}, as \textem{you \/ see\/}.
37Testing \textem{italic\/} in this \textit{sentence}, as \textem{you see}.
38
39% Warning 7
40
41This \'is a test of $\hat{j}$ accents.
42This \'{\i}s a test of $\hat{\jmath}$ accents.
43
44% Warning 8
45
46It wasn't anything - just a 2---3 star--shots.
47It wasn't anything --- just a 2--3 star-shots.
48It's just a start-shot.
49is also used to send cross-calls (xc) and cross-traps (xt) to other
50% From Knuths TeXbook Chapter 14
51% "How TeX Breaks Paragraphs into Lines", fourth paragraph:
52in plain TeX---are the key
53
54% Using DashExcpt
55The Birch--Swinnerton-Dyer conjecture is correct.
56The Birch--Swinnerton--Dyer conjecture is not correct.
57The Birch-Swinnerton-Dyer conjecture is not correct (but not caught).
58
59% Warning 9-10
60
61% Brackets:
62
63)}{[])} }}}]]])))
64{[]} ((([[[{{{}}}]]])))
65
66% Envs:
67
68\begin{quux} \begin{baz} \end{quux} \end{baz} \end{asoi} \begin{dobedo}
69
70\begin{foo} \begin{bar} \end{bar}\end{foo}
71
72% Warning 11
73
74Foo...bar. $1,...,3$. $1+...+3$. $1,\cdots,3$. $1\cdot\ldots\cdot3$.
75Foo\dots bar. $1,\ldots,3$. $1+\cdots+3$. $1,\ldots,3$. $1\cdot\cdots\cdot3$.
76
77% Warning 12
78
791st. Foo Inc. Ab.cd. foo ab.cd. Foo. bar baz., billy.; bob.: joe.! frank.? james.. george
801st.\ foo Inc.\ ab.cd.\ foo ab.cd.\ Foo.\ bar baz., billy.; bob.:\ joe.!\ frank.?\ james..\ george
81
82% Warning 13
83
84Look at THIS! It's an error.
85Look at THIS\@! It's an error. D. E. Knuth.
86
87% Warning 14
88
89\hat
90\hat{a}
91
92% Warning 18,19
93
94Is this an "example", or is it an �example�.
95Is this an `example', or is it an `example'.
96
97% Warning 20
98
99That bug is \unknown\ to me.
100% That bug is \unknown\ to me.
101
102% Warning 21
103
104\LaTeX\ is an extension of \TeX\. Right?
105\LaTeX\ is an extension of \TeX. Right?
106
107% Warning 23
108
109```Hello', I heard him said'', she remembered.
110``\,`Hello', I heard him said'', she remembered.
111
112% Warning 24
113
114Indexing text \index{text} is fun!
115Indexing text\index{text} is fun!
116
117% Warning 25
118
119$5\cdot10^10$
120$5\cdot10^{10}$
121
122% Warning 26
123
124Do you understand ?
125Do you understand?
126
127% Warning 27
128
129\input input.tex
130\input input
131
132% Warning 29
133The program opens a screen sized 640x200 pixels
134The program opens a screen sized $640\times200$ pixels
135
136% Warning 30
137
138White           is a beautiful colour.
139White is a beautiful colour.
140
141% Warning 31
142\begin{verbatim}
143\this is
144\end{verbatim} foo bar
145
146% Warning 32-34
147
148This is either an 'example`, an ''example`` or an `"`example'`'.
149This is either an `example', an ``example'' or an ``example''.
150
151% Warning 35
152
153$sin^2 + cos^2 = 1$
154$\sin^2 + \cos^2 = 1$
155
156% Warning 36-37
157
158This( an example( Nuff said )), illustrates( ``my'' )point.
159This (an example (Nuff said)), illustrates (``my'') point.
160
161% Warning 38
162``An example,'' he said, ``would be great.''
163``An example'', he said, ``would be great''.
164
165% Warning 39
166
167For output codes, see table ~\ref{tab:fmtout}.
168For output codes, see table~\ref{tab:fmtout}.
169
170% Warning 40
171$\this,$ and $$this$$.
172$\this$, and $$this.$$
173
174% Warning 41
175foo \above qux
176\frac{foo}{qux}
177
178% Warning 42
179This is a footnote \footnote{foo}.
180This is a footnote\footnote{foo}.
181
182% Warning 43
183Here is a mistake $\left{x\right}$.
184This one triggers warning 22 $\left\{x\right\}$.
185Here \chktex\ doesn't complain $\left\lbrace x\right\rbrace$.
186
187% Warning 44 -- user regex -- default message
188You should always write a good intro.
189You should always write a good introduction.
190
191% Warning 44 -- user regex -- user message
192For every $p\not|n$ you have an ugly prime which doesn't divide $n$.
193For every $p\nmid n$ you have a cute prime which doesn't divide $n$.
194
195% Math mode check
196\ensuremath{sin x\text{is not the same as sin x, but is the same as $sin x$}}
197Also, $x(3)\text{ is not x(3) but it is $x(3)$}$
198
199This is\\% a comment. Nothing here should be checked(right)?
200a broken line.
201But this is not a \% comment, so we should find this error(right)?
202
203Here(on this line only)is a warning $sin(x)$ suppressed. % chktex 36 chktex 35
204Here(on this line only)is a warning $sin(x)$ suppressed. % CHKTEX 35 36
205
206In section~\ref{sec:3} we have a warning.
207In section~\ref{sec:4} it is suppressed. % chktex -1
208% In section~\ref{sec:5} we don't have a warning.
209
210\begin{tabular*}{1.0\linewidth}[h]{|c|cc|}
211  a & b \\
212  \hline
213  c & d
214\end{tabular*}
215
216% Verb check
217
218\verb@\this is )() lots of errors, etc. Or what?@
219\verb#
220
221\begin{verbatim}
222\this is
223\end{verbatim} FOO
224
225% Warning 16,15
226
227$$(
228