From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gauland Subject: Re: [new exporter] Date format string not handled for LaTeX export Date: Tue, 30 Oct 2012 22:18:11 +1300 Message-ID: <508F9B53.40600@no8wireless.co.nz> References: <87fw4xqviy.fsf@gmail.com> <87y5iposs7.fsf@gmail.com> <2124.1351551955@alphaville> <87mwz4ph3a.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig727284526762102BC3025171" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT7y8-0005Pn-7h for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 05:18:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TT7xy-0004nf-OO for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 05:18:44 -0400 Received: from jersey.rurallink.co.nz ([114.134.15.197]:55489 helo=smtp.rurallink.co.nz) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TT7xy-0004mJ-E3 for emacs-orgmode@gnu.org; Tue, 30 Oct 2012 05:18:34 -0400 In-Reply-To: <87mwz4ph3a.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig727284526762102BC3025171 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 30/10/12 20:14, Nicolas Goaziou wrote: > This is {{{time(...)}}}, not {{{date(...)}}}. > > {{{date(%c)}}} is another macro that is replaced with the #+DATE: value= > during export. Since you try to replace #+DATE: value with itself, you > dive into an inf loop. I think I understand what's going on now, but I'm still at a loss as to how to get the date I want. Can I tell the exporter that the date on the document should be derived from the current time (or the last modification time), formatted a particular way? For example, I can use this macro to put the current time in my document: {{{time(%Y-%m-%d %H:%M)}}} How can I set #+DATE to get an equivalent result? Thanks for your help. Kind regards, Mike --------------enig727284526762102BC3025171 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iQIcBAEBAgAGBQJQj5tXAAoJEKnkgIXLqylXLicQAIXnm47NLFNLvPviLyenr5wa ek/Z4eUnaKeJ38RVavdE8EWq/ppbP4ZF6T2GmMYZZ1IQ7oD3ZsGZvE/QMqO1o0di 4aA2dRE91jsrgM6oMOXiaVuHorrSBgxlZ1gfR74n956qZK0D9on++TPxNN5PgVhI XEHUIS99Vc4t6veMwEAGGkaalip7uaOP2mWhe9t6w2wzYHqS6kXvNLZUvAzG0l7M sRyG2QyoIqvmCB9oP66g5HxhD9GKkJ4emOYAW0bl2OO5kz+2tj5FiZ+cUS5CU74/ xzIK70LYb8e1HiMwA5JgBQxcQDoBhCcuaUcXEO6qqNHvz1C+rYQarNXIbRYWEqHr Cuz0YktNCaXVt6ZhO+wRmuFNLOKGdsqEIo3O3q+FsVkVFKr+meCNXf7vcZGP9rKD TItO+r4r/hyHpeG1IfUM4BJoPvHBUWewX4Afcw5d+D/yiJ2RrUhlg+OCK02VDjE+ G/fkT5hnuVUWKKt7eAC/6g15p/aLcc0MQaNu8JM51ASD5o00ydrPmatrIPNI57OV yselbHPQhFdbXeCQriLq1dfaxoxD7fhNEiCaxiIyOm0i/gLc/igeEKcxzW6XPzq/ rBYKn14NthpyCja7IDbe/lDvD1FJ/DaPw0/ZGApWEDKbAn+9dqp0XfI3bgwG5DhV NIdazEIY+R3eEgt5+LRy =Nwg6 -----END PGP SIGNATURE----- --------------enig727284526762102BC3025171--