emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Dov Grobgeld <dov.grobgeld@gmail.com>
Cc: Jeff Horn <jrhorn424@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: Generated images in buffer
Date: Sun, 28 Nov 2010 07:46:49 -0700	[thread overview]
Message-ID: <87bp594iau.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTim2fP1aArGHVwh=Zq2bAbo+4fOzXGdMa8Zi74px@mail.gmail.com> (Dov Grobgeld's message of "Sun, 28 Nov 2010 10:11:55 +0200")

You can place the ditaa code into a code block and then evaluate the
code block with C-c C-c.  This will insert a link to the generated image
into your Org-mode file.  If you then turn on inline images with M-x
org-toggle-inline-images you can preview the generated image from within
your Org-mode buffer.

For more information on code blocks see
http://orgmode.org/manual/Working-With-Source-Code.html#Working-With-Source-Code

Best -- Eric

Dov Grobgeld <dov.grobgeld@gmail.com> writes:

> Thanks! So it possible for LaTeX, but not for other image generators. That's
> a bit unfair. How difficult would it be to generalize this so that it would
> support any image generator?
>
> Regards,
> Dov
>
> On Sun, Nov 28, 2010 at 09:34, Jeff Horn <jrhorn424@gmail.com> wrote:
>
>> On Sun, Nov 28, 2010 at 2:04 AM, Dov Grobgeld <dov.grobgeld@gmail.com>
>> wrote:
>> > The same idea could be used for any system generating images, e.g. LaTeX
>> > formulas, asymptote, a python script using cairo, etc.
>>
>> I think evaluating Babel code blocks can insert output into your org-file.
>>
>> Also, I regularly use =C-c C-x C-l= to display rendered LaTeX
>> equations in-buffer. That keystroke only displays the current
>> subtree's equations. With a prefix, it will generate previews for the
>> entire document.
>>
>> Best,
>> Jeff
>>
>> --
>> Jeffrey Horn
>> Graduate Lecturer and PhD Student in Economics
>> George Mason University
>>
>> (704) 271-4797
>> jhorn@gmu.edu
>> jrhorn424@gmail.com
>>
>> http://www.failuretorefrain.com/jeff/
>>
> _______________________________________________
> 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

  reply	other threads:[~2010-11-28 14:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-28  7:04 Generated images in buffer Dov Grobgeld
2010-11-28  7:34 ` Jeff Horn
2010-11-28  8:11   ` Dov Grobgeld
2010-11-28 14:46     ` Eric Schulte [this message]
2010-11-28 17:27       ` Dan Davison
2010-11-28 20:43         ` Dov Grobgeld
2010-11-28 22:34           ` Dan Davison

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=87bp594iau.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=dov.grobgeld@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jrhorn424@gmail.com \
    /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).