From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Berthier Subject: Re: tikz and html Date: Wed, 30 Jul 2014 13:44:20 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50558) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCSJ4-00045Z-9K for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 07:44:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCSIy-0005ZK-0X for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 07:44:30 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:7832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCSIx-0005Ya-QS for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 07:44:23 -0400 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: Joseph Vidal-Rosset Cc: emacs-orgmode@gnu.org You wrote: > Hello, > > Exporting images created with tikz to html.files seems a complicated > task. > > This file is corrected exported into pdf: > > #+OPTIONS: LaTeX:verbatim > #+OPTIONS:      tex:imagemagick > #+LaTeX_CLASS: article > #+LaTeX_CLASS_OPTIONS: [koma,a4paper,11pt] > #+LaTeX_CLASS_OPTIONS: [times] > #+LaTeX_HEADER: \usepackage{tikz} > #+LANGUAGE: en > #+OPTIONS: ':t > #+OPTIONS: tex:t > > > * Tikz test > Here's a tree, exported to both html and pdf. > > #+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 > > But I do not succeed to export it into a html file. > > Your help is welcome. Hello, You can see this answer on stackoverflow[fn:1]. Regards, [fn:1] http://stackoverflow.com/a/24452992/1524082 -- Nicolas Berthier FSF Member #7975