16

I have a co-author who defines many macros as e.g. \newcommand{\foo}[0]{foo}, explicitly giving the number of arguments even when it’s zero, where I have always previously used and seen \newcommand{\foo}{foo} for macros with no arguments.

Is there ever any possible difference in behaviour between the two versions, or any reason beyond readability to prefer one over the other?

22

there is no difference, in fact [0] is the default value for the optional argument so after the first scan for the optional argument they follow identical code paths.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.