emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Rakestraw <lists@johnrakestraw.com>
To: org-mode Org-Mode <emacs-orgmode@gnu.org>
Subject: setting date for org -> latex exporter
Date: Mon, 31 Aug 2009 17:02:24 -0400	[thread overview]
Message-ID: <20090831170224.4c2cc8b1@johnrakestraw.com> (raw)

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

             reply	other threads:[~2009-08-31 21:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-31 21:02 John Rakestraw [this message]
2009-08-31 21:14 ` setting date for org -> latex exporter Ed Hirgelt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090831170224.4c2cc8b1@johnrakestraw.com \
    --to=lists@johnrakestraw.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).