From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81246 Path: news.gmane.org!not-for-mail From: "Meer H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: date problem Date: Wed, 20 Mar 2013 14:52:40 +0100 Message-ID: <12DBBD2C-ABF6-4DA6-A5BE-42624E20FDC2@uva.nl> References: <5BD5774E-29BF-4620-88DF-202671B4EE87@uva.nl> <4451C3C4-3D71-45E0-A57D-4C2E0F14E45D@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363787569 32719 80.91.229.3 (20 Mar 2013 13:52:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Mar 2013 13:52:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 20 14:53:13 2013 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 1UIJS4-0000l5-TH for gctc-ntg-context-518@m.gmane.org; Wed, 20 Mar 2013 14:53:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7807210203; Wed, 20 Mar 2013 14:52:49 +0100 (CET) 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 eXbq88JI2-O2; Wed, 20 Mar 2013 14:52:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id CF1D1101EF; Wed, 20 Mar 2013 14:52:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4C9B8101EF for ; Wed, 20 Mar 2013 14:52:45 +0100 (CET) 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 IJGUNCJVhCoV for ; Wed, 20 Mar 2013 14:52:43 +0100 (CET) Original-Received: from filter2-utr.mf.surf.net (filter2-utr.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 35141101EE for ; Wed, 20 Mar 2013 14:52:42 +0100 (CET) Original-Received: from ezel.ic.uva.nl (ezel.ic.uva.nl [146.50.108.158]) by filter2-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r2KDqfjP021042 for ; Wed, 20 Mar 2013 14:52:42 +0100 Original-Received: from elhalyn-ethernet.fritz.box (a82-95-102-36.adsl.xs4all.nl [82.95.102.36]) (authenticated bits=0) by ezel.ic.uva.nl (8.13.8/8.13.8) with ESMTP id r2KDqfjI008941 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 20 Mar 2013 14:52:41 +0100 In-Reply-To: <4451C3C4-3D71-45E0-A57D-4C2E0F14E45D@gmail.com> X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.158; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 04JdNQF0V - 55be17fcfc50 - 20130320 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:81246 Archived-At: One step further, thanks. But why does \edef\thedate{\rawdate[]}\writestatus{***}{\meaning\thedate} result in ** > macro:->unknown march 2013 instead of 20 march 2013? Hans van der Meer On 20 mrt. 2013, at 14:39, Wolfgang Schuster wrote: > = > Am 20.03.2013 um 14:26 schrieb H. van der Meer : > = >> There is a nasty problem when defining the \date. >> = >> First approach: >> *** > macro:->\date = >> \def\thedate{\date}\writestatus{***}{\meaning\thedate} >> Alas, I get lateron a luatex error on \date: >> ! LuaTeX error [string "\directlua "]:1: invalid escape sequence near '\= d'. >> = >> Second approach, use \edef to get an expanded value. >> \edef\thedate{\date}\writestatus{***}{\meaning\thedate} >> *** > macro:->\date = >> Alas, the date is still the unexpanded macro and not something like 20 m= arch 2013. >> = >> How to? > = > All commands with optional argument aren=92t expandable and \date *has* t= wo optional argument. > = > To get now the date in the output you can either use the expandable \rawd= ate[] command (the brackets are necessary) or you use \ctxcommand{currentda= te(,)} (language can also be "false"). > = > Wolfgang > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________