On Friday, 28 Sep 2018 at 11:39, Christian Moe wrote: > Hi, > > I am trying to generate a PNG file with a TikZ picture from a LaTeX src > block, looking at instructions here: > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html > > I try this: > > #+header: :file "tikzpic.png" :fit yes :results raw file :exports results > :headers '("\\usepackage{tikz}") > #+begin_src latex > \begin{tikzpicture} > \draw [fill=green] (0,4) -- (3,0) -- (-3,0) -- cycle; > \end{tikzpicture} > #+end_src
This works for me, cutting and pasting exactly what you have posted into a small org file. Output from my *Messages* buffer: ,---- | Wrote /tmp/x.org | org-babel-exp process latex at position 128... | Evaluate this latex code block on your system? (y or n) y | executing Latex code block... | (Shell command succeeded with no output) | Code block evaluation complete. | Local Ispell dictionary set to british | Saving file /tmp/x.tex... `---- when I export to LaTeX. What does your message log say? Finally, what version of org are you using? (maybe should have asked this first...) -- Eric S Fraga via Emacs 27.0.50, Org release_9.1.11-620-ga548e4