From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: Re: Per-backend export options? Date: Mon, 6 Jul 2015 12:07:16 +0200 Message-ID: <20150706100716.GA21809@tuxteam.de> References: <20150706085806.GA19560@tuxteam.de> <87vbdx3a3e.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZC3J5-0007pk-9j for emacs-orgmode@gnu.org; Mon, 06 Jul 2015 06:07:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZC3J0-0002Y4-6e for emacs-orgmode@gnu.org; Mon, 06 Jul 2015 06:07:23 -0400 Received: from mail.tuxteam.de ([5.199.139.25]:51440 helo=tomasium.tuxteam.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZC3J0-0002X3-0t for emacs-orgmode@gnu.org; Mon, 06 Jul 2015 06:07:18 -0400 In-Reply-To: <87vbdx3a3e.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: Rasmus Cc: emacs-orgmode@gnu.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, Jul 06, 2015 at 11:32:21AM +0200, Rasmus wrote: > Hi, > > writes: > [...] > > #+OPTIONS: f:nil [... possibly other options ...] > > > > Can I do that in a way that the value depends on backend? [...] > I'd use a macro for this. E.g. > > #+MACRO: dvipng-if-odt (eval (if (org-export-derived-backend-p org-export-current-backend 'odt) "#+OPTIONS: tex:dvipng" )) Thanks! regards - -- t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlWaU1QACgkQBcgs9XrR2kYmSQCcCSzHFLx+lkegXQ/udthbmmgH YrUAnjfNrfwMMrzduMqv9WVSnuXiGeDh =yQU0 -----END PGP SIGNATURE-----