[Tex/LaTex] ny possibility to validate a LaTeX file


I want to validate my LaTeX file. I.e. the file should contain only \textit not \it. i want to validate throughout the file with my style command. is there any possibility to do this?

Best Answer

You might be interested in the nag package.

\RequirePackage[l2tabu, orthodox]{nag}

It nags about \it, \bf, …, \centerline, outdated packages and figures and tables without caption

Related: l2tabu

The “sins” of LaTeX users, and how to correct them. The document provides a list of obsolete packages and commands.