Re: [Orgmode] Re: Exporting after executing code

2009-09-12 Thread Eric Schulte
andrea Crotti andrea.crott...@gmail.com writes:

 Carsten Dominik carsten.dominik at 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


___
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


Re: [Orgmode] Re: Exporting after executing code

2009-09-11 Thread Nick Dokos
andrea Crotti andrea.crott...@gmail.com wrote:

 Detlef Steuer steuer at unibwh.de writes:
 
  
  On Fri, 11 Sep 2009 12:41:24 + (UTC)
  andrea Crotti andrea.crotti.0 at gmail.com wrote:
  
   And another thing, is there an easy way to include a file like
   \include or \input in latex??
  
  Yes, you can 
  #+INCLUDE:
  
  http://orgmode.org/manual/Include-files.html#Include-files
  
 Mmm why it's not in my info manual?
 I also upgraded to latest 6.30e but it's not there, strange..
 Thanks anyway
 

My info manual says 6.29c and #+INCLUDE is present and accounted for.

HTH,
Nick


___
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


Re: [Orgmode] Re: Exporting after executing code

2009-09-11 Thread Sebastian Rose
andrea Crotti andrea.crott...@gmail.com writes:
 Nick Dokos nicholas.dokos at hp.com writes:

 
 My info manual says 6.29c and #+INCLUDE is present and accounted for.
 
 My fault I didn't add the path to the info list, I was
 looking in the old info manual..

 Thinking about code execution I think it should be possible,
 the spreadsheet does that in some ways..


See:
  http://eschulte.github.com/org-babel/



Sebastian


___
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


Re: [Orgmode] Re: Exporting after executing code

2009-09-11 Thread Carsten Dominik


On Sep 11, 2009, at 7:57 PM, Sebastian Rose wrote:


andrea Crotti andrea.crott...@gmail.com writes:

Nick Dokos nicholas.dokos at hp.com writes:



My info manual says 6.29c and #+INCLUDE is present and accounted  
for.



My fault I didn't add the path to the info list, I was
looking in the old info manual..

Thinking about code execution I think it should be possible,
the spreadsheet does that in some ways..



See:
 http://eschulte.github.com/org-babel/



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



___
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