emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [PATCH] new babel latex feature :imagemagick


From: Eric S Fraga
Subject: Re: [Orgmode] [PATCH] new babel latex feature :imagemagick
Date: Thu, 24 Feb 2011 18:49:09 +0000
User-agent: Gnus/5.110014 (No Gnus v0.14) Emacs/24.0.50 (gnu/linux)

Andreas Leha <address@hidden> 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)




















reply via email to

[Prev in Thread] Current Thread [Next in Thread]