From mboxrd@z Thu Jan 1 00:00:00 1970 From: tomas@tuxteam.de Subject: Re: Per-backend export options? Date: Thu, 20 Aug 2015 07:43:57 +0200 Message-ID: <20150820054357.GC23355@tuxteam.de> References: <20150706085806.GA19560@tuxteam.de> <87vbdx3a3e.fsf@gmx.us> <20150706141614.GA29079@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSIdv-00088k-VM for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 01:44:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSIds-0004Av-Oj for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 01:44:03 -0400 Received: from mail.tuxteam.de ([5.199.139.25]:40246 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSIds-0004An-Jp for emacs-orgmode@gnu.org; Thu, 20 Aug 2015 01:44:00 -0400 In-Reply-To: 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: Jay Dixit Cc: tomas@tuxteam.de, org-mode , Rasmus -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, Aug 19, 2015 at 11:45:37PM -0400, Jay Dixit wrote: > I do something similar to change export options between HTML and LaTeX: > > (defun my-org-export-change-options (plist backend) > (cond > ((equal backend 'html) > (plist-put plist :with-toc nil) > (plist-put plist :section-numbers nil)) > ((equal backend 'latex) > (plist-put plist :with-toc t) > (plist-put plist :section-numbers t))) > plist) > (add-to-list 'org-export-filter-options-functions > 'my-org-export-change-options) Thanks! this one has the charm of being a more centralized solution. While the macro thingie does the trick for me (for now), I'll give it a try. Regards - -- tomás -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlXVaR0ACgkQBcgs9XrR2kaBCgCeJnYBnUtZmYI9mt7hsKLaPsuv n50An3o03vZWGIihXhQfM8/e6WFeb5AA =UY8i -----END PGP SIGNATURE-----