From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76978 Path: news.gmane.org!not-for-mail From: Andreas Schneider Newsgroups: gmane.comp.tex.context Subject: setupinteraction and macroexpansion Date: Tue, 19 Jun 2012 10:39:45 +0200 Message-ID: <275798233.20120619103939@gmx.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1743685074==" X-Trace: dough.gmane.org 1340095188 19173 80.91.229.3 (19 Jun 2012 08:39:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 19 Jun 2012 08:39:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 19 10:39:45 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SgtyQ-0004rh-Ee for gctc-ntg-context-518@m.gmane.org; Tue, 19 Jun 2012 10:39:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7B287101EB; Tue, 19 Jun 2012 10:39:41 +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 QY7fJagRKs-b; Tue, 19 Jun 2012 10:39:39 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B5880101F0; Tue, 19 Jun 2012 10:39:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C5A1A101F0 for ; Tue, 19 Jun 2012 10:39:38 +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 jQhSiCMIB9lF for ; Tue, 19 Jun 2012 10:39:37 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id D9280101EB for ; Tue, 19 Jun 2012 10:39:37 +0200 (CEST) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with SMTP id q5J8l37W022873 for ; Tue, 19 Jun 2012 10:47:03 +0200 Original-Received: (qmail invoked by alias); 19 Jun 2012 08:39:36 -0000 Original-Received: from unknown (EHLO lcm.deutschepost.de) [194.25.90.66] by mail.gmx.net (mp017) with SMTP; 19 Jun 2012 10:39:36 +0200 X-Authenticated: #2825193 X-Provags-ID: V01U2FsdGVkX19gAyMxR5dgf+L7lPmvKals2ExYv5vDZ5yXge8wgO Lgy+XTXLjWzM7t X-Priority: 3 (Normal) X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0442 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.23; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01Ho8L3AK - 11abee37f283 - 20120619 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:76978 Archived-At: --===============1743685074== Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha256"; boundary="----------0FB0DF1223B3C0077" ------------0FB0DF1223B3C0077 Content-Type: multipart/mixed; boundary="----------04E1770C30F858406" ------------04E1770C30F858406 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Hello, I'm a bit lost with macro expansion here. I try to use some macros to set the title (and subject) of the PDF document. The attached minimal example shows what I want to achieve. I tried def, edef, gdef, define, explicit expand, expandoneafter, etc. etc. without any success. Whatever I do, the title field in the PDF metadata always contains the raw "\date..." command instead of the formatted date. Any suggestions? --=20 Best Regards, Andreas ------------04E1770C30F858406 Content-Type: text/x-tex; name="interactiontest.tex" Content-transfer-encoding: base64 Content-Disposition: attachment; filename="interactiontest.tex" XGVkZWZcbXl0aXRsZXtTb21lIGRhdGU6IFxkYXRlW3k9MjAxMixtPTYsZD0xOV19DQoNClxz ZXR1cGludGVyYWN0aW9uW3RpdGxlPVxteXRpdGxlXQ0KDQpcc3RhcnR0ZXh0DQoNClxzdWJq ZWN0XG15dGl0bGUNCg0KSGVsbG8gV29ybGQNCg0KXHN0b3B0ZXh0 ------------04E1770C30F858406-- ------------0FB0DF1223B3C0077 Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: GnuPG v2.0.17 (MingW32) iF4EAREIAAYFAk/gOtEACgkQIxziJkiYZxFDmgD+Ou2Oz5LFBd2ih0AKKjSB16pH WExNhsDCiemKGXRoDzYBAMYX6ENwJrtG4sb2ox8M9Vpbu8K+LWG2Jdsy+sTCRvkO =cMTW -----END PGP MESSAGE----- ------------0FB0DF1223B3C0077-- --===============1743685074== 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 ___________________________________________________________________________________ --===============1743685074==--