emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Best way of including tikz into latex (pdf and beamer) export with preview?
Date: Tue, 17 May 2016 12:30:14 +0200	[thread overview]
Message-ID: <87k2it564p.fsf@gmx.us> (raw)
In-Reply-To: m2y47fhdgi.fsf@krugs.de

Rainer M Krug <Rainer@krugs.de> writes:

> What is the best way of including tikz into org for latex export (beamer
> and pdf),

I typically create tikz images with R tikzDevice or matplotlib.  In this
case, it’s useful to refer to the generated file:

  file:link/to/pix.tikz

> and to have preview as well?

I believe you’d have to include the code directly in the Org file to make
the preview of latex fragments work.  If this is essential, you could do
something like this:

#+latex_header: \usepackage{tikz}
#+Caption: A special block that’s a figure with a tikz picture.
#+begin_figure
\begin{tikzpicture}
\input{t.tikz} % raw tikz-content w/o \begin{}/end{}
\end{tikzpicture}
#+end_figure

See also the tikz section on ob-latex in worg:

    http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html#sec-4-3

Rasmus

-- 
Hooray!

  reply	other threads:[~2016-05-17 10:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-12  8:45 Best way of including tikz into latex (pdf and beamer) export with preview? Rainer M Krug
2016-05-17 10:30 ` Rasmus [this message]
2016-05-17 21:44 ` briangpowell .
2016-05-19  9:25 ` Myles English
2016-05-19 13:07   ` Russell Adams

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=87k2it564p.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /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).