* 2 issues with Include function
@ 2015-09-14 18:41 Leonard Randall
2015-09-17 7:26 ` Nicolas Goaziou
0 siblings, 1 reply; 3+ messages in thread
From: Leonard Randall @ 2015-09-14 18:41 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1508 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1935 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2 issues with Include function
2015-09-14 18:41 2 issues with Include function Leonard Randall
@ 2015-09-17 7:26 ` Nicolas Goaziou
2015-09-17 8:00 ` Leonard Randall
0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2015-09-17 7:26 UTC (permalink / raw)
To: Leonard Randall; +Cc: emacs-orgmode
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: 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2 issues with Include function
2015-09-17 7:26 ` Nicolas Goaziou
@ 2015-09-17 8:00 ` Leonard Randall
0 siblings, 0 replies; 3+ messages in thread
From: Leonard Randall @ 2015-09-17 8:00 UTC (permalink / raw)
To: Leonard Randall, emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 2427 bytes --]
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 <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: 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
>
[-- Attachment #2: Type: text/html, Size: 3373 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-17 8:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-14 18:41 2 issues with Include function Leonard Randall
2015-09-17 7:26 ` Nicolas Goaziou
2015-09-17 8:00 ` Leonard Randall
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).