From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?B?w4lyaWMgV8O8cmJlbA==?= Subject: =?UTF-8?B?UmU6IG5vIG1vcmUgdGlreiAtPiBwbmcgZ8OpbsOpcmF0aW9uIGR1?= =?UTF-8?B?cmluZyBIVE1MIGV4cG9ydA==?= Date: Tue, 16 Oct 2018 10:04:03 +0200 Message-ID: <87in2271xo.fsf@univ-amu.fr> References: <87y3b3wduo.fsf@univ-amu.fr> <87a7ngr6no.fsf@gmail.com> <87murgp9dd.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCKL8-0002im-El for emacs-orgmode@gnu.org; Tue, 16 Oct 2018 04:04:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCKL4-0001b1-Tu for emacs-orgmode@gnu.org; Tue, 16 Oct 2018 04:04:30 -0400 Received: from amu-stj-out2.univ-amu.fr ([139.124.244.207]:6276) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCKL4-00015R-EN for emacs-orgmode@gnu.org; Tue, 16 Oct 2018 04:04:26 -0400 In-reply-to: <87murgp9dd.fsf@gmail.com> 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: emacs-orgmode@gnu.org Cc: =?utf-8?B?w4lyaWMgV8O8cmJlbA==?= Hello list, I finally tracked down the problem. It is not related to my use of latexmk. It is an Imagemagick problem. The version installed by xubuntu 18.04 has a restrictive policy on pdf files. I tweaked the '/etc/ImageMagick-6/policy.xml' file which contains the following policy restriction : Which I rewrote into : And now everything works fine with my original code. E. Le 14/10/2018 à 21:01 GMT, Jeremie Juste a dit: > 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 -- Éric Würbel http://eric.wurbel.perso.luminy.univ-amu.fr/ Enseignement: IUT R&T, directeur des études 1A Recherche: LIS CNRS, UMR7020 http://www.lis-lab.fr/