Je ne connaissais même pas \def, qui est en fait l’équivalent de \newcommand, après un peu de recherche je suis tombé sur ça qui dit que cette dernière est « plus mieux » :
« Define macros with \newcommand. Use \renewcommand sparingly if at all, and avoid \def completely unless you really know what you are doing
"\newcommand" is the Latex way of defining macros; "\def" is the old, plain TeX style, definition. Using "\newcommand" is far preferable, since \newcommand checks against existing definitions and generates an error message if a macro name is in use. By contrast, "\def" happily overwrites any existing definition; this may cause unexpected errors that are often hard to track down. »
# [HS] LaTeX ou Tex ?
Posté par nicolas . En réponse au message LaTeX : définition d'une macro avec \def. Évalué à 2.
« Define macros with \newcommand. Use \renewcommand sparingly if at all, and avoid \def completely unless you really know what you are doing
"\newcommand" is the Latex way of defining macros; "\def" is the old, plain TeX style, definition. Using "\newcommand" is far preferable, since \newcommand checks against existing definitions and generates an error message if a macro name is in use. By contrast, "\def" happily overwrites any existing definition; this may cause unexpected errors that are often hard to track down. »
http://www.math.uiuc.edu/~hildebr/tex/tips-macros.html
Question subsidiaire : où as-tu vu cette commande pour l’utiliser à ton tour ? Parce que pour le coup le old est un euphémisme de préhistorique...