ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Vedran Miletić" <rivanvx@gmail.com>
To: NTG-ConTeXt mailing list <ntg-context@ntg.nl>
Subject: Commands based on previously defined commands, with fixed values for 	arguments
Date: Sat, 7 Aug 2010 18:03:22 +0200	[thread overview]
Message-ID: <AANLkTi=ZeUwnApHcPbJ2oAUjth+mOsnrT1WhYMV=UFM3@mail.gmail.com> (raw)

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

             reply	other threads:[~2010-08-07 16:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-07 16:03 Vedran Miletić [this message]
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   ` Commands based on previously defined commands, DA with fixed values for šrguments Vedran Miletić
2010-08-07 18:01     ` 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='AANLkTi=ZeUwnApHcPbJ2oAUjth+mOsnrT1WhYMV=UFM3@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).