From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremie Juste Subject: =?UTF-8?B?UmU6IG5vIG1vcmUgdGlreiAtPiBwbmcgZ8OpbsOpcmF0aW9uIGR1?= =?UTF-8?B?cmluZyBIVE1MIGV4cG9ydA==?= Date: Sun, 14 Oct 2018 23:01:26 +0200 Message-ID: <87murgp9dd.fsf@gmail.com> References: <87y3b3wduo.fsf@univ-amu.fr> <87a7ngr6no.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBnWT-0002bL-LJ for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 17:02:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBnWQ-0005r9-GV for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 17:02:01 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:52906) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gBnWQ-0005o9-9V for emacs-orgmode@gnu.org; Sun, 14 Oct 2018 17:01:58 -0400 Received: by mail-wm1-x331.google.com with SMTP id 189-v6so16924489wmw.2 for ; Sun, 14 Oct 2018 14:01:58 -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" To: =?utf-8?B?w4lyaWMgV8O8cmJlbA==?= Cc: emacs-orgmode@gnu.org Hello With the following in your .emacs file #+BEGIN_SRC (setq org-babel-latex-htlatex "htlatex") (defmacro by-backend (&rest body) `(case org-export-current-backend ,@body)) #+END_SRC I can put back #+BEGIN_SRC around the tikz and it seems to work. #+header: :file (by-backend (html "images/graphic2.png") (t 'nil)) #+header: :imagemagick #+header: :results (by-backend (pdf "latex") (t "raw")) #+BEGIN_SRC latex \begin{figure}[ht] \centering \begin{tikzpicture}[xscale=0.5] % draw the sets \filldraw[fill=none, draw] (-1.5,0) circle (1cm); \filldraw[fill=none, draw] (1.5,0) circle (1cm); % the texts \node at (-1.5,1.5) {$E$}; \node at (1.5,1.5) {$F$}; % the points in the sets (here I just create nodes to use them later on to position % the circles and the arrows \node (a) at (-1.5,0.7) {$a$}; \node (b) at (-1.5,0.1) {$b$}; \node (c) at (-1.5,-0.4) {$c$}; \node (1) at (1.5,0.7) {$1$}; \node (2) at (1.5,0.1) {$2$}; \node (3) at (1.5,-0.4) {$3$}; % draw the arrows \draw[->] (a) -- (2); \draw[->] (c) -- (2); \draw[->] (b) -- (1); \end{tikzpicture} \end{figure} #+END_SRC Best regards, Jeremie