From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4883 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \setups and \defineXML... Date: Tue, 26 Jun 2001 09:57:48 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010626095748.0107adb0@server-1> References: <000c01c0fdbd$b56deba0$467587d9@tigger> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035395519 29579 80.91.224.250 (23 Oct 2002 17:51:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:51:59 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: "Christopher Tipper" In-Reply-To: <000c01c0fdbd$b56deba0$467587d9@tigger> Xref: main.gmane.org gmane.comp.tex.context:4883 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4883 At 10:27 PM 6/25/01 +0100, Christopher Tipper wrote: >\defineXMLenvironment [copyright] > {\bgroup > \defineXMLpush[year] > \defineXMLpush[owner]} > {\expanded% > {\eCopyright{\XMLpop{year}}{\XMLpop{owner}}} > \egroup} the problem is that you use a group. A dirty trick is \expanded {\egroup \noexpand\eCopyright{...}{...}} or you can save the data, using \xdef\CopyrightYear{\XMLpush{year}} and use the var later on or even in de macro def, kind of \def\CopyrightYear{\currentdate[year]} \def\eCopyright% {.....\CopyrightYear} Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------