From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: ox-latex: default packages cleaning Date: Thu, 16 Jul 2015 10:29:58 +0200 Message-ID: <20150716082958.GP18343@chitra.no-ip.org> References: <87r3ok589c.fsf@gmx.us> <20150707193522.GB30985@chitra.no-ip.org> <87y4iq24kl.fsf@gmx.us> <20150708154139.GG32342@chitra.no-ip.org> <878uaq33bj.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFeYQ-00038B-1T for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 04:30:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFeYL-0004Dp-VM for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 04:30:05 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:35573) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFeYL-0004DC-OO for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 04:30:01 -0400 Received: by wibxm9 with SMTP id xm9so6532015wib.0 for ; Thu, 16 Jul 2015 01:30:01 -0700 (PDT) Received: from chitra.no-ip.org (ip82-139-115-46.lijbrandt.net. [82.139.115.46]) by smtp.gmail.com with ESMTPSA id m4sm11725032wjb.37.2015.07.16.01.29.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jul 2015 01:29:59 -0700 (PDT) Content-Disposition: inline In-Reply-To: <878uaq33bj.fsf@gmx.us> 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 On Wed, Jul 08, 2015 at 08:35:28PM +0200, Rasmus wrote: > 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} > > The attached supports Polyglossia better. Note, the last loaded language > is the main one (as babel). Perhaps org-latex-variant-file-string should > be less annoying (not a file-variable). The polyglossia bits work well. The file local variable prompt for every export is quite annoying though. Same goes for the exported file, opening it brings up the same prompt again. I guess it is a one time thing to mark that variable as safe, then it should be good. I have a few other questions: - how does one change the variant when doing a subtree export? By setting EXPORT_LATEX_VARIANT? - Is it possible to set a default variant? - How does one insert a line in the package list which is not usepackage. I guess the normal case is still valid: "\\somedirective", but inserting a similar variant specific directive isn't possible. I'm starting to wonder, all these complications, is it really worth it? What do you think? -- Suvayu Open source is the future. It sets us free.