On Wed, Sep 10, 2008 at 12:26 PM, Thomas A. Schmitz
On Sep 10, 2008, at 11:54 AM, Goebel, Juergen wrote:
Hi,
Does something like \newcommand exist in ConTeXt? My questions aims especially at the optional argument with a predefined value. So, how do I realize
\newcommand{\test}[2][A]{foo}
with ConTeXt. In the fine manual I found an index entry \definecommand, but in the 'rest' of the manual it was never mentioned (print and screen version alike)!
Regards,
Juergen
No, we never define any commands... Err, in fact yes, sometimes we do. You want to read http://wiki.contextgarden.net/System_Macros , especially http://wiki.contextgarden.net/System_Macros/Handling_Arguments
Thomas
http://wiki.contextgarden.net/Commands_with_optional_arguments And we have also \define and \redefine but you can't use optional arguments with them. Wolfgang