From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: tikz and html Date: Wed, 30 Jul 2014 13:05:56 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf303347351d7d2104ff6725cf Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCRi8-0007lb-Ue for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 07:06:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XCRi5-0006Hn-DB for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 07:06:20 -0400 Received: from mail-vc0-x22f.google.com ([2607:f8b0:400c:c03::22f]:45910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XCRi5-0006HY-7c for emacs-orgmode@gnu.org; Wed, 30 Jul 2014 07:06:17 -0400 Received: by mail-vc0-f175.google.com with SMTP id ik5so1448751vcb.6 for ; Wed, 30 Jul 2014 04:06:16 -0700 (PDT) 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: "Liste-emacs-orgmode@gnu.org" --20cf303347351d7d2104ff6725cf Content-Type: text/plain; charset=UTF-8 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. Best wishes Jo. --20cf303347351d7d2104ff6725cf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

Exporting ima= ges created with tikz to html.files seems a complicated task.

This file is corrected exported into pdf:

#+OPTIONS: LaTeX:verbatim=
#+OPTIONS:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tex:imagemagick
#+LaTeX_CLASS: = article
#+LaTeX_CLASS_OPTIONS: [koma,a4paper,11pt]
#+LaTeX_CLASS_OPTI= ONS: [times]
#+LaTeX_HEADER: \usepackage{tikz}
#+LANGUAGE: en
#+OP= TIONS: ':t
#+OPTIONS: tex:t


* Tikz test
Here's a tree, exported to both html and pdf.
#+begin_src latex
=C2=A0 \usetikzlibrary{trees}
=C2=A0 \begin{ti= kzpicture}
=C2=A0=C2=A0=C2=A0 \node [circle, draw, fill=3Dred!20] at (0,= 0) {1}
=C2=A0=C2=A0=C2=A0 child { node [circle, draw, fill=3Dblue!30] {2= }
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 child { node [circle, draw, fill=3Dgreen!30]= {3} }
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 child { node [circle, draw, fill= =3Dyellow!30] {4} }};
=C2=A0 \end{tikzpicture}
#+end_src

But I do not succeed to export it into a html file.

Your help is welcome.

Best wishes

Jo.=C2=A0 <= br>
--20cf303347351d7d2104ff6725cf--