From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: =?UTF-8?B?UmU6IENhbuKAmXQgaW5jbHVkZSBmaWxlIHdpdGggYmFiZWw=?= Date: Wed, 14 Feb 2018 18:16:35 +0100 Message-ID: <87y3jvo5jg.fsf@nicolasgoaziou.fr> References: <87zi4br0h9.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1em0ff-0004Td-AB for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 12:16:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1em0fe-00079V-Ga for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 12:16:39 -0500 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:40138) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1em0fe-00078D-9m for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 12:16:38 -0500 In-Reply-To: <87zi4br0h9.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 14 Feb 2018 17:37:38 +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: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > I am stitching together a number of documents to produce a report. > > I though I=E2=80=99d 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=3D"other-paper.org", first=3D"appendix1"= , last=3D"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=E2=80=99t work seem to work, I guess because #+include is expa= nded > 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'. Regards, --=20 Nicolas Goaziou