From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Brubeck Unhammer Subject: FR: make LaTeX export recognize LANGUAGE option Date: Tue, 5 May 2009 15:31:09 +0200 Message-ID: <96023f220905050631j4e990021q45f3aafcf3383a12@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1KyD-0000iF-14 for emacs-orgmode@gnu.org; Tue, 05 May 2009 09:46:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1Ky8-0000gb-8p for emacs-orgmode@gnu.org; Tue, 05 May 2009 09:46:04 -0400 Received: from [199.232.76.173] (port=49107 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1Ky8-0000gY-1i for emacs-orgmode@gnu.org; Tue, 05 May 2009 09:46:00 -0400 Received: from mail-qy0-f116.google.com ([209.85.221.116]:54457) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1KkB-0003eC-PP for emacs-orgmode@gnu.org; Tue, 05 May 2009 09:31:37 -0400 Received: by qyk14 with SMTP id 14so8443710qyk.14 for ; Tue, 05 May 2009 06:31:24 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, I couldn't find any references to babel in the mailing list nor in org-latex.el. I have various latex export class headers, but I sometimes write in English and sometimes in Norwegian, and this is not bound to the classes (beamer, ps-article, pdf-article). As it is, I've had \usepackage[nynorsk,english]{babel} in all my class headers, and then eg. \selectlanguage{nynorsk} in the org file. But before printout I've had to go into the .tex-file and remove whatever language I'm not using, deleting the .aux file and rerunning latex, since Apacite doesn't recognize the \selectlanguage within the literature list (eg. I get English "in" and "from" and such). So, I was wondering if we could have an option to let #+LANGUAGE: nn make the header say \usepackage[nynorsk]{babel} etc., so that, at least for monolingual documents, one doesn't have to do all this mucking about with \selectlanguage and deleting .aux files. If implemented, I think I might've read somewhere that babel should be loaded early on in the header, but other people probably know this better than me. (I guess it shouldn't be too hard to put it on the line right after \documentclass ?) Possibly "#+LANGUAGE: nn en" could be used for multilingual documents, but that seems low priority to me. best regards, Kevin Brubeck Unhammer