From: "Vedran Miletić" <rivanvx@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Commands based on previously defined commands, DA with fixed values for šrguments
Date: Sat, 7 Aug 2010 18:21:05 +0200 [thread overview]
Message-ID: <AANLkTiksid7qcVzDtu-YFsRiOiN7ajbbLkz3zREZkAxt@mail.gmail.com> (raw)
In-Reply-To: <20100807181036.4d8aeec5@KUBUNTU64>
2010/8/7 R. Bastian <rbastian@free.fr>:
> On Sat, 7 Aug 2010 18:03:22 +0200
> Vedran Miletić <rivanvx@gmail.com> scribit:
>
>> 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ć
>
> where is #2 for HelloTwo ?
>
The code
\def \HelloOne #1 {\HelloTwo{#1}{Vedran} }
compiles. #2 should be fixed to "Vedran", but it comes out empty.
--
Vedran Miletić
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2010-08-07 16:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-07 16:03 Commands based on previously defined commands, with fixed values for arguments Vedran Miletić
2010-08-07 16:10 ` Commands based on previously defined commands, =D=A with fixed values for �rguments R. Bastian
2010-08-07 16:21 ` Vedran Miletić [this message]
2010-08-07 18:01 ` Commands based on previously defined commands, DA with fixed values for šrguments Arthur Reutenauer
2010-08-07 16:33 ` Commands based on previously defined commands, with fixed values for arguments Aditya Mahajan
2010-08-07 16:54 ` Vedran Miletić
2010-08-07 17:10 ` Arthur Reutenauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTiksid7qcVzDtu-YFsRiOiN7ajbbLkz3zREZkAxt@mail.gmail.com \
--to=rivanvx@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).