From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leonard Randall Subject: 2 issues with Include function Date: Mon, 14 Sep 2015 19:41:51 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b873ac2389957051fb96b44 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbYi9-0001GB-1y for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 14:42:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbYi5-0001FO-Ks for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 14:42:40 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:33713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbYi5-0001FJ-Eh for emacs-orgmode@gnu.org; Mon, 14 Sep 2015 14:42:37 -0400 Received: by wiclk2 with SMTP id lk2so152699721wic.0 for ; Mon, 14 Sep 2015 11:41:51 -0700 (PDT) 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: emacs-orgmode --047d7b873ac2389957051fb96b44 Content-Type: text/plain; charset=UTF-8 Hi, I noticed 2 more issues with the include function on latex export. The first, is that when I make an id link between 2 included files, the exporter gives the section associated with the linked header the same label as the header where the link is located. So for instance if I include two files which include the following contents. --- Included File 1 --- * Headline 4 I develop this point in [[id:beb44a5e-fc8b-4597-8dc1-0fb0a6d3a346]]. --- --- --- Included File 2 ** Headline 6.2 :PROPERTIES: :ID: beb44a5e-fc8b-4597-8dc1-0fb0a6d3a346 :END: --- --- Headline 4 and Headline 6.2 will be given the same label, and so the link will point to headline 4, instead of Headline 6.2. The second problem is that if the include function is narrowed to a specific headline using a custom id, and there are footnotes defined at the very bottom of that headline, the final footnote in the section will not have a closing bracket. If I have the following master file and included file. --- Master file --- #+INCLUDE: "./1WorkingDraft.org::#Chapter1" --- --- --- 1WorkingDraft.org --- * Chapter 1 Title :PROPERTIES: :CUSTOM_ID: Chapter1 :END: Here is a some text with a footnote[fn:1]. Here is some more text. ... [fn:1] Here is the definition. * Other heading or end of file --- --- I get latex export that includes something like this. --- \chapter{Chapter 1 Title} \label{sec:orgheadline11} Here is some text with a footnote \footnote{Here is the definition..Here is some more text. ... \end document --047d7b873ac2389957051fb96b44 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,
I noticed = 2 more issues with the include function on latex export. The first, is that= when I make an id link between 2 included files, the exporter gives the se= ction associated with the linked header the same label as the header where = the link is located. So for instance if I include two files which include t= he following contents.

--- Included File 1 ---
= * Headline 4
I develop this point in [[id:beb44a5e-fc8b-4597-= 8dc1-0fb0a6d3a346]].
--- ---
--- Included File 2
** Headline 6.2
:PROPERTIES:
:ID:=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 beb44a5e-fc8b-4597-8dc1-0fb0a6d3a346
:END:
--- ---

<= /div>Headline 4 and Headline 6.2 will be given the same label, and so the l= ink will point to headline 4, instead of Headline 6.2.

The sec= ond problem is that if the include function is narrowed to a specific headl= ine using a custom id, and there are footnotes defined at the very bottom o= f that headline, the final footnote in the section will not have a closing = bracket.
=C2=A0
If I have the following master file and in= cluded file.

--- Master file ---
#+INCLUDE: "./1W= orkingDraft.org::#Chapter1"
--- ---

--- 1Working= Draft.org ---
* Chapter 1 Title
:PROPERTIES::CUSTOM_ID: Chapter1
:END:
Here is a some text with a foo= tnote[fn:1]. Here is some more text.
...
[fn:1] Here is th= e definition.

* Other heading or end of file
--- ---
I get latex export that includes something like this.

-= --
\chapter{Chapter 1 Title}
\label{sec:orghea= dline11}
Here is some text with a footnote \footnote{Here is = the definition..Here is some more text.
...
\end document<= br>
--047d7b873ac2389957051fb96b44--