Debian Codegraph @

texk/chktex/chktex-src/chktexrc.in

raw
1 #### -*- conf -*- ####
2 ##### TODO: Do I want a TOC? Index?...
3 ##### TODO: Use something besides errexam?
4 ##### TODO: Color/frame for default value
5 ###############################################################################
6 #### This file is input to a simple "tangle" process. The extensions of .in is
7 #### a little misleading in that it's not managed by autotools or m4. Sorry.
8 ####
9 #### Two different files are created from this file by calling MakeChkTeXRC.pl
10 #### 1. chktexrc, a self-documenting chktexrc example
11 #### a. Lines with 3 (or more) leading #'s are discarded
12 #### b. Other lines are kept as is
13 #### 2. ChkTeXRC.tex, LaTeX documentation for chktexrc.
14 #### a. Lines with 4 (or more) leading #'s are discarded
15 #### b. Lines with 0 or 2 (exactly) leading #'s are discarded
16 #### c. Lines with 1 or 3 (exactly) leading #'s are turned in (LaTeX-only) lines
17 ####
18 #### In other words
19 #### 1. Lines with 1 or 3 leading #'s are included in the LaTeX
20 #### documentation with the #'s stripped off
21 #### 2. Lines with 0, 1 or 2 are included as is in the example
22 #### chktexrc file
23 #### #
24 ###############################################################################
25 ## Example resource file for ChkTeX.
26 ##
27 ## This program is free software; you can redistribute it and/or modify
28 ## it under the terms of the GNU General Public License as published by
29 ## the Free Software Foundation; either version 2 of the License, or
30 ## (at your option) any later version.
31 ##
32 ## This program is distributed in the hope that it will be useful,
33 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
34 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 ## GNU General Public License for more details.
36 ##
37 ## You should have received a copy of the GNU General Public License
38 ## along with this program; if not, write to the Free Software
39 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
40 ##
41 ## For more information visit https://www.nongnu.org/chktex/
42 ##
43
44 ### \subsubsection{The \rsrc\ file format}
45 ## chktexrc file format
46 #
47 # The chktexrc file is essentially a bunch of variable assignments.
48 # There are two types of variables, those that take single items and
49 # those that take lists.
50 #
51 # In turn, there are two types of lists, case-sensitive and case-insensitive.
52 # Case-sensitive lists are delimited by @verb@{@endverb@ and @verb@}@endverb@
53 # while case-insensitive are delimited by @verb@[@endverb@ and @verb@]@endverb@.
54 # Only some variables support case insensitive lists, since in many
55 # cases it doesn't make sense and would be unnecessarily slow. Those
56 # variables that @emph@do@endemph@ support case-insensitive lists will be marked as
57 # such throughout the file.
58 #
59 # Variables can be set with or without an equals sign. If included, the
60 # @verb@=@endverb@ causes the variable to be overwritten. This is the only thing
61 # that makes sense for variables taking a single item and so we always
62 # include it in that case. For list variables, omitting the equals
63 # sign will cause the items in the list to be appended instead of
64 # overwriting the entire list.
65 #
66 # Below are all the ways in which a variable can be set. Note that lists
67 # can span lines, though this is not shown here for brevity.
68 #
69 #
70 ### \begin{verbatim}
71 # VariableName = item
72 # # Overwrites
73 # VariableName = { Item1 Item2 ... }
74 # VariableName = [ item1 item2 ... ]
75 # VariableName = { Item1 Item2 ... } [ item item ... ]
76 # VariableName = [ item1 item2 ... ] { Item Item ... }
77 # # Appends
78 # VariableName { Item3 Item4 ... }
79 # VariableName [ item3 item4 ... ]
80 # VariableName { Item3 Item4 ... } [ item item ... ]
81 # VariableName [ item3 item4 ... ] { Item Item ... }
82 ### \end{verbatim}
83 #
84 #
85 # Comments begin with @verb@#@endverb@, and continue for the end of the line.
86 # Blank lines plus leading and trailing spaces are ignored.
87 # Items are separated by spaces.
88 # Newlines are considered spaces, but can't be escaped.
89 # You can use double quotes @verb@"@endverb@ to surround an item with spaces, or you can
90 # escape spaces as described later.
91 #
92 # Detection of tokens like @verb@}@endverb@ are somewhat context sensitive---they
93 # have to be preceded by a space (or newline). This allows them to be
94 # part of an item without escaping. Since some variables require such
95 # characters, this generally makes life easier.
96 #
97 # To include characters that might otherwise interfere, escape
98 # sequences are provided. They are similar to those in C, but use
99 # @verb@!@endverb@ instead of @verb@\@endverb@ for obvious reasons.
100 # The entire list is below.
101 #
102 ### \vspace{0.5\baselineskip}
103 ### \begin{tabular}{p{0.2\textwidth}p{0.7\textwidth}}
104 # @bf Sequence @&@ @bf Resulting character @\\@
105 # @verb@! @endverb@ @&@ Space @\\@
106 # @verb@!"@endverb@ @&@ @verb@"@endverb@ @\\@
107 # @verb@!#@endverb@ @&@ @verb@#@endverb@ @\\@
108 # @verb@!!@endverb@ @&@ @verb@!@endverb@ @\\@
109 # @verb@!{@endverb@ @&@ @verb@{@endverb@ @\\@
110 # @verb@!}@endverb@ @&@ @verb@}@endverb@ @\\@
111 # @verb@![@endverb@ @&@ @verb@[@endverb@ @\\@
112 # @verb@!]@endverb@ @&@ @verb@]@endverb@ @\\@
113 # @verb@!=@endverb@ @&@ @verb@=@endverb@ @\\@
114 # @verb@!b@endverb@ @&@ Backspace @\\@
115 # @verb@!n@endverb@ @&@ New line @\\@
116 # @verb@!r@endverb@ @&@ Carriage return @\\@
117 # @verb@!t@endverb@ @&@ Tab @\\@
118 # @verb@!f@endverb@ @&@ Form feed @\\@
119 # @verb@!xNN@endverb@ @&@ NN must be a hexadecimal number (00 - ff),
120 # both characters must be included. @\\@
121 # @verb@!dNNN@endverb@ @&@ NNN must be a decimal number (000 - 255), all
122 # three characters must be included.
123 # Unspecified results if NNN > 377. @\\@
124 # @verb@!NNN@endverb@ @&@ NNN must be a octal number (000 - 377), all
125 # three characters must be included.
126 # Unspecified results if NNN > 377.
127 ### \end{tabular}
128
129 ### \subsubsection{Settings in the \rsrc\ file}
130 ## Available Settings
131 #
132 # All available settings follow.
133 #
134
135 ## QuoteStyle
136 ### \medskip
137 ### \begin{chktexrcsimplevar}{QuoteStyle}
138 #
139 # The type of quote-style you are using. There are currently two
140 # styles:
141 #
142 # Traditional:
143 ### \begin{errexam}
144 # "An example," he said, "would be great."
145 ### \end{errexam}
146 #
147 # Logical:
148 ### \begin{errexam}
149 # "An example", he said, "would be great".
150 ### \end{errexam}
151 #
152 ### \chktexrcdefault\begin{verbatim}
153 QuoteStyle = Logical
154 ### \end{verbatim}
155 ### \end{chktexrcsimplevar}
156
157
158 ## TabSize
159 ### \begin{chktexrcsimplevar}{TabSize}
160 #
161 # The width of a tab. This is used for formatting the error message.
162 # Only positive integers are allowed.
163 #
164 ### \chktexrcdefault\begin{verbatim}
165 TabSize = 8
166 ### \end{verbatim}
167 ### \end{chktexrcsimplevar}
168
169
170 ## CmdSpaceStyle
171 ### \medskip
172 ### \begin{chktexrcsimplevar}{CmdSpaceStyle}
173 #
174 # How to treat a command is followed by punctuation. In all cases the
175 # warnings are also governed by the main warning settings, namely
176 # warnings 12 and 13 about interword and intersentence spacings.
177 ### These can be found on page~\pageref{warn:interword}.
178 #
179 # If set to Ignore, then it won't print any warnings when punctuation
180 # follows a command.
181 #
182 #
183 # If CmdSpaceStyle is set to InterWord, then it will print warnings
184 # when interword spacing should (potentially) be used. For example,
185 # without a command the following will trigger warning 12
186 #
187 ### \begin{errexam}
188 # @verb@I've seen a UFOs, etc. in my life.@endverb@
189 ### \end{errexam}
190 #
191 # And if set to InterWord, so will
192 #
193 ### \begin{errexam}
194 # @verb@I've seen a UFOs, \etc. in my life.@endverb@
195 ### \end{errexam}
196 #
197 #
198 # If set to InterSentence, then it will print warnings when
199 # intersentence spacing should (potentially) be used. For example,
200 # without a command the following will trigger warning 13
201 #
202 ### \begin{errexam}
203 # @verb@I've seen an UFO! Right over there!@endverb@
204 ### \end{errexam}
205 #
206 # And if set to InterSentence, so will
207 #
208 ### \begin{errexam}
209 # @verb@I've seen an \UFO! Right over there!@endverb@
210 ### \end{errexam}
211 #
212 #
213 # Setting CmdSpaceStyle to Both will cause warnings to be printed in
214 # both cases.
215 #
216 ### \chktexrcdefault\begin{verbatim}
217 CmdSpaceStyle = Ignore
218 ### \end{verbatim}
219 ### \end{chktexrcsimplevar}
220
221
222 ## CmdLine
223 ### \begin{chktexrclistvar}{CmdLine}
224 #
225 # Default command-line options. For instance, you might like to put
226 # @verb@-v2@endverb@ here.
227 #
228 ### \chktexrcdefault\begin{verbatim}
229 CmdLine
230 {
231 }
232 ### \end{verbatim}
233 ### \end{chktexrclistvar}
234
235
236 ## UserWarn
237 ### \begin{chktexrclistvar*}{UserWarn}
238 #
239 # Arbitrary strings to warn about. You can put here to help you find
240 # your own little foibles. See also@ref@UserWarnRegex@endref@.
241 #
242 # These patterns will be searched for throughout the text; regardless
243 # of whether they appear as normal text, commands, in math mode, etc.
244 # They are @emph@not@endemph@ found in comments.
245 #
246 # Suppose you define a special command like this:
247 ### \begin{verbatim}
248 # \def\unknown{\large\bf??}
249 ### \end{verbatim}
250 # which you use whenever you don't have some information at the time
251 # of writing. Thus, it makes sense to warn on it, and this is a
252 # convenient way to do so.
253 #
254 ### \chktexrcdefault\begin{verbatim}
255 UserWarn
256 {
257 \unknown
258 # One should write \chktex or Chk\TeX - never ChkTeX.
259 ChkTeX
260 }
261 [ # You may put case-insensitive patterns here.
262 ]
263 ### \end{verbatim}
264 ### \end{chktexrclistvar*}
265
266
267 ## UserWarnRegex
268 ### \begin{chktexrclistvar}{UserWarnRegex}
269 #
270 # A more sophisticated version of@ref@UserWarn@endref@ using regular
271 # expressions. Use of these will be automatically disabled if @ChkTeX@
272 # was built without regular expression support. Because @ChkTeX@ can be
273 # with support for either POSIX or PCRE flavors of regular expression,
274 # some of the following will not apply in all cases. An expression
275 # can be defined only when PCRE is enabled by prepending the
276 # expression with @verb@PCRE:@endverb@ and similarly with @verb@POSIX:@endverb@.
277 #
278 # These patterns will be searched for, no matter whether they appear
279 # as normal text, commands, or arguments. However, they will @emph@not@endemph@
280 # match in verbatim environments (see@ref@VerbEnvir@endref@).
281 #
282 # Remember that you have to escape (with a @verb@!@endverb@) the characters
283 # @verb@"#!=@endverb@, as well as spaces and @verb@{}[]@endverb@ if they are
284 # proceeded by a space.
285 #
286 # When using PCRE regular expressions, you can use @verb@(?i)@endverb@ to make
287 # the expression case insensitive. See the man pages (man pcresyntax)
288 # or the nicely formatted http://perldoc.perl.org/perlre.html for
289 # documentation on the regular expression syntax. Note, however, that
290 # some the features of perl regular expression are not available such
291 # as running code (callouts), and replacing.
292 #
293 # An initial PCRE-style comment @verb@(?# ... )@endverb@ can be used
294 # to change what is displayed, thereby reminding yourself how to fix
295 # the problem. This works even for POSIX expressions.
296 #
297 ### \chktexrcdefault\begin{verbatim}
298 UserWarnRegex
299 {
300 (?!#Always! use! \nmid)\\not! *(\||\\mid)
301
302 # Capitalize section when saying Section 6.
303 (?!#-1:Capitalize! before! references)PCRE:\b(chapter|(sub)?section|theorem|lemma|proposition|corollary|appendix)~\\ref
304 (?!#1:Capitalize! before! references)POSIX:([^[:alnum:]]|^)(chapter|(sub)?section|theorem|lemma|proposition|corollary|appendix)~\\ref
305
306 # Spell it introduction
307 # PCRE:(?i)\bintro\b(?!#Spell! it! out.! This! comment! is! not! used.)
308 # POSIX:([^[:alnum:]]|^)intro([^[:alnum:]]|$)
309
310 # Pretty tables--see http://texdoc.net/texmf-dist/doc/latex/booktabs/booktabs.pdf
311 (?!#-2:Use! \toprule,! \midrule,! or! \bottomrule! from! booktabs)\\hline
312 # This relies on it being on a single line, and not having anything
313 # else on that line. With PCRE we could match balanced [] and {},
314 # but I wonder if it's worth the complexity...
315 (?!#-2:Vertical! rules! in! tables! are! ugly)\\begin\{(array|tabularx?\*?)\}(\[.*\])?\{.*\|.*\}
316
317 (?!#-3:Optional! arguments! []! inside! optional! arguments! []! must! be! enclosed! in! {})PCRE:\[(?!![^\]\[{}]*{(?!![^\]\[{}]*}))[^\]]*\[
318
319 }
320 ### \end{verbatim}
321 ### \end{chktexrclistvar}
322
323
324 ## TeXInputs
325 ### \begin{chktexrclistvar}{TeXInputs}
326 #
327 # A list of paths where @ChkTeX@ should look for files it @verb@\input@endverb@s.
328 # By default, the current directory is searched (not recursively, use
329 # @verb@//@endverb@ for that, see below).
330 #
331 # A @verb@//@endverb@ postfix is supported:
332 # if you append a double path-separator we'll recursively search that
333 # directory's directories. MS-DOS users must append @verb@\\@endverb@
334 # instead, e.g. @verb@C:\EMTEX\\@endverb@. In order to search an
335 # entire directory tree, you must use @emph@three@endemph@ slashes,
336 # e.g. @verb@c:\\\@endverb@ or @verb@///@endverb@.
337 #
338 ### \chktexrcdefault\begin{verbatim}
339 TeXInputs
340 {
341 }
342 ### \end{verbatim}
343 ### \end{chktexrclistvar}
344
345
346 ## OutFormat
347 ### \begin{chktexrclistvar}{OutFormat}
348 #
349 # Output formats which can be selected from the command-line. The
350 # @verb@-v@endverb@ option simply indexes into this list. By default, entry number
351 # @emph@two@endemph@ in this list is chosen (counting from 0), and @verb@-v@endverb@
352 # without any parameter selects entry number @emph@three@endemph@.
353 #
354 # For explanation of the @verb@%@endverb@ format specifiers see the
355 # documentation of the @verb@--format@endverb@ command-line argument
356 ### \begin{comment}
357 # in the manual.
358 ### \end{comment}
359 ### on page~\pageref{clarg:format}.
360 #
361 # Recall that to use @verb@!@endverb@ is the escape character, not @verb@\@endverb@.
362 #
363 ### \chktexrcdefault\begin{verbatim}
364 OutFormat
365 {
366 # -v0; silent mode
367 %f%b%l%b%c%b%n%b%m!n
368 # -v1; normal mode
369 "%k %n in %f line %l: %m!n%r%s%t!n%u!n"
370 # -v2; fancy mode
371 "%k %n in %f line %l: %m!n%r%i%s%I%t!n!n"
372 # -v3; lacheck mode
373 "!"%f!", line %l: %m!n"
374 # -v4; verbose lacheck mode
375 "!"%f!", line %l: %m!n%r%s%t!n%u!n"
376 # -v5; no line number, ease auto-test
377 "%k %n in %f: %m!n%r%s%t!n%u!n"
378 # -v6; emacs compilation mode
379 "!"%f!", line %l.%c:(#%n) %m!n"
380 }
381 ### \end{verbatim}
382 ### \end{chktexrclistvar}
383
384
385 ## Silent
386 ### \begin{chktexrclistvar*}{Silent}
387 #
388 # Commands which should not trigger a warning if terminated by a space.
389 # This warning will not trigger in math mode.
390 #
391 # You can also specify regular expressions in the @verb@[]@endverb@
392 # section in case you have many custom macros that can be safely
393 # terminated with a space.
394 #
395 ### \chktexrcdefault\begin{verbatim}
396 Silent
397 {
398 \rm \em \bf \it \sl \sf \sc \tt \selectfont
399 \rmfamily \sffamily \ttfamily \mdseries \bfseries \itshape
400 \slshape \scshape \relax
401 \vskip \pagebreak \nopagebreak
402
403 \textrm \textem \textbf \textit \textsl \textsf \textsc \texttt
404
405 \clearpage \ddots \dotfill \flushbottom \fussy \indent \linebreak
406 \onecolumn \pagebreak \pushtabs \poptabs \scriptsize \sloppy
407 \twocolumn \vdots
408 \today \kill \newline \thicklines \thinlines
409
410 \columnsep \space \item \tiny \footnotesize \small \normalsize
411 \normal \large \Large \LARGE \huge \Huge \printindex
412
413 \newpage \listoffigures \listoftables \tableofcontents
414 \maketitle \makeindex
415
416 \hline \hrule \vrule
417
418 \centering
419
420 \noindent \expandafter
421
422 \makeatletter \makeatother
423
424 \columnseprule
425
426 \textwidth \textheight \hsize \vsize
427
428 \if \fi \else
429
430 \csname \endcsname
431
432 \z@ \p@ \@warning \typeout
433
434 \dots \ldots \input \endinput \nextline \leavevmode \cdots
435 \appendix \listfiles \and \quad \bigskip \medskip \smallskip
436 \hskip \vfill \vfil \hfill \hfil \topmargin \oddsidemargin
437 \frenchspacing \nonfrenchspacing
438 \begingroup \endgroup \par
439
440 \vrefwarning \upshape \headheight \headsep \hoffset \voffset
441 \cdot \qquad \left \right \qedhere \xspace
442
443 \addlinespace \cr \fill \frontmatter
444 \toprule \midrule \bottomrule
445 }[
446 # Here you can put regular expressions to match Silent macros. It
447 # was designed for use with many custom macros sharing a common
448 # prefix, but can of course be used for other things.
449
450 # Support ConTeXt to at least some extent
451 \\start.* \\stop.*
452 ]
453 ### \end{verbatim}
454 ### \end{chktexrclistvar*}
455
456
457 ## HyphDash
458 ### \begin{chktexrclistvar}{HyphDash}
459 #
460 # The number of dashes allowed between two alphabetic characters.
461 # Use 0 to always return an error. For example:
462 ### \begin{errexam}
463 # foo-bar @\\@
464 # Use of two--dashes is not usually allowed in English. @\\@
465 # like this---see?
466 ### \end{errexam}
467 #
468 # For English, this will often be a single dash (hyphen). If you like
469 # m-dashes with no spaces between them and the surrounding words, then
470 # it should include 3 as well. There @emph@are@endemph@ cases when an n-dash
471 # is valid between two alphabetic characters. See@ref@DashExcpt@endref@.
472 #
473 ### \chktexrcdefault\begin{verbatim}
474 HyphDash { 1 3 }
475 ### \end{verbatim}
476 ### \end{chktexrclistvar}
477
478
479 ## NumDash
480 ### \begin{chktexrclistvar}{NumDash}
481 #
482 # The number of dashes allowed between two numeric characters.
483 # Use 0 to always return an error. This does @emph@not@endemph@ apply in
484 # math mode. For example:
485 ### \begin{errexam}
486 # 123--456 is a range @\\@
487 # $12-4$ \% okay because it's in math mode
488 ### \end{errexam}
489 #
490 # For English, this should be 2 because an n-dash is used to indicate
491 # a range of numbers and subtraction should be in math mode where this
492 # does not apply.
493 #
494 ### \chktexrcdefault\begin{verbatim}
495 NumDash { 2 }
496 ### \end{verbatim}
497 ### \end{chktexrclistvar}
498
499
500 ## WordDash
501 ### \begin{chktexrclistvar}{WordDash}
502 #
503 # The number of dashes allowed between two space characters.
504 # Use 0 to always return an error. For example:
505 ### \begin{errexam}
506 # not like - this, @\\@
507 # or like -- this. @\\@
508 # like this --- see?
509 ### \end{errexam}
510 #
511 ### \chktexrcdefault\begin{verbatim}
512 WordDash { 3 }
513 ### \end{verbatim}
514 ### \end{chktexrclistvar}
515
516
517 ## DashExcpt
518 ### \begin{chktexrclistvar}{DashExcpt}
519 #
520 # Exceptions to the dash rules above. For example, an n-dash
521 # @verb@--@endverb@ between words is usually wrong, but in some cases it is correct,
522 # such as when naming a theorem. The Birch--Swinnerton-Dyer
523 # conjecture is one example where the difference matters. You can
524 # tell that Birch is one person and Swinnerton-Dyer is another based
525 # on the dashes used.
526 #
527 # Adding line suppressions for these is possible, but can quickly
528 # become tedious if a certain theorem is referenced often. For this
529 # reason exceptions can be specified here. They are case-sensitive.
530 #
531 # Unfortunately, there are no warnings if the dashes are surrounded by differing
532 # types of characters. For example:
533 ### \begin{errexam}
534 # like this ---see? (space and alphabet) @\\@
535 # a--123 (number and alphabet) @\\@
536 # a.--b. (other character, namely @verb@.@endverb@)
537 ### \end{errexam}
538 # Similarly, no warnings are issued if the hyphenation is correct,
539 # according to the other rules, for example:
540 ### \begin{errexam}
541 # Birch-Swinnerton-Dyer
542 ### \end{errexam}
543 #
544 ### \chktexrcdefault\begin{verbatim}
545 DashExcpt
546 {
547 Birch--Swinnerton-Dyer
548 }
549 ### \end{verbatim}
550 ### \end{chktexrclistvar}
551
552
553 ## WipeArg
554 ### \begin{chktexrclistvar}{WipeArg}
555 #
556 # Commands whose arguments aren't @LaTeX@ code, and thus should be
557 # ignored.
558 #
559 # After the command, you may place arguments (separated from the
560 # command with a colon) that should be wiped. Use @verb@[]@endverb@ for optional
561 # arguments, @verb@{}@endverb@ for required ones, and @verb@*@endverb@ if the command supports a
562 # star variant. Some commands (e.g.\@ @verb@\cmidrule@endverb@) use @verb@()@endverb@ to
563 # delimit an optional argument and so this syntax is supported as well.
564 #
565 # For instance, if you would like to wipe the @verb@\newcommand@endverb@ command,
566 # you would declare it as @verb@\newcommand:*[][]{}@endverb@ since it has a
567 # star variant, two optional arguments, and one required argument.
568 #
569 # These commands may be ``evaluated'' before they're wiped, so you will
570 # typically list file handling commands and similar here.
571 #
572 ### \chktexrcdefault\begin{verbatim}
573 WipeArg
574 {
575 \label:{} \ref:{} \eqref:{} \vref:{} \pageref:{} \index:[]{}
576 \cite:[][]{} \nocite:{}
577 \input:{} \verbatiminput:[]{} \listinginput:[]{}{}
578 \graphicspath:{}
579 \verbatimtabinput:[]{} \include:{} \includeonly:{}
580 \bibitem:[]{}
581 \cline:{} \cmidrule:[](){}
582 \href:{}{}
583 # Cleveref -- there are many others that could be here as well...
584 \cref:*{} \cpageref:*{} \crefrange:*{}{} \cpagerefrange:*{}{}
585 \Cref:*{} \Cpageref:*{} \Crefrange:*{}{} \Cpagerefrange:*{}{}
586 # natbib
587 \citet:*[][]{} \citep:*[][]{} \citealt:*{} \citealp:*[]{} \citeauthor:*{}
588 \Citet:*[][]{} \Citep:*[][]{} \Citealt:*{} \Citealp:*[]{} \Citeauthor:{}
589 \citetext:{} \citeyear:*{} \citeyearpar:{}
590 # biblatex - not including special commands
591 \autocite:*[][]{} \autocites:*[][]{} \Autocite:*[][]{} \Autocites:*[][]{}
592 \parencite:*[][]{} \parencites:*[][]{} \Parencite:*[][]{} \Parencites:*[][]{}
593 \footcite:*{} \footcites:*[][]{} \Footcite:*[][]{} \Footcites:*[][]{}
594 \textcite:*{} \textcites:*[][]{} \Textcite:*[][]{} \Textcites:*[][]{}
595 \citeauthor:*{} \citeauthors:*[][]{} \Citeauthor:*[][]{} \Citeauthors:*[][]{}
596 \citeyear:*{} \citeyears:*[][]{} \Citeyear:*[][]{} \Citeyears:*[][]{}
597 \citetitle:*{} \citetitles:*[][]{} \Citetitle:*[][]{} \Citetitles:*[][]{}
598 # tipa which uses "
599 \textipa:{}
600 # LuaTeX
601 \directlua:{} \luaescapestring:{}
602 }
603 ### \end{verbatim}
604 ### \end{chktexrclistvar}
605
606
607 ## MathEnvir
608 ### \begin{chktexrclistvar}{MathEnvir}
609 #
610 # Environments which typeset their contents as mathematics.
611 # This turns on/off some warnings.
612 #
613 # A @verb@*@endverb@ variant is automatically added for each keyword.
614 #
615 ### \chktexrcdefault\begin{verbatim}
616 MathEnvir
617 {
618 displaymath math eqnarray array equation
619 align alignat gather flalign multline
620 dmath dgroup darray
621 }
622 ### \end{verbatim}
623 ### \end{chktexrclistvar}
624
625
626 ## TextEnvir
627 ### \begin{chktexrclistvar}{TextEnvir}
628 #
629 # Environments which typeset their contents as text, for use inside
630 # mathematics. This turns on/off some warnings.
631 #
632 ### \chktexrcdefault\begin{verbatim}
633 TextEnvir
634 {
635 dsuspend
636 }
637 ### \end{verbatim}
638 ### \end{chktexrclistvar}
639
640
641 ## MathCmd
642 ### \begin{chktexrclistvar}{MathCmd}
643 #
644 # Commands whose argument will be typeset as mathematics.
645 # The commands are assumed to have one mandatory argument which is in
646 # math mode. This turns on/off some warnings.
647 #
648 ### \chktexrcdefault\begin{verbatim}
649 MathCmd
650 {
651 \ensuremath
652 }
653 ### \end{verbatim}
654 ### \end{chktexrclistvar}
655
656
657 ## TextCmd
658 ### \begin{chktexrclistvar}{TextCmd}
659 #
660 # Commands whose argument will @emph@not@endemph@ be typeset as
661 # mathematics even if it would otherwise be in math mode.
662 # The commands are assumed to have one mandatory argument which is in
663 # text mode. This turns on/off some warnings.
664 #
665 ### \chktexrcdefault\begin{verbatim}
666 TextCmd
667 {
668 \text \intertext \shortintertext \mbox \condition
669 }
670 ### \end{verbatim}
671 ### \end{chktexrclistvar}
672
673
674 ## VerbEnvir
675 ### \begin{chktexrclistvar}{VerbEnvir}
676 #
677 # Environments containing non-@LaTeX@ content of some kind, and
678 # therefore should not trigger any warnings.
679 #
680 # A @verb@*@endverb@ variant is automatically added for each keyword.
681 #
682 ### \chktexrcdefault\begin{verbatim}
683 VerbEnvir
684 {
685 verbatim comment listing verbatimtab rawhtml errexam picture texdraw
686 filecontents pgfpicture tikzpicture minted lstlisting IPA
687 }
688 ### \end{verbatim}
689 ### \end{chktexrclistvar}
690
691
692 ## Abbrev
693 ### \begin{chktexrclistvar*}{Abbrev}
694 #
695 # Abbreviations not automatically handled by @ChkTeX@.
696 #
697 # @ChkTeX@ automagically catches most abbreviations; the ones we need to
698 # list here, are those which are most likely to be followed by a word
699 # with an upper-case letter which is not the beginning of a new
700 # sentence.
701 #
702 # The case-insensitive abbreviations are not fully case-insensitive.
703 # Rather, only the first character is case-insensitive, while the
704 # remaining characters are case-sensitive.
705 #
706 # To speed up the searching process somewhat, we require that these
707 # end in a @verb@.@endverb@ which should not be a problem in practice.
708 #
709 # Much of this work (both the abbreviations below, and the regular
710 # expressions necessary to catch the remaining automatically) have
711 # been provided by Russ Bubley, <[email protected]>.
712 #
713 ### \chktexrcdefault\begin{verbatim}
714 Abbrev
715 {
716 # Ordinals
717 1st. 2nd. 3rd. 4th.
718 # Titles
719 Mr. Mrs. Miss. Ms. Dr. Prof. St.
720 #
721 # Days
722 # Mon. Tue. Wed. Thu. Fri. Sat. Sun.
723 #
724 # Months
725 # Jan. Feb. Mar. Apr. May. Jun. Jul. Aug. Sep. Oct. Nov. Dec.
726 #
727 # Letters
728 # Kt. Jr.
729 #
730 # Corporate
731 # Co. Ltd.
732 #
733 # Addresses
734 # Rd. Dr. St. Ave. Cres. Gdns. Sq. Circ. Terr. Pl. Arc. La. Clo. Ho. Est. Gn.
735 #
736 # Misc.
737 # oe. pbab. ps. rsvp. Tx.
738 }
739 [
740 # The first letter is case-insensitive in the abbrevs in this
741 # list. Due to the nature of the checking algorithm used for
742 # this, entries consisting of only one character will be
743 # silently ignored.
744 #
745 # Latin
746 # cf. "et al." etc. qed. qv. viz.
747 #
748 # Corporate
749 # inc. plc.
750 #
751 # Misc
752 # fax. pcs. qty. tel. misc.
753 ]
754 ### \end{verbatim}
755 ### \end{chktexrclistvar*}
756
757
758 ## IJAccent
759 ### \begin{chktexrclistvar}{IJAccent}
760 #
761 # Commands which add accents above characters. This means that @verb@\i@endverb@ or @verb@\j@endverb@
762 # (@verb@\imath@endverb@ and @verb@\jmath@endverb@ in math mode) should be used instead of @verb@i@endverb@ and @verb@j@endverb@.
763 #
764 # Other accent commands such as @verb@\c@endverb@, @verb@\d@endverb@, and @verb@\b@endverb@, put their accent under
765 # the character, and thus should be used with normal @verb@i@endverb@s and @verb@j@endverb@s.
766 #
767 ### \chktexrcdefault\begin{verbatim}
768 IJAccent
769 {
770 \hat \check \breve \acute \grave \tilde \bar \vec \dot \ddot
771 \' \` \^ \" \~ \= \. \u \v \H \t
772 }
773 ### \end{verbatim}
774 ### \end{chktexrclistvar}
775
776
777 ## Italic
778 ### \begin{chktexrclistvar}{Italic}
779 #
780 # Commands which need italic correction when the group is terminated.
781 #
782 ### \chktexrcdefault\begin{verbatim}
783 Italic
784 {
785 \it \em \sl \itshape \slshape
786 }
787 ### \end{verbatim}
788 ### \end{chktexrclistvar}
789
790
791 ## NonItalic
792 ### \begin{chktexrclistvar}{NonItalic}
793 #
794 # Commands which makes the font non-italic.
795 #
796 ### \chktexrcdefault\begin{verbatim}
797 NonItalic
798 {
799 \bf \rm \sf \tt \sc
800 \upshape
801 }
802 ### \end{verbatim}
803 ### \end{chktexrclistvar}
804
805
806 ## ItalCmd
807 ### \begin{chktexrclistvar}{ItalCmd}
808 #
809 # Commands which put their argument into italic (and thus possibly
810 # needs italic correction in the end).
811 #
812 # This is currently empty, since @verb@\textit@endverb@, @verb@\textsl@endverb@, and @verb@\emph@endverb@
813 # automatically add italic correction.
814 #
815 ### \chktexrcdefault\begin{verbatim}
816 ItalCmd
817 {
818 }
819 ### \end{verbatim}
820 ### \end{chktexrclistvar}
821
822
823 ## PostLink
824 ### \begin{chktexrclistvar}{PostLink}
825 #
826 # Commands in front of which a page break is highly undesirable.
827 # Thus there should be no space in front of them.
828 #
829 ### \chktexrcdefault\begin{verbatim}
830 PostLink
831 {
832 \index \label
833 }
834 ### \end{verbatim}
835 ### \end{chktexrclistvar}
836
837
838 ## NotPreSpaced
839 ### \begin{chktexrclistvar}{NotPreSpaced}
840 #
841 # Commands that should not have a space in front of them for various
842 # reasons. Much the same as@ref@PostLink@endref@, but produces a different warning.
843 #
844 ### \chktexrcdefault\begin{verbatim}
845 NotPreSpaced
846 {
847 \footnote \footnotemark \/
848 }
849 ### \end{verbatim}
850 ### \end{chktexrclistvar}
851
852
853 ## Linker
854 ### \begin{chktexrclistvar}{Linker}
855 #
856 # Commands that should be prepended with a @verb@~@endverb@. For example
857 ### \begin{errexam}
858 # @verb@look in table~\ref{foo}@endverb@
859 ### \end{errexam}
860 # to avoid the references being split across lines.
861 #
862 ### \chktexrcdefault\begin{verbatim}
863 Linker
864 {
865 \ref \vref \pageref \eqref \cite
866 }
867 ### \end{verbatim}
868 ### \end{chktexrclistvar}
869
870
871 ## CenterDots
872 ### \begin{chktexrclistvar}{CenterDots}
873 #
874 # Commands or characters which should have @verb@\cdots@endverb@ in between.
875 # For example, $1+2+3+\cdots+n$.
876 #
877 ### \chktexrcdefault\begin{verbatim}
878 CenterDots
879 {
880 = + - \cdot \div & \times \geq \leq < >
881 }
882 ### \end{verbatim}
883 ### \end{chktexrclistvar}
884
885
886 ## LowDots
887 ### \begin{chktexrclistvar}{LowDots}
888 #
889 # Commands or characters which should have @verb@\ldots@endverb@ in between.
890 # For example, $1,2,3,\ldots,n$.
891 #
892 ### \chktexrcdefault\begin{verbatim}
893 LowDots
894 {
895 . , ;
896 }
897 ### \end{verbatim}
898 ### \end{chktexrclistvar}
899
900
901 ## MathRoman
902 ### \begin{chktexrclistvar}{MathRoman}
903 #
904 # Words that should appear in roman (upright) in math mode. There are
905 # certain aliases for mathematical operators (like sin or cos) that
906 # appear in roman rather than the usual italic (slanted) font.
907 #
908 # These entries do not need a leading slash since the mistake is often
909 # to @emph@not@endemph@ include the leading slash.
910 #
911 ### \chktexrcdefault\begin{verbatim}
912 MathRoman
913 {
914 log lg ln lim limsup liminf sin arcsin sinh cos arccos cosh tan
915 arctan tanh cot coth sec csc max min sup inf arg ker dim hom det
916 exp Pr gcd deg bmod pmod mod
917 }
918 ### \end{verbatim}
919 ### \end{chktexrclistvar}
920
921
922 ## Primitives
923 ### \begin{chktexrclistvar}{Primitives}
924 #
925 # Commands that are used in @TeX@ but have become unnecessary in
926 # @LaTeX@, as there are @LaTeX@ commands which do the same. Purists
927 # should thus avoid these in their code.
928 #
929 ### \chktexrcdefault\begin{verbatim}
930 Primitives
931 {
932 \above \advance \catcode \chardef \closein \closeout \copy \count
933 \countdef \cr \crcr \csname \delcode \dimendef \dimen \divide
934 \expandafter \font \hskip \vskip \openout
935 }
936 ### \end{verbatim}
937 ### \end{chktexrclistvar}
938
939
940 ## NoCharNext
941 ### \begin{chktexrclistvar}{NoCharNext}
942 #
943 # Commands and a set of characters that should @emph@not@endemph@ follow them. For
944 # example, in math mode, @verb@\left@endverb@ should be followed by a delimiter
945 # which is to change size. Therefore, it should not be followed by the
946 # end of math mode @verb@$@endverb@ or a grouping character @verb@{@endverb@ or @verb@}@endverb@.
947 #
948 # The format is @verb@\command:characters@endverb@.
949 #
950 ### \chktexrcdefault\begin{verbatim}
951 NoCharNext
952 {
953 \left:{}$ \right:{}$
954 }
955 ### \end{verbatim}
956 ### \end{chktexrclistvar}
957
958
959 ## VerbClear
960 ### \begin{chktexrcsimplevar}{VerbClear}
961 #
962 # The character to replace verbatim text with.
963 #
964 # The arguments of commands listed in@ref@WipeArg@endref@, as well as
965 # @verb@\verb+...+@endverb@ commands, are replaced with an innocuous character
966 # to prevent that data from inadvertently producing a warning.
967 #
968 # This should not contain an alphabetic character (in case the user
969 # writes (@verb@\foo\verb+bar+@endverb@), neither should it contain be one of
970 # @LaTeX@'s reserved characters (@verb@#$%&~_^\{}@endverb@), or any parenthesis
971 # character (@verb@()[]{}@endverb@). If possible, don't use a punctuation
972 # character or any spacing characters either. All of these characters
973 # have warnings associated with them and thus could cause spurious
974 # warnings to appear.
975 #
976 # The asterisk is also unsuitable, as some commands behave in another
977 # way if they are appended with an asterisk. Which more or less
978 # leaves us with the pipe.
979 #
980 # Please note that this may also be a @verb@string@endverb@, which will be
981 # repeated until the proper length is reached.
982 #
983 ### \chktexrcdefault\begin{verbatim}
984 VerbClear = "|"
985 ### \end{verbatim}
986 ### \end{chktexrcsimplevar}
987
988
989 ## That's all for now - Happy @LaTeX@ing!