[Top][All Lists]

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

Re: [Orgmode] org-exp-blocks: what about previewing blocks ?

From: Carsten Dominik
Subject: Re: [Orgmode] org-exp-blocks: what about previewing blocks ?
Date: Thu, 27 Aug 2009 18:38:22 +0200

Hi Nicolas,

while this would be great, I don't see any movement in this
direction, so for now I am closing this thread in my TODO folder....

- Carsten

On Jun 18, 2009, at 11:32 AM, Nicolas Girard wrote:

2009/6/18 Carsten Dominik <address@hidden>

On Jun 17, 2009, at 2:40 AM, Nicolas Girard wrote:

Hi all,

currently the code in org-exp-blocks is intended for pre-processing only.
It seems to me like org-mode would gain a very powerful feature, if
blocks could also be previewed in their own buffer, using the same
mechanism as the org-format-latex function.
What do you think ?

I don't see how this could be done in a general way. I guess you mean in particular
the graphics blocks like ditaa?

Yes. For any block type bt, if it makes sense, it would be possible to write such org-block-<bt>-generate-image(body) that takes the block as argument and returns the path of the image it produced.

- for exporting: the existing org-export-blocks-format-<bt> functions would simply call their respective org-block-<bt>-generate- image and work the same ; - for previewing a block of type <bt>: if such org-block-<bt>- generate-image exists, call it and display it the same way org- format-latex does

Wouldn't it be great ?

Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.

prof.dr. Carsten Dominik                                address@hidden
Astronomical Institute 'Anton Pannekoek'                
Faculty of Science, University of Amsterdam             phone   
SCIENCE PARK 904, ROOM C4-106                   fax     +31-20-5257484
1098 XH Amsterdam, The Netherlands
mail: PO BOX 94249, 1090GE, Amsterdam

reply via email to

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