TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a program equivalent to lint for LaTeX? (lint checks C code for syntax errors and possible mistakes.)

share|improve this question
up vote 32 down vote accepted

Yes, ChkTeX and lacheck. (You probably already have it: if you're using AucTeX on Emacs, when you hit C-c C-c to compile, type ChkTex or Check (for ChkTex and lacheck respectively). Or else, at the commandline, try lacheck.) Thanks for reminding me of this; I ought to use it more (though it can be very annoying :P).

share|improve this answer
It's also worth noting that if you're AucTex on Emacs you can also use m-x flyspell-mode for spell-checking. – JSchlather Jul 26 '10 at 21:24

lacheck and ChkTeX are lint-like things that I have used. check, which I have not used, also seems to provide syntax checking.

share|improve this answer

Below is a link to a package that provides style checking for latex source files.


It will find common latex typos (e.g. " instead of ``) rather than overt syntax problems. It also comes with a set of rules to detect common grammar mistakes.

I used it (with some modifications to the style rules) on my thesis. I found it most useful to enforce my own spelling rules and standardize some latex constructions.

It's pretty easy to customize, which makes it handy; though I haven't used the other suggestions so I don't know how easy they are to customize.

share|improve this answer
This seems to be more about writing style and less about LaTeX style than ChkTeX or lacheck. Not to say that it's bad, just different. In fact I think they complement each other fairly well. – Ivan Andrus Mar 29 '12 at 19:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.