From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Exporting after executing code Date: Sat, 12 Sep 2009 12:20:20 -0600 Message-ID: References: <20090911154802.7c0b7179@gaia> <28960.1252684429@gamaville.dokosmarshall.org> <87fxats6t3.fsf@gmx.de> <7A637FEC-325E-487C-A1D9-F03023FB26C5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MmXD5-0002Oy-Dg for emacs-orgmode@gnu.org; Sat, 12 Sep 2009 14:20:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MmXD0-0002GQ-Nq for emacs-orgmode@gnu.org; Sat, 12 Sep 2009 14:20:31 -0400 Received: from [199.232.76.173] (port=52243 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MmXD0-0002G9-Hw for emacs-orgmode@gnu.org; Sat, 12 Sep 2009 14:20:26 -0400 Received: from mail-px0-f171.google.com ([209.85.216.171]:54849) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MmXD0-0004FR-7P for emacs-orgmode@gnu.org; Sat, 12 Sep 2009 14:20:26 -0400 Received: by pxi1 with SMTP id 1so1588869pxi.1 for ; Sat, 12 Sep 2009 11:20:25 -0700 (PDT) In-Reply-To: (andrea Crotti's message of "Sat, 12 Sep 2009 17:38:35 +0000 (UTC)") 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: andrea Crotti Cc: emacs-orgmode@gnu.org andrea Crotti writes: > Carsten Dominik gmail.com> writes: > >> >> or, for a lighter solution >> >> http://repo.or.cz/w/org-mode.git?a=blob_plain;f=contrib/lisp/org-eval.el;hb=HEAD >> >> or >> >> http://orgmode.org/worg/org-contrib/org-eval-light.php >> >> But org-babel may really be the way to go. >> >> - Carsten >> > > org-babel is really nice I think, there's only one thing I don't understand yet. > If I want in the same file to have the source code and the output of the > source code how should I do?? > > Once I enable org-babel it executes everything before exporting?? > No finer settings possible? > Hi, There are four export setting using Org-babel. - none :: neither the code or the results are exported and the block is not run - code :: the fortified code is exported and the block is not run - results :: the block is run, and the results are exported - both :: the block is run and both the code and results are exported These setting are controlled via the :exports header argument, so for example in the following code block only the code would be included on export. #+begin_src ditaa :file test.png :exports code +----------------------+ | | | | | +-----------+ | | | | | | | | | | +-----------+ | | +----------------------+ #+end_src If you grab the latest Org-babel code from http://github.com/eschulte/org-babel/tree/master then you can set the exports header argument for an entire subtree by setting the subtree's "exports" property, for example ** show all :PROPERTIES: :exports: both :END: Best -- Eric > > > > _______________________________________________ > 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