#chktex

Dr. Juande Santander-Velajuandesant@astrodon.social
2024-11-12

PSA: Today I learned about `chktex`... something like 19 years after having started using \(LaTeX\). At least now I know it is there, and the different warning types are very useful…

In particular, Warning 17 (mismatch in number of parenthesis, square brackets, or curly braces), Warning 10 (solo parenthesis, bracket or brace found), and Warning 9 (expected itemize, found document).

Update: I have also just learned about `lacheck`, which gives you a different perspective... and seem to prefer for what I am doing right now.

#PSA #TIL #PublicServiceAnnouncement #TodayILearned #LaTeX #linters #chktex #lacheck #CLI

2023-01-31

I think would helpful to have _a_ (not necessarily my) #chktex #precommit hook listed under pre-commit.com/hooks.html . This is where I searched for available hooks and only found the `pre-commit-latex-hook` repo, which is cool but not what I was looking for. 3/3
#TeXLaTeX

2023-01-31

I was surprised I couldn't find [*] a #precommit hook to run the #ChkTeX #LaTeX #linter via the pre-commit framework (pre-commit.com) for #git . But it was trivial to create a new pre-commit configuration that runs chktex, I published a WIP repo under: github.com/meliache/pre-commit.
I contains two hooks: chktex-system, which uses the system executable and chktex-conda, which installs chktex via #conda. Still I think probably this already exists somewhere and I just missed it. 1/N
#TeXLaTeX

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst