From: Andre Caldas <andre.em.caldas@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: New module: simplesteps.
Date: Fri, 14 Dec 2012 13:43:29 -0200 [thread overview]
Message-ID: <CADVh14U2h1CRdSyHpYfgY_a3G+2YjKcD8Do-Cy+iN2yR8mi6KQ@mail.gmail.com> (raw)
In-Reply-To: <159D875B-A740-4B4D-8AC1-A173ADA3DDA8@gmail.com>
>>> - maybe switch to mkvi as named parameters make rewriting
>>> macros a breeze
>>
>> Would you elaborate a bit further?
>
> You can use for the parameter in your macros names instead of number,
> as you can see below the first definition uses “#1” for the argument while
> the second uses “#text”.
>
> You can force MkIV mode when you add “% macros=mkvi” at the top
> of the file. When your code is a external file (e.g. a module) you can
> give it “mkvi” as file extension (instead of the normal “tex” or “mkiv”)
> and don’t need this line anymore.
I had tried named parameters and I didn't know why it was not
working... now I know! :-)
I have one question:
- What does it happen when there is a quotation mark (") inside the
parameter? Do I need to "escape" the contents passed to the macro?
André Caldas.
___________________________________________________________________________________
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:[~2012-12-14 15:43 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-13 22:56 Andre Caldas
2012-12-14 1:04 ` Philipp Gesang
2012-12-14 11:21 ` Andre Caldas
2012-12-14 12:50 ` Wolfgang Schuster
2012-12-14 15:43 ` Andre Caldas [this message]
2012-12-14 16:02 ` Wolfgang Schuster
2012-12-14 16:18 ` Andre Caldas
2012-12-14 16:34 ` Wolfgang Schuster
2012-12-14 16:38 ` Andre Caldas
2012-12-14 17:32 ` Philipp Gesang
2012-12-14 20:35 ` Andre Caldas
2012-12-14 20:57 ` Otared Kavian
2012-12-14 22:26 ` Andre Caldas
2012-12-14 23:07 ` Andre Caldas
2012-12-15 6:02 ` Wolfgang Schuster
2012-12-15 10:28 ` Sietse Brouwer
2012-12-15 10:40 ` Philipp Gesang
2012-12-15 12:07 ` Wolfgang Schuster
2012-12-15 12:34 ` Philipp Gesang
2012-12-15 11:30 ` Andre Caldas
2012-12-15 11:44 ` Marco Patzer
2012-12-15 12:38 ` Wolfgang Schuster
2012-12-15 16:47 ` Sietse Brouwer
2012-12-15 11:49 ` Hans Hagen
2012-12-15 12:03 ` Wolfgang Schuster
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=CADVh14U2h1CRdSyHpYfgY_a3G+2YjKcD8Do-Cy+iN2yR8mi6KQ@mail.gmail.com \
--to=andre.em.caldas@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).