emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carlos Russo <mestre.adamastor@gmail.com>
To: emacs-orgmode@gnu.org
Subject: LaTeX export: how to customize date format?
Date: Mon, 09 Jan 2012 11:44:19 +0000	[thread overview]
Message-ID: <jeejuk$beo$1@dough.gmane.org> (raw)

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

             reply	other threads:[~2012-01-09 11:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-09 11:44 Carlos Russo [this message]
2012-01-09 12:11 ` LaTeX export: how to customize date format? Bastien
2012-01-09 12:24   ` Bastien
2012-01-09 12:26     ` Carlos Russo
2012-01-09 12:38       ` Bastien

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='jeejuk$beo$1@dough.gmane.org' \
    --to=mestre.adamastor@gmail.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).