emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* no more tikz -> png génération during HTML export
@ 2018-10-12 12:26 Éric Würbel
  2018-10-14 13:37 ` Jeremie Juste
  0 siblings, 1 reply; 9+ messages in thread
From: Éric Würbel @ 2018-10-12 12:26 UTC (permalink / raw)
  To: emacs-orgmode


Hi list

Since my last upgrade of org (9.1.14), during HTML export, the
generation of a png image from a Tikz picture in a LaTeX src block is
not working anymore.

Here is the context :
The org-latex-pdf-process variable is set to

"latexmk -pdflatex='pdflatex -interaction nonstopmode -shell-escape' -pdf -outdir=\"%o\" -bibtex -f \"%f\""

(using customize).

Latexmk executes well, the LaTeX src block is compiled without errors,
except this little bizarre messages which appears after each execution
of LaTeX :

Output written on /tmp/babel-2628p9D//latex-26280Qa.pdf (1 page, 20872 bytes).
Transcript written on /tmp/babel-2628p9D//latex-26280Qa.log.
Latexmk: Log file says output to '/tmp/babel-2628p9D//latex-26280Qa.pdf'
Latexmk: ===For rule 'pdflatex', actual output '/tmp/babel-2628p9D//latex-26280Qa.pdf'
       ======appears not to match expected output '/tmp/babel-2628p9D/latex-26280Qa.pdf'
Latexmk: All targets (/tmp/babel-2628p9D/latex-26280Qa.pdf) are up-to-date

this double '/' is strange...

Then, when the org export process tries to convert the pdf to png with
imagemagick, there's a problem :
Converting pdffile file convert -density 150 /tmp/babel-2628p9D/latex-26280Qa.pdf -geometry 400 arbo.png...
convert-im6.q16: not authorized `/tmp/babel-2628p9D/latex-26280Qa.pdf' @ error/constitute.c/ReadImage/412.
convert-im6.q16: no images defined `arbo.png' @ error/convert.c/ConvertImageCommand/3258.

And effectively, the file /tmp/babel-2628p9D/latex-26280Qa.pdf does not
exist...

Here is the minimal org file I have built to generate this problem :

#+TITLE: Test d'export tikz qui ne marche plus
#+DATE: <2015-11-10 mar.>
#+LANGUAGE: fr
#+OPTIONS: toc:1 num:1
#+LATEX_HEADER: \usepackage[utf8]{inputenc}
#+LATEX_HEADER: \usepackage[T1]{fontenc}
#+LATEX_HEADER: \usepackage{lmodern} 
#+LATEX_HEADER: \usepackage{tikz} 

* Récapitulatif

  #+header: :file arbo.png
  #+header: :imagemagick yes :fit yes
  #+header: :results raw :iminoptions -density 150 :imoutoptions -geometry 400 
  #+header: :headers '("\\renewcommand{\\familydefault}{\\sfdefault}" "\\usepackage{lmodern}" "\\usepackage{tikz}")
  #+BEGIN_SRC latex 
      \usetikzlibrary{trees}

      \begin{tikzpicture}[thick,level 1/.style ={sibling distance=30mm},%
        level 2/.style={sibling distance=25mm},%
        level 3/.style={sibling distance=10mm}]
        \node {racine-par-défaut}
        [edge from parent fork down]
          child { node {hôte-par-défaut}
            child { node {rubrique1}
              child { node {a}}
              child { node {b}}
              child { node {c}}
            }
            child { node {rubrique2}
              child { node {d}}
              child { node {e}}
              child { node {f}}
            }
            child { node {private}}
          }
          child { node {site1}}
          child { node {site2}
            child { node {zone protégée}}
          }
          ;  
      \end{tikzpicture}
  #+END_SRC


Any idea ?

Regards

Éric
-- 
É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/

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-10-17 13:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-12 12:26 no more tikz -> png génération during HTML export Éric Würbel
2018-10-14 13:37 ` Jeremie Juste
2018-10-14 21:01   ` Jeremie Juste
2018-10-15  6:29     ` Éric Würbel
2018-10-16  8:04     ` Éric Würbel
2018-10-16  9:18       ` Eric S Fraga
2018-10-16  9:46         ` Éric Würbel
2018-10-16 11:00           ` Eric S Fraga
2018-10-17 13:02             ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).