From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: =?UTF-8?B?UmU6IENhbuKAmXQgaW5jbHVkZSBmaWxlIHdpdGggYmFiZWw=?= Date: Thu, 15 Feb 2018 09:07:02 +0100 Message-ID: <87vaeyr80p.fsf@gmx.us> References: <87zi4br0h9.fsf@gmx.us> <87y3jvo5jg.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emEaA-0003PT-NB for emacs-orgmode@gnu.org; Thu, 15 Feb 2018 03:07:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emEa7-0003Xu-IF for emacs-orgmode@gnu.org; Thu, 15 Feb 2018 03:07:54 -0500 Received: from [195.159.176.226] (port=58272 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emEa7-0003Xe-AT for emacs-orgmode@gnu.org; Thu, 15 Feb 2018 03:07:51 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1emEXk-0000u1-LC for emacs-orgmode@gnu.org; Thu, 15 Feb 2018 09:05:24 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Rasmus 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