emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Carsten Dominik <dominik@uva.nl>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-exp-blocks: what about previewing blocks ?
Date: Thu, 27 Aug 2009 12:51:28 -0600	[thread overview]
Message-ID: <m2fxbd84zz.fsf@gmail.com> (raw)
In-Reply-To: <6484A133-BA92-4096-A100-42F6F9BBAB60@uva.nl> (Carsten Dominik's message of "Thu, 27 Aug 2009 18:38:22 +0200")

I don't have any plans to add previewing to org-exp-blocks, however
there is an alternative.

Org-babel provides for the evaluation and viewing of the results of
blocks in Org-mode documents.  As such, it is possible to use Org-babel
to preview the output of blocks.  For example, with Org-babel installed
[1] calling C-c C-c on the following block will evaluate the block
placing a link to the resulting file into the Org-mode document.
Subsequently calling C-c C-o with the point on the block will find the
link and open it previewing the image.

--8<---------------cut here---------------start------------->8---
#+begin_src ditaa :file images/blue.png :cmdline -r
+---------+
| cBLU    |
|         |
|    +----+
|    |cPNK|
|    |    |
+----+----+
#+end_src
--8<---------------cut here---------------end--------------->8---

Hopefully in the near future Org-babel should be stable enough to
justify an initial release, which should include an instructional page
on worg.

Best -- Eric

Footnotes: 
[1]  http://eschulte.github.com/org-babel/#getting-started

  reply	other threads:[~2009-08-27 18:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-17  0:40 Nicolas Girard
2009-06-18  7:41 ` Carsten Dominik
2009-06-18  9:32   ` Nicolas Girard
2009-06-19 15:31     ` Carsten Dominik
2009-06-26  0:59       ` Eric Schulte
2009-06-26  4:17         ` Carsten Dominik
2009-06-26 17:16           ` Eric Schulte
2009-08-27 16:38     ` Carsten Dominik
2009-08-27 18:51       ` Eric Schulte [this message]
2009-08-28  8:02         ` Carsten Dominik
2009-08-28 16:06           ` Eric Schulte
2009-08-28 16:31             ` Bernt Hansen
2009-06-18  8:21 ` Carsten Dominik

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=m2fxbd84zz.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=dominik@uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: org-exp-blocks: what about previewing blocks ?' \
    /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

Code repositories for project(s) associated with this 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).