emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] new babel latex feature :imagemagick
Date: Thu, 24 Feb 2011 18:49:09 +0000	[thread overview]
Message-ID: <8739ndmfoa.fsf@ucl.ac.uk> (raw)
In-Reply-To: <4D668477.8080005@med.uni-goettingen.de> (Andreas Leha's message of "Thu, 24 Feb 2011 17:16:55 +0100")

Andreas Leha <andreas.leha@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)

  reply	other threads:[~2011-02-24 21:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24 16:16 [PATCH] new babel latex feature :imagemagick Andreas Leha
2011-02-24 18:49 ` Eric S Fraga [this message]
2011-02-26  0:16   ` Eric Schulte
2011-02-28  9:28     ` Eric S Fraga
2011-02-26  0:13 ` Eric Schulte
2011-02-26  0:13 ` Eric Schulte
2011-02-26 10:41   ` Andreas Leha
2011-02-26 16:06     ` Eric Schulte
2011-02-26 16:41     ` Eric Schulte
2011-06-28 20:52     ` Sebastien Vauban
2011-06-29  0:42       ` Eric Schulte
2011-11-22 10:37         ` Andreas Leha
2011-11-22 13:58           ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739ndmfoa.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=andreas.leha@med.uni-goettingen.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).