[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tangling from multiple files
From: |
David Bremner |
Subject: |
Re: tangling from multiple files |
Date: |
Wed, 18 Mar 2020 22:29:00 -0300 |
"Berry, Charles" <address@hidden> writes:
>> On Mar 17, 2020, at 4:21 PM, David Bremner <address@hidden> wrote:
>>
>>
>> I've seen this question around e.g. stack overflow, but none of the
>> answers I found seems really satisfactory.
>>
>> I'd like to share a set of begin_src / end_src blocks in a.org between
>> b.org and c.org; in particular b.org and c.org contain noweb references
>> to names defined in a.org. Is there a better way than using
>> (org-babel-lob-ingest "a.org")? This seems a bit clunky, requiring
>> manual action every time a.org changes.
>>
>
>
> Put
>
> #+include: ./a./org
>
> directives in b.org and c.org
>
> You might want to put the directives inside a non-exported drawer. See
> `org-export-with-drawers’ docstring.
This works fine (modulo the extra /) for exporting, but doesn't seem to
work for tangling. Does it work for tangling for you; i.e. is b.scm
produced with the two defines in it?
d