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
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
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
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} }