From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58768 Path: news.gmane.org!not-for-mail From: Erik Margraf Newsgroups: gmane.comp.tex.context Subject: Re: does expandaparameters work Date: Thu, 13 May 2010 20:04:53 +0200 Message-ID: References: <4BEC0193.5040500@googlemail.com> Reply-To: erik.margraf@gmail.com, mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0330736266==" X-Trace: dough.gmane.org 1273773912 19199 80.91.229.12 (13 May 2010 18:05:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 May 2010 18:05:12 +0000 (UTC) Cc: mailing list for ConTeXt users To: Wolfgang Schuster Original-X-From: ntg-context-bounces@ntg.nl Thu May 13 20:05:04 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OCcmN-0004LO-NW for gctc-ntg-context-518@m.gmane.org; Thu, 13 May 2010 20:05:03 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 289EAC9B1A; Thu, 13 May 2010 20:05:03 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id uZG-cec85PDB; Thu, 13 May 2010 20:05:00 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 47497C9B0D; Thu, 13 May 2010 20:05:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56D3EC9B0D for ; Thu, 13 May 2010 20:04:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Xn3ncITpnusi for ; Thu, 13 May 2010 20:04:55 +0200 (CEST) Original-Received: from mail-gy0-f169.google.com (mail-gy0-f169.google.com [209.85.160.169]) by balder.ntg.nl (Postfix) with ESMTP id 98001C9AE3 for ; Thu, 13 May 2010 20:04:55 +0200 (CEST) Original-Received: by gyg4 with SMTP id 4so734550gyg.14 for ; Thu, 13 May 2010 11:04:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:reply-to :in-reply-to:references:date:message-id:subject:from:to:cc :content-type; bh=dn+zX4InBAJnbFZl7Elno114GQZwgGX0E1BwpNL1H9Q=; b=Fq4OMBpN9IxujNUIwVPouNZmGd2m4pl0d5E0AQ/p7kbM7ZLUpBN5QocAKAvuqUYKzX 3R47keMwDy0nrTSq5JG0sWoCXLGBpgCv1sqJUAdcj4C3K9u+5nWqdt8YthYRKTiHBV8Q ch3hwBu7E9R8PBHe5PwbpJersndKtsYZqIDxY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=uxRC5VsRcPPJWhfqgDsGs5A3pYJ1DFnChFiDCBtkvE9Ua0tpUNNqEbkzkVWk4t8U4x 89dvs8vEibmAtf+yKtSJqnmMGbC/5lL/+Su7mxPrR5C4o0dXNgTeRmv0QX8Yzf2hpuu9 LeD+tgOoqYMANyr30veUmcwYg7FkWGH/WfHfw= Original-Received: by 10.151.95.1 with SMTP id x1mr830969ybl.223.1273773893911; Thu, 13 May 2010 11:04:53 -0700 (PDT) Original-Received: by 10.150.54.1 with HTTP; Thu, 13 May 2010 11:04:53 -0700 (PDT) In-Reply-To: <4BEC0193.5040500@googlemail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:58768 Archived-At: --===============0330736266== Content-Type: multipart/alternative; boundary=000e0cd6b0627884dc04867d98fc --000e0cd6b0627884dc04867d98fc Content-Type: text/plain; charset=ISO-8859-1 Thanks!! Works perfectly for me. Is this a patch for syst-aux.mkiv? 2010/5/13 Wolfgang Schuster > 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 > > --000e0cd6b0627884dc04867d98fc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks!! Works perfectly for me. Is this a patch for syst-aux.mkiv?
2010/5/13 Wolfgang Schuster &= lt;schuster.wolfgang@go= oglemail.com>
Am 12.05.10 19:29= , schrieb Erik Margraf:

Hello,
I use "\expandparameters" in a macro definition.
--
\expandparameters\setupbackgrounds[page][background=3D{\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 M= kIV
are identical.

Should this work? Or do I have to add something for MkIV?

\unprotected\def\xdoget@e@parameters#1]%
=A0{\let\dosetnvalue\setsomevalue
=A0 \let\setsomevalue\dosetevalue
=A0 \let\p!doassign\p!e!doassign
=A0 \let\setsomevalue\dosetevalue
=A0 \xprocesscommaitem#1,],\@relax@
=A0 \let\p!doassign\p!n!doassign
=A0 \let\setsomevalue\dosetnvalue
=A0 \let\xdogetparameters\xdoget@n@parameters
=A0 \let\currentvalue\empty}

\starttext

\getparameters[my][text=3DHello]

\mytext

\expandparameters \getparameters[my][text=3D\currentvalue\space World!]

\mytext

\stoptext

Wolfgang


--000e0cd6b0627884dc04867d98fc-- --===============0330736266== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0330736266==--