Nick Dokos <ndo...@gmail.com> writes:

> "Loris Bennett" <loris.benn...@fu-berlin.de> writes:
>
>> "Loris Bennett" <loris.benn...@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.


Reply via email to