From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Russo Subject: LaTeX export: how to customize date format? Date: Mon, 09 Jan 2012 11:44:19 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkDec-0008La-3x for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 06:44:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkDeW-0001m9-Q3 for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 06:44:42 -0500 Received: from lo.gmane.org ([80.91.229.12]:34164) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkDeW-0001ly-Jm for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 06:44:36 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RkDeU-00019x-N0 for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 12:44:34 +0100 Received: from cmpxkeeper.ist.utl.pt ([193.136.137.244]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jan 2012 12:44:34 +0100 Received: from mestre.adamastor by cmpxkeeper.ist.utl.pt with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 09 Jan 2012 12:44:34 +0100 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: emacs-orgmode@gnu.org Hello, Is there a way to customize how a date is exported into LaTeX? Google couldn't help me on this. For example, if an org file contains a timestamp <2012-01-09 Mon>, I'm getting an italicized version in the .tex file, i.e. \textit{2012-01-09 Mon}. I would like to be able to change how dates are displayed in a global way. In particular, I'm interested in automatically formatting the dates in my documents using \usepackage[option]{isodate}? So, in other words, I'd like to tell orgmode that it should output the following \printdate{2012-01-09} or \date-range{2012-01-01}{2012-01-09} for date ranges. I could use then use #+LATEX_HEADER: \usepackage[option]{isodate} to quickly change the date format, which could produce results as diverse as: Jan 9, 2012 January 9, 2012 Janvier 9, 2012 2012/01/09 2012/09/01 and so on... Any hints on how to do this? Cheers, Carlos