The \newcommand
macro allows to use an optional argument for the first parameter #1
with:
\newcommand{\mycommand}[3][defaultfor1]{blah blah blah}
Is it possible to have more than one option with \newcommand
?
macrosoptional arguments
The \newcommand
macro allows to use an optional argument for the first parameter #1
with:
\newcommand{\mycommand}[3][defaultfor1]{blah blah blah}
Is it possible to have more than one option with \newcommand
?
Best Answer
Try the LaTeX 3 package
xparse
. For example:You may read the documents for more information.