[NTG-context] Commands based on previously defined commands, with fixed values for arguments

Aditya Mahajan adityam at umich.edu
Sat Aug 7 18:33:40 CEST 2010


On Sat, 7 Aug 2010, Vedran Miletić wrote:

> How can I define a command by reusing the already defined command?
>
> \def \HelloTwo #1#2 {Hello, #1 and #2!}
> \def \HelloOne #1 {\HelloTwo{#1}{Vedran}}
>
> This gives me a "Runaway argument".

Can you post a complete example? This works for me

\def\HelloTwo#1#2{Hello, #1 and #2!}
\def\HelloOne#1{\HelloTwo{#1}{Vedran}}

\starttext
\HelloOne {One}
\stoptext

Aditya


More information about the ntg-context mailing list