From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: =?UTF-8?B?Q2Fu4oCZdCBpbmNsdWRlIGZpbGUgd2l0aCBiYWJlbA==?= Date: Wed, 14 Feb 2018 17:37:38 +0100 Message-ID: <87zi4br0h9.fsf@gmx.us> 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]:52851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1em04v-00043n-Ul for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 11:38:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1em04r-0002VK-2T for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 11:38:41 -0500 Received: from [195.159.176.226] (port=59157 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1em04q-0002UY-RC for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 11:38:36 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1em02T-0000mP-Bp for emacs-orgmode@gnu.org; Wed, 14 Feb 2018 17:36:09 +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 Hi, 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. Should it be possible to include stuff like this using Babel or is it too circular? Thanks, Rasmus -- . . . It begins of course with The Internet. A Net of Peers