From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Loris Bennett" Subject: Re: Beamer Export: US date format despite \usepackage[ngerman]{babel} Date: Mon, 26 May 2014 09:56:22 +0200 Message-ID: <87bnul0y8p.fsf@hornfels.zedat.fu-berlin.de> References: <87r43mp9z2.fsf@hornfels.zedat.fu-berlin.de> <87zji8vjkk.fsf@hornfels.zedat.fu-berlin.de> <87d2f43avg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wopm7-0003xG-Q6 for emacs-orgmode@gnu.org; Mon, 26 May 2014 03:56:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wopm2-0001Rb-0k for emacs-orgmode@gnu.org; Mon, 26 May 2014 03:56:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:58258) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wopm1-0001Qw-DC for emacs-orgmode@gnu.org; Mon, 26 May 2014 03:56:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Woplt-0006aI-LR for emacs-orgmode@gnu.org; Mon, 26 May 2014 09:56:37 +0200 Received: from hornfels.zedat.fu-berlin.de ([160.45.11.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 May 2014 09:56:37 +0200 Received: from loris.bennett by hornfels.zedat.fu-berlin.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 26 May 2014 09:56:37 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nick Dokos writes: > "Loris Bennett" writes: > >> "Loris Bennett" 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.