From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Rakestraw Subject: setting date for org -> latex exporter Date: Mon, 31 Aug 2009 17:02:24 -0400 Message-ID: <20090831170224.4c2cc8b1@johnrakestraw.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MiE0t-0001Hy-VN for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 17:02:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MiE0o-0001Gc-5m for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 17:02:06 -0400 Received: from [199.232.76.173] (port=38537 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MiE0o-0001GZ-13 for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 17:02:02 -0400 Received: from uis-ipmx-2.pdc.uis.georgetown.edu ([141.161.2.141]:41194) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1MiE0n-0000ks-FC for emacs-orgmode@gnu.org; Mon, 31 Aug 2009 17:02:01 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode Org-Mode Hi -- I'm learning more about exporting from org-mode to latex, but I've run into a wall. I suspect there's a simple fix, but I can't find it. I'm setting the documentclass as 'article' (using #+LATEX_CLASS: article). I see in org-latex.el how the exporter builds the topmatter. I'd like to do something different with the date in the topmatter. Here's what it does now (as shown in the tex file): \title{Here's the title} \author{John Rakestraw} \date{31 August 2009} I'd like it either not to have a date at all, or to have "Fall 2009" instead of today's date. I've tried setting the date in the org file using "#+LATEX_HEADER: \date{Fall 2009}" and "#+LATEX_HEADER: \date{}". But these don't change anything. (Actually, these insertions generate the lines I expect in the tex file, but in each case it's overruled by the line inserted by the routine in org-latex.el that inserts the topmatter.) I found these lines (978ff) in org-latex.el: ;; insert the date (format "\\date{%s}\n" (format-time-string (or (plist-get opt-plist :date) org-export-latex-date-format))) This seems to imply that I can set a date option. How do I do that? (I can get no date by commenting out these lines in org-latex.el, but that seems a clumsy solution.) Thanks. -- John Rakestraw