emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Beamer Export: US date format despite \usepackage[ngerman]{babel


From: Loris Bennett
Subject: Re: [O] Beamer Export: US date format despite \usepackage[ngerman]{babel}
Date: Mon, 26 May 2014 09:56:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

Nick Dokos <address@hidden> writes:

> "Loris Bennett" <address@hidden> writes:
>
>> "Loris Bennett" <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]