# Is there a program equivalent to lint for LaTeX?

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

-

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 Check. 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).

-
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.

-

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.