From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [new exporter] Date format string not handled for LaTeX export Date: Mon, 29 Oct 2012 14:04:37 +0100 Message-ID: <87fw4xqviy.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSp42-0006KE-3u for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 09:07:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TSp40-0004t3-Lc for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 09:07:34 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:56344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TSp40-0004sr-Fd for emacs-orgmode@gnu.org; Mon, 29 Oct 2012 09:07:32 -0400 Received: by mail-wi0-f177.google.com with SMTP id hj13so1614312wib.12 for ; Mon, 29 Oct 2012 06:07:31 -0700 (PDT) In-Reply-To: (Michael Gauland's message of "Mon, 29 Oct 2012 03:41:18 +0000 (UTC)") 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: Michael Gauland Cc: emacs-orgmode@gnu.org Hello, Michael Gauland writes: > When I provide a format string to the #+DATE: option, the old LaTeX exporter > correctly uses it to format the current date; the new exporter just uses the > format string for the date. I wasn't aware of that "feature". Though, I don't like it: it is fragile for technical reasons (it may or may not work on every exporter) and it adds yet another special rule to remember. On the other hand, you have a hard-coded macro to solve this problem: #+DATE: {{{time(%c)}}} It will work across every back-end (but you need the latest Org version, since I recently to fixed a bug related to it). > The new HTML exporter does not have this problem. I am going to remove this hack from new back-ends as it isn't necessary. Regards, -- Nicolas Goaziou