UK TeX FAQ -- question label latexqual

### The quality of your LaTeX

The l2tabu tutorial (mentioned in online introductions) is undoubtedly a good read.

However, it’s always difficult to remember the things you should not do, when there are so many things to remember that you really must do: some automation is needed….

The nicely-named nag allows you to apply a configurable set of checks to your document, as you run it through LaTeX; you get messages like:

>     Package nag Warning: Command \bf is an old LaTeX 2.09 command.
>     (nag)                Use \bfseries or \textbf instead on input line 30.

(the package provides a demo file which contains most of the sorts of errors you might make — this is one of them).

There’s also a web site TeXidate which will do a static analysis of your document (unfortunately, you have to paste your document source into a text window). The site doesn’t seem as comprehensive as nag, but it allows you to download its script, which you can then juggle with to make it more draconian.

`l2tabu`
  Browse info/l2tabu/ for a copy in a language that’s convenient for you
`nag.sty`
  macros/latex/contrib/nag (or browse the directory)

This question on the Web: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=latexqual