How can I pass a blank to this command
\newcommand{\iam}[1][happy]{I am #1.}
so that I get this result
I am .
Note: My actual command operates in the math mode, so the space between "am" and "." is of no concern.
macros
How can I pass a blank to this command
\newcommand{\iam}[1][happy]{I am #1.}
so that I get this result
I am .
Note: My actual command operates in the math mode, so the space between "am" and "." is of no concern.
Best Answer
To pass an empty optional argument, thus overriding the non-blank default, just use
[]
: