Rainer M Krug <rai...@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!