> > I updated the example again. Try this: > > --8<---------------cut here---------------start------------->8--- > #+LATEX_HEADER: \usepackage{tikz} > > * Tikz test > #+name: contents > #+header: :exports (if (and (boundp 'backend) (eq (org-export-backend-name backend) (intern "latex"))) "results" "none") > #+header: :results latex > #+begin_src latex > \begin{tikzpicture} > \node[red!50!black] (a) {A}; > \node (b) [right of=a] {B}; > \draw[->] (a) -- (b); > \end{tikzpicture} > #+end_src > > #+header: :exports (if (and (boundp 'backend) (eq (org-export-backend-name backend) (intern "latex"))) "none" "results") > #+header: :results raw :file test.png > #+header: :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 400 > #+header: :fit yes :noweb yes :headers '("\\usepackage{tikz}") > #+begin_src latex > <> > #+end_src > --8<---------------cut here---------------end--------------->8--- > Building from this example, the attached patch to ob-latex.el combined with the attached org-mode file should export the latex (tikz) code as an inline SVG image to HTML and as embedded tikz to latex. If this works generally I can commit the patch to ob-latex.el.