From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Generated images in buffer Date: Sun, 28 Nov 2010 07:46:49 -0700 Message-ID: <87bp594iau.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=52761 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMiWp-000130-8C for emacs-orgmode@gnu.org; Sun, 28 Nov 2010 09:47:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMiWn-0007A3-Hx for emacs-orgmode@gnu.org; Sun, 28 Nov 2010 09:46:59 -0500 Received: from mail-iw0-f169.google.com ([209.85.214.169]:39922) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMiWn-00079l-ES for emacs-orgmode@gnu.org; Sun, 28 Nov 2010 09:46:57 -0500 Received: by iwn38 with SMTP id 38so3374195iwn.0 for ; Sun, 28 Nov 2010 06:46:56 -0800 (PST) In-Reply-To: (Dov Grobgeld's message of "Sun, 28 Nov 2010 10:11:55 +0200") 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: Dov Grobgeld Cc: Jeff Horn , emacs-orgmode@gnu.org 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 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 wrote: > >> On Sun, Nov 28, 2010 at 2:04 AM, Dov Grobgeld >> 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