ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Erik Margraf <erik.margraf@googlemail.com>
To: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: does expandaparameters work
Date: Thu, 13 May 2010 20:04:53 +0200	[thread overview]
Message-ID: <AANLkTinee_AT_P72ehsedEKpbyutN8xaGNa823CSHgdF@mail.gmail.com> (raw)
In-Reply-To: <4BEC0193.5040500@googlemail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1106 bytes --]

Thanks!! Works perfectly for me. Is this a patch for syst-aux.mkiv?

2010/5/13 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

> Am 12.05.10 19:29, schrieb Erik Margraf:
>
>  Hello,
>> I use "\expandparameters" in a macro definition.
>> --
>> \expandparameters\setupbackgrounds[page][background={\currentvalue,#1}]
>> --
>> This works in MkII (texexec), but doesn't work in MkIV (context).
>>
>> If I define all layers in a single declaration, the results with MkII and
>> MkIV
>> are identical.
>>
>> Should this work? Or do I have to add something for MkIV?
>>
>
> \unprotected\def\xdoget@e@parameters#1]%
>  {\let\dosetnvalue\setsomevalue
>   \let\setsomevalue\dosetevalue
>   \let\p!doassign\p!e!doassign
>   \let\setsomevalue\dosetevalue
>   \xprocesscommaitem#1,],\@relax@
>   \let\p!doassign\p!n!doassign
>   \let\setsomevalue\dosetnvalue
>   \let\xdogetparameters\xdoget@n@parameters
>   \let\currentvalue\empty}
>
> \starttext
>
> \getparameters[my][text=Hello]
>
> \mytext
>
> \expandparameters \getparameters[my][text=\currentvalue\space World!]
>
> \mytext
>
> \stoptext
>
> Wolfgang
>
>

[-- Attachment #1.2: Type: text/html, Size: 1725 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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-05-13 18:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-12 17:29 Erik Margraf
2010-05-13 13:41 ` Wolfgang Schuster
2010-05-13 18:04   ` Erik Margraf [this message]
2010-05-14 13:25     ` Wolfgang Schuster
2010-05-14 13:33       ` Hans Hagen

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=AANLkTinee_AT_P72ehsedEKpbyutN8xaGNa823CSHgdF@mail.gmail.com \
    --to=erik.margraf@googlemail.com \
    --cc=erik.margraf@gmail.com \
    --cc=ntg-context@ntg.nl \
    --cc=schuster.wolfgang@googlemail.com \
    /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).