From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: tikz for multiple targets Date: Fri, 12 Jul 2013 01:15:59 +0200 Message-ID: <87hag0elhs.fsf@med.uni-goettingen.de> 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> <87fvvk537j.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55731) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxQ5t-0003j2-J3 for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 19:16:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxQ5s-0007XZ-Nx for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 19:16:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:40155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxQ5s-0007XN-Ht for emacs-orgmode@gnu.org; Thu, 11 Jul 2013 19:16:12 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UxQ5r-0003A5-FD for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 01:16:11 +0200 Received: from 84.121.221.93.dyn.user.ono.com ([84.121.221.93]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Jul 2013 01:16:11 +0200 Received: from andreas.leha by 84.121.221.93.dyn.user.ono.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Jul 2013 01:16:11 +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 Hi Eric, Eric Schulte writes: >> 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, I understand. Thanks a lot for the clarification. Regards, Andreas