emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Can’t include file with babel


From: Rasmus
Subject: Re: [O] Can’t include file with babel
Date: Thu, 15 Feb 2018 09:07:02 +0100
User-agent: Emacs Gnus

Nicolas Goaziou <address@hidden> writes:

> Hello,
>
> Rasmus <address@hidden> writes:
>
>> I am stitching together a number of documents to produce a report.
>>
>> I though I’d be clever and include subfile headings in the right order at
>> the right place using babel.
>>
>> I do something like
>>
>>     * Appendix to chapter N
>>
>>     #+call: include-between(file="other-paper.org", first="appendix1", 
>> last="appendix3") :results value raw
>>
>> Producing
>>
>>     #+RESULTS:
>>
>>     #+include: "other-paper.org::*appendix1" :minlevel 2
>>     #+include: "other-paper.org::*appendix2" :minlevel 2
>>
>>     #+include: "other-paper.org::*appendix3" :minlevel 2
>>
>> This doesn’t work seem to work, I guess because #+include is expanded
>> before anything else.
>
> Correct.
>
>> Should it be possible to include stuff like this using Babel or is it too
>> circular?
>
> The latter.
>
> You can generate programmatically parts of the document with
> `org-export-before-processing-hook'.

That is what I suspected, and I’d probably agree.  It’s no issue, really.

(I also considered rearranging headings based on tags with a tree filter,
 but that is even more convoluted than the above approach).

Thanks,
Rasmus

-- 
Sådan en god dansk lagereddike kan man slet ikke bruge mere




reply via email to

[Prev in Thread] Current Thread [Next in Thread]