Because they rely on the \futurelet primitive, the macros with optional arguments cannot be expandable. However, it is possible to make them expandable if there is at least one mandatory argument (see `Limitations'). This material is subject to the LaTeX Project Public License. See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html for the details of that license.
Download the contents of this package in one zip archive (362.2k).
xoptarg – Expandable macros that take an optional argument
Commands that take an optional argument are not ordinarily expandable; this package allows such commands to be expandable provided that they have at least one mandatory argument.
|License||The LaTeX Project Public License|
|Contained in||TeX Live as xoptarg|
|MiKTeX as xoptarg|
alternative ways of defining macros|