From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: english automatically option added to latex's babel package Date: Fri, 19 Jul 2013 10:48:56 +0200 Message-ID: <87a9lj6ikn.fsf@gmx.us> References: <20130718231548.33fad099@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V06NI-0004sd-8B for emacs-orgmode@gnu.org; Fri, 19 Jul 2013 04:49:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V06NC-0001aD-Of for emacs-orgmode@gnu.org; Fri, 19 Jul 2013 04:49:16 -0400 Received: from plane.gmane.org ([80.91.229.3]:48349) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V06NC-0001a1-IU for emacs-orgmode@gnu.org; Fri, 19 Jul 2013 04:49:10 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V06N9-0005xY-MT for emacs-orgmode@gnu.org; Fri, 19 Jul 2013 10:49:07 +0200 Received: from business-213-023-238-209.static.arcor-ip.net ([213.23.238.209]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jul 2013 10:49:07 +0200 Received: from rasmus by business-213-023-238-209.static.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Jul 2013 10:49:07 +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 Renato writes: > Hi, I've customized org-latex-packages-alist and added the package > "babel", with option "italian", however in my latex exports I get: > > \usepackage[italian, english]{babel} > > I don't want the english option to be there (latex gives it priority > over the italian one it seems). What could be wrong? I have english as > default language on my system (archlinux), so maybe I should change some > variable in emacs? >From the documentation of `org-latex-classes'. Likewise, if your header contains \"\\usepackage[AUTO]{babel}\", AUTO will be replaced with the language related to the language code specified by `org-export-default-language', which see. Note that constructions such as \"\\usepackage[french,AUTO,english]{babel}\" are permitted. So the correct way is to set `org-export-default-language'. None the less I'd be interested in seeing a minimal example (from emacs -q) that reproduce your error. There may be a bug in `org-latex-guess-babel-language'. –Rasmus -- Summon the Mothership!