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."
> #+
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
Jos'h Fuller 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 of the manual whic
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
Jos'h Fuller 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
>> noweb refer
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 ju
Jos'h Fuller 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 output :no-expand
> <>
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
<>
print entable([["One", 2, 59
Jos'h Fuller 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 --
> first in the original location
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 it
10 matches
Mail list logo