chktex(1)

πŸ“¦
version 78219 Β· 2 versions
, in alpine 3.24, arch rolling, epel 10, epel 9, fedora 43, fedora 44, opensuse-leap 16.0

✨ chktex β€” the LaTeX typo-hunting bestie ✨

okay so real talk, this is the chktex manual, from the General Commands Manual section of your local man pages. it's giving "your LaTeX has problems and i'm gonna find them" energy and honestly? iconic. let's get into it. πŸ’…


πŸŽ€ NAME πŸŽ€

chktex β€” finds typographic errors in LaTeX.

like. that's the whole vibe. it hunts typos in your .tex files so you don't have to reread your thesis for the 400th time. πŸ¦‹


🌸 SYNOPSIS 🌸

chktex [-hiqrW] [-v[0-...]] [-l <rcfile>] [-[wemn] <[1-42]|all>]
[-d[0-...]] [-p <name>] [-o <outfile>] [-[btxgI][0|1]] file1 file2 ...

ok so you run chktex, you hand it some files (file1 file2 ...), and it goes to work. everything in the brackets is optional, bestie β€” you can absolutely just yell chktex at your terminal with no flags at all. πŸ™ˆ


πŸ’– DESCRIPTION πŸ’–

chktex finds typographic errors in LaTeX.

that's it. that's the sentence. short, sweet, main character energy. ✨


πŸ‘‘ OPTIONS πŸ‘‘

🧁 Miscellaneous options:

  • -h, --help β€” prints a help screen. the classic "i'm lost, pls explain" button. 🫢
  • -i, --license β€” shows distribution information. receipts on where this came from. πŸ“œ
  • -l, --localrc β€” read a local .chktexrc formatted file. yes, that exact filename, lowercase, with the dot. πŸ’…
  • -d, --debug β€” debug information. give it a number, like the synopsis says: -d[0-...]. πŸ”
  • -r, --reset β€” resets settings to default. factory reset but make it typography. 🌈

πŸ”‡ Muting warning messages:

  • -w, --warnon β€” makes msg # given a warning and turns it on. so you're un-muting it, but as a warning specifically. 🟑
  • -e, --erroron β€” makes msg # given an error and turns it on. same deal but spicier. πŸ”₯
  • -m, --msgon β€” makes msg # given a message and turns it on. the chillest tier. πŸ’¬
  • -n, --nowarn β€” mutes msg # given. silence that little guy. 🀫
  • -L, --nolinesupp β€” do not allow per-line suppressions. those are TeX comments of the form % chktex ##. so like, if you were planning on sneakily hushing a line with that comment? not today. 🚫
ngl, the -L one is a whole mood: it disables the per-line suppression mechanism, so those % chktex ## comments stop working.

πŸŽ€ Output control flags:

  • -v, --verbosity β€” how errors are displayed. default 1, 0=Less, 2=Fancy, 3=lacheck. pick your aesthetic. ✨
  • -V, --pipeverb β€” how errors are displayed when stdout != tty. defaults to the same as -v. 🚰
  • -s, --splitchar β€” string used to split fields when doing -v0. πŸͺ“
  • -o, --output β€” redirect the error report to a file. πŸ—‚οΈ
  • -q, --quiet β€” shuts up about version information. quiet queen behavior. 🀐
  • -p, --pseudoname β€” input file-name when reporting. so the reports can call your file something else. 🎭
  • -f, --format β€” format to use for output. πŸ–‹οΈ

πŸ¦‹ Boolean switches (1 -> enables / 0 -> disables):

  • -b, --backup β€” backup output file. safety first, bestie. πŸ’Ύ
  • -x, --wipeverb β€” ignore contents of \verb commands. πŸ‘€
  • -g, --globalrc β€” read global .chktexrc file. 🌍
  • -I, --inputfiles β€” execute \input statements. πŸ“₯
  • -H, --headererr β€” show errors found in front of \begin{document}. πŸ“„
  • -W, --version β€” version information. 🏷️

also, super important: if no LaTeX files are specified on the command line, we will read from stdin. πŸ“₯ and for explanation of warning/error messages, please consult the main document /usr/share/doc/chktex/ChkTeX.dvi.gz. yes that path exactly, go read it, iykyk. πŸ“š


🌈 DISTRIBUTION 🌈

Copyright (C) 1996 Jens T. Berger Thielemann

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

translation: it's GPL, version 2 or later, and there is literally zero warranty. no cap. πŸ’€

🧚 ENVIRONMENT 🧚

No environment variables are used.

not a single one. nothing to export, nothing to source, nothing lurking in your shell config. peaceful. πŸ•ŠοΈ


πŸ“ FILES πŸ“

None.

none. zero. nada. 🫧


πŸ’œ AUTHOR πŸ’œ

Jens T. Berger Thielemann, <jensthi@ifi.uio.no>

This manual page was cobbled together by Clint Adams <schizo@debian.org>, based on the output of chktex --help and deweb(1).

shoutout to both of them honestly, cobbling a manpage together is real work. 🫑


⭐ SEE ALSO ⭐

go read those too, they're the friends of this page. πŸ’«


and that's the whole page bestie!! πŸ’– this was the 7th Edition of the man page, dated March 30, 2001, from the chktex(1) corner of the manual. slay, go fix your LaTeX. πŸ‘‘βœ¨