ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vit Zyka <vit.zyka@seznam.cz>
Subject: Re: key=value parameters
Date: Sat, 24 Jul 2004 10:56:44 +0200	[thread overview]
Message-ID: <4102244C.4040405@seznam.cz> (raw)
In-Reply-To: <41015D08.10305@wxs.nl>

>> Great, but unfortunately it does not work with empty parameter list [].
>> No I have no time but I will look for better definition of 
>> \rawgetparameters and \rawsetparameter.
> 
> I fixed this a while ago, and not have:
> \def\rawgetparameters[#1][#2% some 5-10% faster
>  {\ifx#2]% test is needed, else bomb on [#1][]
>     \expandafter\gobbleoneargument
>   \else
>     \def\rawparameterprefix{#1}%
>     \expandafter\dorawgetparameters
>   \fi#2}
> 
> \def\dorawgetparameters#1]%
>  {\expandafter\rawsetparameter#1,]=,}

Thankx for quick response, even from outside Hans, this solves the empty 
list problem, but unfortunately not the problem with newline in param list:
   \MyMacro[Field][param1=value,
      param2=value]
and in this way it is incompatible with \setparameters.

What about use the same parameter parser as in the \setparameters:

   \def\rawgetparameters{\dogetparameters\rawdosetvalue}
   \def\rawdosetvalue#1#2{\@EA\def\csname#1#2\endcsname}

Vit Zyka

  reply	other threads:[~2004-07-24  8:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23  8:46 Vit Zyka
2004-07-23  9:12 ` Taco Hoekwater
2004-07-23 10:53   ` Vit Zyka
2004-07-23 11:07     ` Taco Hoekwater
2004-07-23 11:32     ` Re[2]: " Giuseppe Bilotta
2004-07-23 18:46     ` Hans Hagen Outside
2004-07-24  8:56       ` Vit Zyka [this message]
2004-07-24 16:10         ` Hans Hagen Outside

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=4102244C.4040405@seznam.cz \
    --to=vit.zyka@seznam.cz \
    --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).