Re: [O] Tangling without clutter?

2012-03-15 Thread Viktor Rosenfeld
Hi Jos'h, have you looked at the :session header argument? I use it to define environment variables in bash that are used in later code blocks. Something like this: #+BEGIN_SRC sh :session foo export W=world. #+END_SRC #+RESULTS: #+BEGIN_SRC sh :session foo echo Hello $W #+END_SRC If these

Re: [O] Tangling without clutter?

2012-03-15 Thread Jacek Generowicz
At Thu, 15 Mar 2012 07:25:47 +0100, Viktor Rosenfeld wrote: Hi Jos'h, have you looked at the :session header argument? I use it to define environment variables in bash that are used in later code blocks. Something like this: #+BEGIN_SRC sh :session foo export W=world. #+END_SRC

[O] Tangling without clutter?

2012-03-14 Thread Jos'h Fuller
Hi! I was writing some documentation about how to use a Python function, so I decided to try the tangling feature. However, the result, when exported to PDF, is unsatisfactory because the referenced code block is included twice -- first in the original location, then again where I referenced

Re: [O] Tangling without clutter?

2012-03-14 Thread Thomas S. Dye
Jos'h Fuller Jos'h.ful...@arcproductions.com writes: Hi! I was writing some documentation about how to use a Python function, so I decided to try the tangling feature. However, the result, when exported to PDF, is unsatisfactory because the referenced code block is included twice --

Re: [O] Tangling without clutter?

2012-03-14 Thread Jos'h Fuller
Hi! Does the :no-expand header argument do what you want? See http://orgmode.org/manual/no_002dexpand.html#no_002dexpand. I tried using it like this: #+name: function-demo #+begin_src python :exports both :noweb yes :results output :no-expand function-definition print

Re: [O] Tangling without clutter?

2012-03-14 Thread Eric Schulte
Jos'h Fuller Jos'h.ful...@arcproductions.com writes: Hi! Does the :no-expand header argument do what you want? See http://orgmode.org/manual/no_002dexpand.html#no_002dexpand. I tried using it like this: #+name: function-demo #+begin_src python :exports both :noweb yes :results

Re: [O] Tangling without clutter?

2012-03-14 Thread Jos'h Fuller
Hi! It seems like I almost need some variant of the tangle argument to :noweb where syntax references are expanded for evaluation, but not for anything else. Why would you want to tangle out a python src file with an un-expanded noweb reference? Either way, who am I to judge. I've

Re: [O] Tangling without clutter?

2012-03-14 Thread Eric Schulte
Jos'h Fuller Jos'h.ful...@arcproductions.com writes: Hi! It seems like I almost need some variant of the tangle argument to :noweb where syntax references are expanded for evaluation, but not for anything else. Why would you want to tangle out a python src file with an un-expanded

Re: [O] Tangling without clutter?

2012-03-14 Thread Jos'h Fuller
Hi! Yes, although it seems that the existing no-export or strip-export options to the :noweb header argument may better suit your purposes. These are described in the Org-mode manual, however, they are not mentioned in the online version of the manual which is out of date. I thought I had

Re: [O] Tangling without clutter?

2012-03-14 Thread Eric Schulte
Jos'h Fuller Jos'h.ful...@arcproductions.com writes: Hi! Yes, although it seems that the existing no-export or strip-export options to the :noweb header argument may better suit your purposes. These are described in the Org-mode manual, however, they are not mentioned in the online version