From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-exp-blocks: what about previewing blocks ? Date: Fri, 28 Aug 2009 10:02:56 +0200 Message-ID: <86C02086-39C5-461B-8876-C1E5E4264A43@uva.nl> References: <51b0095d0906161740n23379dbbtdf919aa3e8a4ea4a@mail.gmail.com> <51b0095d0906180232j3489705dndcc7d458d5a078af@mail.gmail.com> <6484A133-BA92-4096-A100-42F6F9BBAB60@uva.nl> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgwQO-0006pc-H7 for emacs-orgmode@gnu.org; Fri, 28 Aug 2009 04:03:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgwQJ-0006md-Ai for emacs-orgmode@gnu.org; Fri, 28 Aug 2009 04:03:08 -0400 Received: from [199.232.76.173] (port=50271 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgwQJ-0006mX-4b for emacs-orgmode@gnu.org; Fri, 28 Aug 2009 04:03:03 -0400 Received: from paard.ic.uva.nl ([145.18.40.182]:49813) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgwQI-0001o2-7X for emacs-orgmode@gnu.org; Fri, 28 Aug 2009 04:03:02 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: emacs-orgmode@gnu.org Hi Eric, this sounds like a great alternative, thanks. I wonder if we should consider some cashing of images, also for export. I think we could have an alist with sha1 hashes as keys and image files as values. The sha1 hash could be made from the entire code and the command that is used to create the image.. - Carsten On Aug 27, 2009, at 8:51 PM, Eric Schulte wrote: > 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 > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ======================= PLEASE NOTE NEW ADDRESS ======================= prof.dr. Carsten Dominik dominik@uva.nl Astronomical Institute 'Anton Pannekoek' www.astro.uva.nl/~dominik Faculty of Science, University of Amsterdam phone +31-20-5257477/7491 SCIENCE PARK 904, ROOM C4-106 fax +31-20-5257484 1098 XH Amsterdam, The Netherlands mail: PO BOX 94249, 1090GE, Amsterdam