From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Multi-file and master files Date: Wed, 01 Oct 2014 14:26:41 +0200 Message-ID: <877g0kx9fi.fsf@gmx.us> References: <87d2acf9w1.fsf@newcastle.ac.uk> <871tqsjh5x.fsf@gmx.us> <87vbo4dmto.fsf@newcastle.ac.uk> 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]:49196) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZIze-0006HH-2V for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 08:26:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZIza-0006la-3r for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 08:26:54 -0400 Received: from mout.gmx.net ([212.227.17.21]:56515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZIzZ-0006lK-QN for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 08:26:50 -0400 In-Reply-To: <87vbo4dmto.fsf@newcastle.ac.uk> (Phillip Lord's message of "Wed, 01 Oct 2014 12:57:39 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: phillip.lord@newcastle.ac.uk Cc: emacs-orgmode@gnu.org phillip.lord@newcastle.ac.uk (Phillip Lord) writes: > Rasmus writes: > >> Hi Phillip, >> >> phillip.lord@newcastle.ac.uk (Phillip Lord) writes: >> >> I might be misunderstanding your question here, so bear(?) with me. >> >> I think #+INCLUDE: "$FILE" should take care of what you want. >> Basically, at export time, INCLUDE is expanded to the content of $FILE >> in the buffer. Footnotes should work. > > So > > master.org > include file1.org > include file2.org > > Now, in file1.org add a footnote gets -- > > [fn:1] > > > * Footnote > > [fn:1] Footnote one > > > In file2.org add a footnote gets > > [fn:1] > > * Foonote > [fn:1] Footnote two > > And footnote two gets lost. Here's a complete example that works as expected (footnotes and hyperlinks). Perhaps one needs to specify :minlevel to get the desired output. I don't know if this is desired behavior. If not you can make another bug report. >$ for f in $(ls -A /tmp/include); do echo ""; echo "=E2=86=92 $f =E2=86=90= "; echo "~~~~~~~~~~~~~~~"; echo ""; cat /tmp/include/$f; done =E2=86=92 c1.org =E2=86=90 ~~~~~~~~~~~~~~~ * chapter 1 txt1[fn:1] * Footnotes [fn:1] fn1 =E2=86=92 c2.org =E2=86=90 ~~~~~~~~~~~~~~~ * chapter 2 txt2[fn:1] * Footnotes [fn:1] fn2=20 =E2=86=92 m.org =E2=86=90 ~~~~~~~~~~~~~~~ #+OPTIONS: toc:nil #+TITLE: Overall title #+INCLUDE: "/tmp/include/c1.org" :minlevel 1=20 #+INCLUDE: "/tmp/include/c2.org" :minlevel 1 * chapter 3 Everything was said in [[*chapter 1]] and [[*chapter 2]]... =E2=86=92 m.txt =E2=86=90 ~~~~~~~~~~~~~~~ =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2= =94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81 OVERALL TITLE =E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2= =94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81=E2=94=81 1 chapter 1 =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2= =95=90=E2=95=90=E2=95=90 txt1[1] 2 chapter 2 =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2= =95=90=E2=95=90=E2=95=90 txt2[2] 3 chapter 3 =E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2=95=90=E2= =95=90=E2=95=90=E2=95=90 Everything was said in 1 and 2=E2=80=A6 Footnotes =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80 [1] fn1 [2] fn2 > I have a similar problem with hyperlinks. The normal store link > remembers the input.org file that the link is too. So, if in the > example, above I like between file2.org and file1.org using the Store > Link menu item, the HTML is wrong (since there is no file2.html > generated). I was not able to reproduce. But please make a receipt to get this behavior and it can be looked into. =E2=80=94Rasmus --=20 The Kids call him Billy the Saint