From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Lomov Subject: Re: Very large svg file output from latex block using =#+header: :imagemagick= Date: Sun, 3 Nov 2013 10:31:25 +0900 Message-ID: <20131103013124.GD18733@smoon> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcmXQ-0005po-VS for emacs-orgmode@gnu.org; Sat, 02 Nov 2013 21:31:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcmXM-00075B-9m for emacs-orgmode@gnu.org; Sat, 02 Nov 2013 21:31:36 -0400 Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:48190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcmXM-000750-2K for emacs-orgmode@gnu.org; Sat, 02 Nov 2013 21:31:32 -0400 Received: by mail-la0-f44.google.com with SMTP id er20so16075lab.17 for ; Sat, 02 Nov 2013 18:31:29 -0700 (PDT) Received: from smoon ([188.168.154.117]) by mx.google.com with ESMTPSA id f4sm15511745lah.0.2013.11.02.18.31.27 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Nov 2013 18:31:28 -0700 (PDT) Content-Disposition: inline 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: emacs-orgmode@gnu.org Hello, ** John Hendy [2013-11-02 16:31:02 -0500]: > I'm trying to following along with the example here: > - http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html#sec-4-3 > I don't need dual export, so I tried this instead for straight html > compatible output: > #+header: :file tree.svg > #+header: :imagemagick > #+begin_src latex > \usetikzlibrary{trees} > \begin{tikzpicture} > \node [circle, draw, fill=red!20] at (0,0) {1} > child { node [circle, draw, fill=blue!30] {2} > child { node [circle, draw, fill=green!30] {3} } > child { node [circle, draw, fill=yellow!30] {4} }}; > \end{tikzpicture} > #+end_src > Should this work? I get this error: > org-babel-execute:latex: Can not create svg files, please specify a > .png or .pdf file or try the :imagemagick header argument > In perusing another thread, it looks like the argument might be > =:imagemagic yes=? > - http://lists.gnu.org/archive/html/emacs-orgmode/2011-02/msg01302.html > When I do that and run the above, I get a 30.9mb file as the .svg > output. Surely I'm doing something incorrectly? I don't know details how latex fragments are translated into SVG but there is good tool for this: dvisvgm. It is provided by TeX Live though it works only on DVI files. > Just pulled this morning before executing: > Org-mode version 8.2.1 (release_8.2.1-163-ge7397d @ > /home/jwhendy/.elisp/org.git/lisp/) > Thanks for any suggestions! > John --- WBR, Vladimir Lomov -- Some performers on television appear to be horrible people, but when you finally get to know them in person, they turn out to be even worse. -- Avery