[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] no more tikz -> png génération during HTML export
From: |
Éric Würbel |
Subject: |
Re: [O] no more tikz -> png génération during HTML export |
Date: |
Tue, 16 Oct 2018 10:04:03 +0200 |
User-agent: |
mu4e 1.0; emacs 25.2.2 |
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 :
<policy domain="coder" rights="none" pattern="PDF" />
Which I rewrote into :
<policy domain="coder" rights="read|write" pattern="PDF" />
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/
- [O] no more tikz -> png génération during HTML export, Éric Würbel, 2018/10/12
- Re: [O] no more tikz -> png génération during HTML export, Jeremie Juste, 2018/10/14
- Re: [O] no more tikz -> png génération during HTML export, Jeremie Juste, 2018/10/14
- Re: [O] no more tikz -> png génération during HTML export, Éric Würbel, 2018/10/15
- Re: [O] no more tikz -> png génération during HTML export,
Éric Würbel <=
- Re: [O] no more tikz -> png génération during HTML export, Eric S Fraga, 2018/10/16
- Re: [O] no more tikz -> png génération during HTML export, Éric Würbel, 2018/10/16
- Re: [O] no more tikz -> png génération during HTML export, Eric S Fraga, 2018/10/16
- Re: [O] no more tikz -> png génération during HTML export, Nicolas Goaziou, 2018/10/17