From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: ox-latex: default packages cleaning Date: Wed, 08 Jul 2015 18:06:30 +0200 Message-ID: <87wpya3a7t.fsf@gmx.us> References: <87r3ok589c.fsf@gmx.us> <20150707193522.GB30985@chitra.no-ip.org> <87y4iq24kl.fsf@gmx.us> <20150708154139.GG32342@chitra.no-ip.org> 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]:39560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCrru-0005cV-GP for emacs-orgmode@gnu.org; Wed, 08 Jul 2015 12:06:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZCrrr-0006nb-Ah for emacs-orgmode@gnu.org; Wed, 08 Jul 2015 12:06:42 -0400 Received: from plane.gmane.org ([80.91.229.3]:57246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCrrr-0006n8-4Q for emacs-orgmode@gnu.org; Wed, 08 Jul 2015 12:06:39 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZCrrp-0003Lr-2F for emacs-orgmode@gnu.org; Wed, 08 Jul 2015 18:06:37 +0200 Received: from ip5b4025d5.dynamic.kabel-deutschland.de ([91.64.37.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2015 18:06:37 +0200 Received: from rasmus by ip5b4025d5.dynamic.kabel-deutschland.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Jul 2015 18:06: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 Hi, Suvayu Ali writes: >> +(defun org-latex-guess-polyglossia-language (header info) >> + "Set the Polyglossia language according to the LANGUAGE keyword. > > I'm in two-minds about this. On the one had it is a nice thing, but on > the other hand, it prevents the more fine grained control offered by > polyglossia. For example, I used this in my setup before: > > \setdefaultlanguage[variant=british]{english} It's a shame that Polyglossia is so much different from babel.... For babel we translate en-gb to "british" which is a valid babel language. But your example shows that org-latex-babel-language-alist does not work for polyglossia. Which means that somebody has to come up with a mapping from language codes (en-gb) to (language . variant) pairs (your example). Also, some mechanism needs to be in place to convey random options like spelling={new, old} for German... Unless polyglossia options can be set afterwards via latex_headers. > I don't see an easy way of passing the optional argument. But on the > other hand > > \setmainlanguage{english} > > is plain, simple, and works in most (almost all) cases. The only limitation here is whether somebody wants to contribute org-latex-polyglossia-language-alist (≡ go through the manual and map all pairs). Conveying language-specific options in Org is what I worry about. Rasmus -- ツ