[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Best way of including tikz into latex (pdf and beamer) export wi
From: |
Rasmus |
Subject: |
Re: [O] Best way of including tikz into latex (pdf and beamer) export with preview? |
Date: |
Tue, 17 May 2016 12:30:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Rainer M Krug <address@hidden> 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!