From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: tikz for multiple targets Date: Thu, 11 Jul 2013 13:03:28 -0600 Message-ID: <87fvvk537j.fsf@gmail.com> References: <87k3kztlam.fsf@ucl.ac.uk> <87wqoyagmh.fsf@gmx.us> <87obaa65uu.fsf@ucl.ac.uk> <87ehb62lhe.fsf@med.uni-goettingen.de> <878v1d7his.fsf@gmail.com> <878v1ds73o.fsf@med.uni-goettingen.de> <87ehb55bcn.fsf@gmail.com> <87li5ddiyf.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53594) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxMBT-00009p-O2 for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 15:05:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxMBL-0003vf-Pm for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 15:05:43 -0400 Received: from mail-pb0-x233.google.com ([2607:f8b0:400e:c01::233]:40673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxMBL-0003st-Az for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 15:05:35 -0400 Received: by mail-pb0-f51.google.com with SMTP id um15so8218484pbc.24 for ; Thu, 11 Jul 2013 12:05:34 -0700 (PDT) In-Reply-To: <87li5ddiyf.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Thu, 11 Jul 2013 20:56:08 +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: Andreas Leha Cc: emacs-orgmode@gnu.org > Thanks for the quick answer. I am aware, that imagemagick is needed. > Let me rephrase my question using your example: > >> #+LATEX_HEADER: \usepackage{tikz} >> >> First execute the second code block, to define the convenience macro >> and to set the required new variables in ob-latex.el. Then export to >> HTML and to pdf to see the tree exported as an SVG image and as >> embedded tikz respectively. >> >> * Tikz test >> Here's a tree, exported to both html and pdf. >> >> #+header: :file (by-backend (html "tree.svg") (pdf 'nil) (t "tree.png")) >> #+header: :imagemagick > > I seem not to be able to apply (by-backend ) at the 'top-level, like so: > > #+header: (by-backend (html 'nil) (pdf 'nil) (t ":imagemagick")) > > Why is that? > Because elisp evaluation is available for header argument *values*, not for the entire header argument line. Instead you could do the following, or just use the example in my previous email which sets :imagemagick in all cases. #+header: :imagemagick (by-backend ((html pdf) 'nil) (t "yes")) Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte