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