From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: ox-latex: default packages cleaning Date: Thu, 16 Jul 2015 10:49:40 +0200 Message-ID: <87y4igxza3.fsf@gmx.us> 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> <20150716082958.GP18343@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFerf-0003yY-5y for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 04:50:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFerc-0006P6-0A for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 04:49:59 -0400 Received: from plane.gmane.org ([80.91.229.3]:38602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFerb-0006OY-Q1 for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 04:49:55 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZFerY-0002qR-8B for emacs-orgmode@gnu.org; Thu, 16 Jul 2015 10:49:52 +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 ; Thu, 16 Jul 2015 10:49:47 +0200 Received: from rasmus by ip5b4025d5.dynamic.kabel-deutschland.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jul 2015 10:49:47 +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 Suvayu Ali writes: > 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. It's probably too annoying to default org-latex-variant-file-string to a file variable. I find it neat to automatically have AUCTeX pick the right engine, though. I worry more about how to allow flags to be transmitted without making it insecure. E.g. -shell-escape is one that we'd want to allow for minted. Perhaps whitelisted flags.... Or just allow arbitrary flags after a latex command. > I have a few other questions: > - how does one change the variant when doing a subtree export? By > setting EXPORT_LATEX_VARIANT? It seems to work at least to the point that the right engine is written to the file: #+LATEX_VARIANT: xelatex * pdflatex :PROPERTIES: :export_latex_variant: pdflatex :END: * lualatex :PROPERTIES: :export_latex_variant: lualatex :END: > - Is it possible to set a default variant? org-latex-variant => "pdflatex" > - 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. Not possible ATM. You could use iftex on the latex level or we could allow something like '("\\mymacro" ("pdflatex")) and enforce the second argument to be a list to differentiate it from ("PKG OPTIONS" "PKG").... > I'm starting to wonder, all these complications, is it really worth it? > What do you think? Most of my longer documents declare the compiler via bind of file variables. So I'd use it. It would also allow me to get rid of some filters. Rasmus -- Warning: Everything saved will be lost