Ceci est une ancienne révision du document !

— title: The quality of your LaTeX category: programming tags:

1. latex
2. macros

The [l2tabu](https://ctan.org/pkg/l2tabu) tutorial (mentioned in [online introductions](FAQ-man-latex)) 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 useful&hellip;.

The nicely-named [nag](https://ctan.org/pkg/nag) allows you to apply a configurable set of checks to your document, as you run it through LaTeX; you get messages like: latex 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&nbsp;&mdash; the example is one of them).

While [l2tabu](https://ctan.org/pkg/l2tabu) and [nag](https://ctan.org/pkg/nag) alert you to _possible_ programming errors, you should not forget that they are merely commenting on _style_; don't assume that a [nag](https://ctan.org/pkg/nag) error is going to damn your code&nbsp;&mdash; rather, note the issue and try to train your fingers not to do the same “next time”.

The lacheck program analyses your source and comments on it; its view of what is “bad” is _very_ subjective (the documentation says), but it can be useful.

2_programmation/qualite_de_votre_code_latex.1528031823.txt.gz · Dernière modification: 2018/06/03 13:17 de d.p.carlisle