From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: FR: make LaTeX export recognize LANGUAGE option Date: Wed, 6 May 2009 09:17:13 +0200 Message-ID: References: <96023f220905050631j4e990021q45f3aafcf3383a12@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1bNb-0000o7-NF for emacs-orgmode@gnu.org; Wed, 06 May 2009 03:17:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1bNX-0000kj-8p for emacs-orgmode@gnu.org; Wed, 06 May 2009 03:17:23 -0400 Received: from [199.232.76.173] (port=60899 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1bNX-0000kd-5Z for emacs-orgmode@gnu.org; Wed, 06 May 2009 03:17:19 -0400 Received: from mx20.gnu.org ([199.232.41.8]:40958) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M1bNW-00040b-I2 for emacs-orgmode@gnu.org; Wed, 06 May 2009 03:17:18 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1bNV-0005L2-IC for emacs-orgmode@gnu.org; Wed, 06 May 2009 03:17:17 -0400 Received: by ewy6 with SMTP id 6so5879085ewy.42 for ; Wed, 06 May 2009 00:17:16 -0700 (PDT) In-Reply-To: <96023f220905050631j4e990021q45f3aafcf3383a12@mail.gmail.com> 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: Kevin Brubeck Unhammer Cc: emacs-orgmode@gnu.org H Kevin, maybe the easiest would be #+LATEX_HEADER: \usepackage[nynorsk,english]{babel} However, this will be inserted directly before \begin{document} which might be too late if what you say about inserting early is right. Maybe we need to change the insertion point of these additions. Any comments by the LaTeX-using people here? - Carsten On May 5, 2009, at 3:31 PM, Kevin Brubeck Unhammer wrote: > 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 > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode