326 bytes added
, 08:18, 4 August 2004
In LaTeX you define a new command with an optional argument with "newcommand":
<small><pre>
\newcommand{\MyCommand}[2][World]{{#2Hello #1!}}
\MyCommand{\bfseries}
\MyCommand[Hans]{\scshape}
</pre></small>
ConTeXt:
There is perhaps a way to do the same. Otherwise, the key value method is preferred, see [[Define Commands]].