> #+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
Very nice, are you aware of the option to split header arguments among
multiple lines?
the above could be written as...
#+headers: :file test.png :fit yes
#+headers: :imagemagick yes :iminoptions -density 600 :imoutoptions -geometry
400
#+headers: :results (if (and (boundp 'backend) (eq backend 'latex)) "latex"
"file")
#+begin_src latex :exports results :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
which is (possibly) easier to write/read
Best -- Eric
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-orgmode