emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Problems producing TikZ PNGs from LaTeX src blocks


From: Eric S Fraga
Subject: Re: [O] Problems producing TikZ PNGs from LaTeX src blocks
Date: Fri, 28 Sep 2018 11:27:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]