emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: Christian Moe <mail@christianmoe.com>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Problems producing TikZ PNGs from LaTeX src blocks
Date: Fri, 28 Sep 2018 11:27:50 +0100	[thread overview]
Message-ID: <87mus1x6ft.fsf@gmail.com> (raw)
In-Reply-To: <87efdenepr.fsf@christianmoe.com> (Christian Moe's message of "Fri, 28 Sep 2018 11:39:12 +0200")

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	other threads:[~2018-09-28 10:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-28  9:39 Problems producing TikZ PNGs from LaTeX src blocks Christian Moe
2018-09-28 10:27 ` Eric S Fraga [this message]
2018-09-29 21:07   ` [patch] Problems producing TikZ PNGs from LaTeX src blocks (was: Problems producing TikZ PNGs from LaTeX src blocks) Benjamin Motz
2018-09-30 19:43     ` Christian Moe
     [not found]   ` <87mus18z8t.fsf@christianmoe.com>
2018-09-30 18:47     ` Fwd: Re: Problems producing TikZ PNGs from LaTeX src blocks Christian Moe
     [not found]     ` <87sh1tsmm0.fsf@delle7240.chemeng.ucl.ac.uk>
2018-09-30 18:56       ` Christian Moe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mus1x6ft.fsf@gmail.com \
    --to=esflists@gmail.com \
    --cc=Emacs-orgmode@gnu.org \
    --cc=mail@christianmoe.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).