Andreas Leha <andreas.l...@med.uni-goettingen.de> writes: > Hi all, > > Just a small patch that might make life easier for > LaTeX (and esp. tikz) users. It enables the output of graphics in a > lot of formats using imagemagick. See below for an example.
[...] This seems to work rather well. I tried the following: #+begin_src org * tikz with image magick The following is a simple figure generated using tikz: #+begin_src latex :exports results :results (if (and (boundp 'backend) (eq backend 'latex)) "latex" "file") :file test.png :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry 400 :fit yes :noweb yes :headers '("\\usepackage{tikz}") \begin{tikzpicture} \node[red!50!black] (a) {A}; \node (b) [right of=a] {B}; \draw[->] (a) -- (b); \end{tikzpicture} #+end_src #+end_src and I get native tikz in the latex output and a png in the html output. very nice! I haven't done exhaustive testing so I don't know if the patch breaks anything, mind you. Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.529.gb23d.dirty) _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode