[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: noweb
From: |
Marco Wahl |
Subject: |
Re: noweb |
Date: |
Wed, 22 Jan 2020 21:21:01 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Nuno Salgado <address@hidden> writes:
> Vars definition:
> #+NAME:DEFVARS
>
> #+BEGIN_SRC shell :tangle yes
> v1=1;
> v2=2;
> #+END_SRC
>
> Script1:
>
> #+BEGIN_SRC shell :tangle yes :noweb eval
> <<DEFVARS>>
> echo $v1;
> #+END_SRC
>
> This works great when I do C-c C-c in each script.
>
> But when I do org-babel-tangle, the code gets two <<DEFVARS>>.
>
> Does it makes sense? Since I set noweb = eval why does it exports
> <<DEFVARS>>?
>
> Could you please help me turning around this problem without removing every
> reference <<DEFVARS>>
You can find the answer in the documentation, I think. See e.g. (info
"(org) Noweb Reference Syntax").
HTH
--
Marco
- noweb, Nuno Salgado, 2020/01/22
- Re: noweb,
Marco Wahl <=
- Re: noweb, Diego Zamboni, 2020/01/22