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

2010-08-07 Thread Vedran Miletić
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. -- Vedran Miletić ___ If your

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

2010-08-07 Thread Aditya Mahajan
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

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

2010-08-07 Thread Vedran Miletić
2010/8/7 Aditya Mahajan adit...@umich.edu: 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 Same here, it works. From what I see, you removed the spacing, and if I add it

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

2010-08-07 Thread Arthur Reutenauer
Are there any rules where the space should be and where it should not? The way you wrote the macro originally, the spaces were part of the macro. If you use your original definition of \HelloTwo, you can write \HelloOne as follows: \def \HelloOne #1 {\HelloTwo {#1}{Vedran} }