The newcommand.py utility
Scott Pakin · 2010
L ATEX’s ewcommand is fairly limited in the way it processes optional arguments, but the TEX alternative, a batch of \defs and \futurelets, can be overwhelming to the casual L ATEX user. newcommand.py is a Python program that automatically generates L ATEX macro definitions for macros that require more powerful argument processing than ewcommand can han dle. newcommand.py is intended for L A TEX advanced beginners (i.e., those who know how to use ewcommand but not internal L A TEX2e macros like \@ifnextchar) and for more advanced users who want to save some typing when defining complex macros.