"Eric Schulte" <schulte.e...@gmail.com> writes: >> #+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 >
It is indeed. Thanks for reminding me of this. My headers are seldom this long so I had forgotten they could be split. -- : 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