From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leonard Randall Subject: Re: 2 issues with Include function Date: Thu, 17 Sep 2015 09:00:29 +0100 Message-ID: References: <87fv2dv756.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b873ac2006876051feccf4f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51094) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcU7L-0002mD-OL for emacs-orgmode@gnu.org; Thu, 17 Sep 2015 04:00:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcU7K-0007PR-HJ for emacs-orgmode@gnu.org; Thu, 17 Sep 2015 04:00:31 -0400 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:36355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcU7K-0007PJ-7J for emacs-orgmode@gnu.org; Thu, 17 Sep 2015 04:00:30 -0400 Received: by wicgb1 with SMTP id gb1so106023117wic.1 for ; Thu, 17 Sep 2015 01:00:29 -0700 (PDT) In-Reply-To: <87fv2dv756.fsf@nicolasgoaziou.fr> 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: Leonard Randall , emacs-orgmode --047d7b873ac2006876051feccf4f Content-Type: text/plain; charset=UTF-8 Thanks, I will try to see if there is something in my config causing the issue. All best, Leonard On 17 September 2015 at 08:26, Nicolas Goaziou wrote: > Hello, > > Leonard Randall writes: > > > I noticed 2 more issues with the include function on latex export. > > I cannot reproduce any of these. Could you upgrade Org and try again? > > > 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. > > I get > > \section{Headline 4} > \label{sec:orgheadline2} > I develop this point in \ref{sec:orgheadline1}. > \section{Headline 6.2} > \label{sec:orgheadline1} > > > 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 > > I get > > \section{Chapter 1 Title} > \label{sec:orgheadline1} > Here is a some text with a footnote\footnote{Here is the definition.}. > Here is some more text. > \ldots{} > > > Regards, > > -- > Nicolas Goaziou > --047d7b873ac2006876051feccf4f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks,
I will try to see if there= is something in my config causing the issue.
All best,
L= eonard

O= n 17 September 2015 at 08:26, Nicolas Goaziou <mail@nicolasgoaziou.fr= > wrote:
Hello,

Leonard Randall <leonard.= a.randall@gmail.com> writes:

> I noticed 2 more issues with the include function on latex export.

I cannot reproduce any of these. Could you upgrade Org and try again= ?

> 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:=C2=A0 =C2=A0 =C2=A0 =C2=A0beb44a5e-fc8b-4597-8dc1-0fb0a6d3a346 > :END:
> --- ---
>
> 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.

I get

=C2=A0 \section{Headline 4}
=C2=A0 \label{sec:orgheadline2}
=C2=A0 I develop this point in \ref{sec:orgheadline1}.
=C2=A0 \section{Headline 6.2}
=C2=A0 \label{sec:orgheadline1}

> The second problem is that if the include function is narrowed to a > specific headline using a custom id, and there are footnotes defined a= t the
> very bottom of that headline, the final footnote in the section will n= ot
> 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..He= re is
> some more text.
> ...
> \end document

I get

=C2=A0 \section{Chapter 1 Title}
=C2=A0 \label{sec:orgheadline1}
=C2=A0 Here is a some text with a footnote\footnote{Here is the definition.= }. Here is some more text.
=C2=A0 \ldots{}


Regards,

--
Nicolas Goaziou

--047d7b873ac2006876051feccf4f--