Skip to content

Chktex Coverage

github-actions[bot] edited this page Nov 25, 2026 · 1 revision

SaTeX: Static Analysis for (La)TeX and Friends

chktex coverage

ChkTeX reports numbered warnings about typography and style. It reads the source line by line. satex runs the document, so it sees the characters that reach the page, the mode each one was set in, and whether TeX joined them into a ligature.

Every satex rule names the warning it follows, and each row below links to the rule's own explanation on Lints. See Primitive-coverage for how satex models the primitives a rule reads from, and Domains for the values it reads.

Source: ChkTeX 1.7.9 manual, § 8.

"chktex enables it" is the default chktex ships, from that manual: whether the warning is reported without -w. "satex enables it" is a different question answered from a different place, satex.yaml's lint_off, and the two can and do disagree: a rule chktex is silent about by default may fire in satex, and a rule chktex reports by default may be off for some profile. See Configuration for what the profiles are and what each one is for.

# chktex reports chktex enables it satex rule satex enables it
1 Command terminated with space. on command-terminated-space yes
2 Non-breaking space (~) should have been used. on missing-nonbreaking-space yes
3 You should enclose the previous parenthesis with {}. on math-script-braces yes
4 Italic correction (\/) found in non-italic buffer. on zero-italic-correction yes
5 Italic correction (\/) found more than once. on stray-italic-correction yes
6 No italic correction (\/) found. on missing-italic-correction yes
7 Accent command needs use of the dotless letter. on accent-on-dotted-letter yes
8 Wrong length of dash may have been used. on wrong-dash yes
9 '%s' expected, found '%s'. on environment-mismatch yes
10 Solo '%s' found. on environment-mismatch yes
11 You should use \ldots to achieve an ellipsis. on ellipsis-dots yes
12 Interword spacing (\ ) should perhaps be used. on sentence-spacing yes
13 Intersentence spacing (\@) should perhaps be used. on sentence-spacing yes
14 Could not find argument for command. off — —
15 No match found for '%s'. on environment-mismatch yes
16 Mathmode still on at end of LaTeX file. on math-still-open yes
17 Number of one character doesn't match the number of another. on unbalanced-brackets yes
18 You should use either `` or '' as an alternative to ". on wrong-quote-character, csquotes-available wrong-quote-character: yes, csquotes-available: yes
19 You should use ' (ASCII 39) instead of ´ (ASCII 180). off wrong-quote-character yes
20 User-specified pattern found. on user-pattern yes, off for package/class/literate
21 This command might not be intended. off unintended-escape yes, off for package/class/literate
22 Comment displayed. off comment-marker yes, off for package/class/literate
23 Either `` or '' will look better. on quote-ligature yes
24 Delete this space to maintain correct page references. on space-before-command yes
25 You might wish to put this between a pair of {}. on math-script-braces yes
26 You ought to remove spaces in front of punctuation. on space-before-punctuation yes
27 Could not execute LaTeX command. on unresolved-file yes
28 Don't use \/ in front of small punctuation. on stray-italic-correction yes
29 $\times$ may look prettier here. on dimension-times yes
30 Multiple spaces detected in output. off double-space yes
31 This text may be ignored. on ignored-verbatim-tail yes
32 Use ` to begin quotation, not '. on quote-direction yes
33 Use ' to end quotation, not `. on quote-direction yes
34 Don't mix quotes. on quote-direction yes
35 You should perhaps use a command instead. on math-operator-name yes
36 You should put a space in front of/after parenthesis. on parenthesis-spacing yes
37 You should avoid spaces in front of/after parenthesis. on parenthesis-spacing yes
38 You should not use punctuation in front of/after quotes. on quote-punctuation yes
39 Double space found. on double-space yes
40 You should put punctuation outside inner/inside display math mode. on math-punctuation yes
41 You ought to not use primitive TeX in LaTeX code. off primitive-tex-command yes, off for package/class/literate
42 You should remove spaces in front of a command. on space-before-command yes
43 A command is normally not followed by this character. on delimiter-not-followed yes
44 User regex matched. on user-pattern yes, off for package/class/literate
45 Use \[ … \] instead of $$ … $$. on math-shift-dollars yes
46 Use \( … \) instead of $ … $. off math-shift-dollars yes
47 '%s' expected, found '%s' (ConTeXt). off — —
48 Solo '%s' found (ConTeXt). on — —
49 Expected math mode to be in another state here. on math-mode-mismatch yes

Not covered

  • chktex's own parser limits, such as warning 14, do not arise in an interpreter that reads across lines.
  • ConTeXt warnings 47 and 48 are out of scope. satex interprets LaTeX and plain TeX.

Clone this wiki locally