From: "Loris Bennett" <loris.bennett@fu-berlin.de>
To: emacs-orgmode@gnu.org
Subject: Re: Beamer Export: US date format despite \usepackage[ngerman]{babel}
Date: Mon, 26 May 2014 09:56:22 +0200 [thread overview]
Message-ID: <87bnul0y8p.fsf@hornfels.zedat.fu-berlin.de> (raw)
In-Reply-To: 87d2f43avg.fsf@gmail.com
Nick Dokos <ndokos@gmail.com> writes:
> "Loris Bennett" <loris.bennett@fu-berlin.de> writes:
>
>> "Loris Bennett" <loris.bennett@fu-berlin.de> writes:
>>
>>> Hi,
>>>
>>> If I have the following:
>>>
>>> ,--------------------------------------------
>>> | #+TITLE: Test
>>> | #+AUTHOR: Loris Bennett
>>> |
>>> | #+OPTIONS: H:1 toc:nil
>>> |
>>> | #+LATEX_HEADER: \usepackage[ngerman]{babel}
>>> |
>>> | #+DATE: \today
>>> |
>>> | * Test
>>> |
>>> | Test
>>> `--------------------------------------------
>>>
>>> And export as to Beamer PDF, the tex file contains
>>>
>>> ,-------------------------------------
>>> | \usepackage[ngerman, english]{babel}
>>> `-------------------------------------
>>>
>>> And the date is rendered as
>>>
>>> ,-------------
>>> | May 22, 2014
>>> `-------------
>>>
>>> Is this a bug or should I be doing something else to get "22. Mai 2014"?
>>>
>
> I sent too soon:
>
> .. or set `org-export-default-language' - and see
>
> (info "(org) Export settings")
>
> for more options.
So if I have the following in my Org file
,-------------------------------------------
| +LANGUAGE: de
| +LATEX_HEADER: \usepackage[ngerman]{babel}
`-------------------------------------------
I get this in my LaTeX file:
,-------------------------------------
| \usepackage[ngerman, germanb]{babel}
`-------------------------------------
and I get \today is rendered correctly for German:
,-------------
| 26. Mai 2014
`-------------
However, without a \usepackage{babel} header and just
,--------------
| +LANGUAGE: de
`--------------
there is no \usepackage line in the LaTeX file for babel and I get
,-------------
| May 26, 2014
`-------------
The specific idiosyncrasy with German seems to be that there are 3
options with babel: german, ngerman, and germanb. If the LATEX_HEADER
includes babel, then setting LANGUAGE will append germanb to the list of
language options given, if not already given.
So my problem is solved (thanks, Nick), although one question remains:
Does setting LANGUAGE, without \usepackage{babel} on its own actually
achieve anything for LaTeX, or is it just for other backends?
Cheers,
Loris
--
This signature is currently under construction.
prev parent reply other threads:[~2014-05-26 7:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-22 7:07 Beamer Export: US date format despite \usepackage[ngerman]{babel} Loris Bennett
2014-05-23 11:08 ` Loris Bennett
2014-05-23 13:01 ` Nick Dokos
2014-05-23 13:03 ` Nick Dokos
2014-05-26 7:56 ` Loris Bennett [this message]
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=87bnul0y8p.fsf@hornfels.zedat.fu-berlin.de \
--to=loris.bennett@fu-berlin.de \
--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).