From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: latex packages savetrees is persisting in my org-mode exporter Date: Fri, 20 Dec 2013 15:44:59 -0500 Message-ID: <87sitnxnec.fsf@alphaville.bos.redhat.com> References: <52B48F7B.8000301@binghamton.edu> <87r4977132.fsf@alphaville.bos.redhat.com> <52B4A591.2060906@binghamton.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu6wk-00037t-Dh for emacs-orgmode@gnu.org; Fri, 20 Dec 2013 15:45:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vu6we-0003Bn-9y for emacs-orgmode@gnu.org; Fri, 20 Dec 2013 15:45:22 -0500 Received: from plane.gmane.org ([80.91.229.3]:54410) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu6we-0003BG-3H for emacs-orgmode@gnu.org; Fri, 20 Dec 2013 15:45:16 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vu6wc-00081d-7j for emacs-orgmode@gnu.org; Fri, 20 Dec 2013 21:45:14 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Dec 2013 21:45:14 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 20 Dec 2013 21:45:14 +0100 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 "Christopher W. Ryan" writes: > Nick Dokos wrote: >> "Christopher W. Ryan" writes: >> >>> ... >>> #+latex_header: \usepackage{savetrees} >>> ... >>> But now every time I export a different subtree of that same org file, a >>> subtree that does not contain any mention of savetrees, to pdf, the >>> savetrees package is still loaded and used. How do I stop it? >> >> Delete the #+latex_header line from the file: just because you placed it >> in a subtree does not make it subtree-local in scope. >> > Thanks! > Very interesting. I would not have thought of that. Especially since the > "offending" line of code appears in the org file after the subtree I am > trying to export. > > Is there a better way to say > #+latex_header: \usepackage{savetrees} > > in either org 7.9.3f or org 8.2.4? > > Like using EXPORT_LATEX_OPTIONS under PROPERTIES, or something like that? > I think so: you have an EXPORT_LATEX_OPTIONS property in your original example, so if that works... Nick PS. I didn't test either this or the previous pronouncement, so caveat emptor.