From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Problems producing TikZ PNGs from LaTeX src blocks Date: Fri, 28 Sep 2018 11:27:50 +0100 Message-ID: <87mus1x6ft.fsf@gmail.com> References: <87efdenepr.fsf@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g5q06-00022w-Ag for Emacs-orgmode@gnu.org; Fri, 28 Sep 2018 06:27:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g5q01-0004Ir-RR for Emacs-orgmode@gnu.org; Fri, 28 Sep 2018 06:27:58 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:41975) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g5q01-0004Hq-Jh for Emacs-orgmode@gnu.org; Fri, 28 Sep 2018 06:27:53 -0400 Received: by mail-wr1-x433.google.com with SMTP id j15-v6so5795305wrt.8 for ; Fri, 28 Sep 2018 03:27:53 -0700 (PDT) In-Reply-To: <87efdenepr.fsf@christianmoe.com> (Christian Moe's message of "Fri, 28 Sep 2018 11:39:12 +0200") 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: Christian Moe Cc: Emacs-orgmode@gnu.org 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