chktex(1)
β¨ 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.chktexrcformatted 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-Lone 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. default1,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\verbcommands. π-g,--globalrcβ read global.chktexrcfile. π-I,--inputfilesβ execute\inputstatements. π₯-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. πβ¨
π¦ where this page comes from
- alpine 3.24: texlive-doc 2026.0-r0 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- arch rolling: texlive-doc 2026.1-1 Β· GPL
- epel 10: texlive-chktex 13:20240311-10.el10_3 Β· GPL-1.0-or-later
- epel 9: texlive-chktex 9:20200406-38.el9 Β· GPL+
- fedora 43: texlive-chktex 11:svn64797-93.fc43 Β· GPL-2.0-or-later
- fedora 43: texlive-chktex 11:svn64797-95.fc43.1 Β· GPL-2.0-or-later
- fedora 44: texlive-chktex 12:svn78219-105.fc44 Β· GPL-2.0-or-later
- fedora 44: texlive-chktex 12:svn78219-111.fc44 Β· GPL-2.0-or-later
- opensuse-leap 16.0: texlive-chktex-doc 2025.221.1.7.9svn73776-160000.3.1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms