[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Re: [Orgmode] [PATCH] new babel latex feature :imagemagick
From: |
Eric S Fraga |
Subject: |
[O] Re: [Orgmode] [PATCH] new babel latex feature :imagemagick |
Date: |
Mon, 28 Feb 2011 09:28:24 +0000 |
User-agent: |
Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux) |
"Eric Schulte" <address@hidden> 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)