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
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
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
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 --
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
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
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
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
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
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
10 matches
Mail list logo