* LaTeX exporter #+INCLUDE bug
@ 2010-12-20 19:12 Rasmus
2011-01-09 14:02 ` David Maus
2011-02-12 15:02 ` Bastien
0 siblings, 2 replies; 5+ messages in thread
From: Rasmus @ 2010-12-20 19:12 UTC (permalink / raw)
To: emacs-orgmode
Hi,
I think there might be a bug when using #+INCLUDE and the LaTeX exporter. The
content of the included file is exported twice, although slightly different in
each case. I experience this when I include org-files starting with a headline,
i.e. "*".
I use Org-mode 7.4 with GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+
Version 2.22.1)
The following example illustrates the problem. Note, the problem does not exist
when using the HTML exporter.
$ cat main.org
#+INCLUDE: "included.org" org
$ cat included.org
* CDs
- Neil Young
$ tail -n 16 main.tex
\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
* CDs
\begin{itemize}
\item Neil Young
\end{itemize}
\section{CDs}
\label{sec-1}
\begin{itemize}
\item Neil Young
\end{itemize}
\end{document}
Thanks,
Rasmus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LaTeX exporter #+INCLUDE bug
2010-12-20 19:12 LaTeX exporter #+INCLUDE bug Rasmus
@ 2011-01-09 14:02 ` David Maus
2011-01-13 12:14 ` Carsten Dominik
2011-02-12 15:02 ` Bastien
1 sibling, 1 reply; 5+ messages in thread
From: David Maus @ 2011-01-09 14:02 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 699 bytes --]
At Mon, 20 Dec 2010 19:12:33 +0000 (UTC),
Rasmus wrote:
>
> Hi,
> I think there might be a bug when using #+INCLUDE and the LaTeX exporter. The
> content of the included file is exported twice, although slightly different in
> each case. I experience this when I include org-files starting with a headline,
> i.e. "*".
>
> I use Org-mode 7.4 with GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+
> Version 2.22.1)
I can confirm this with
Org-mode version 7.4 (release_7.4.135.g84087)
GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
of 2010-12-11 on raven, modified by Debian
Best,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LaTeX exporter #+INCLUDE bug
2011-01-09 14:02 ` David Maus
@ 2011-01-13 12:14 ` Carsten Dominik
2011-01-15 13:52 ` Rasmus Pank Roulund
0 siblings, 1 reply; 5+ messages in thread
From: Carsten Dominik @ 2011-01-13 12:14 UTC (permalink / raw)
To: David Maus; +Cc: emacs-orgmode, Rasmus
On Jan 9, 2011, at 3:02 PM, David Maus wrote:
> At Mon, 20 Dec 2010 19:12:33 +0000 (UTC),
> Rasmus wrote:
>>
>> Hi,
>> I think there might be a bug when using #+INCLUDE and the LaTeX
>> exporter. The
>> content of the included file is exported twice, although slightly
>> different in
>> each case. I experience this when I include org-files starting with
>> a headline,
>> i.e. "*".
>>
>> I use Org-mode 7.4 with GNU Emacs 24.0.50.1 (x86_64-unknown-linux-
>> gnu, GTK+
>> Version 2.22.1)
>
> I can confirm this with
>
> Org-mode version 7.4 (release_7.4.135.g84087)
>
> GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
> of 2010-12-11 on raven, modified by Debian
Yes. This is a bug and a bit hard to fix.
I only happens if the #+include line is before the
first headline in the buffer.
I am afraid I do not have a simple solution.
- Carsten
>
> Best,
> -- David
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber.... dmjena@jabber.org
> Email..... dmaus@ictsoc.de
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LaTeX exporter #+INCLUDE bug
2011-01-13 12:14 ` Carsten Dominik
@ 2011-01-15 13:52 ` Rasmus Pank Roulund
0 siblings, 0 replies; 5+ messages in thread
From: Rasmus Pank Roulund @ 2011-01-15 13:52 UTC (permalink / raw)
To: carsten.dominik; +Cc: dmaus, emacs-orgmode
> Yes. This is a bug and a bit hard to fix.
> I only happens if the #+include line is before the
> first headline in the buffer.
>
> I am afraid I do not have a simple solution.
It is fairly simple to make a work-around:
,----
| * THIS IS A BUGFIX
:noexport:
| #+INCLUDE: cd.org
| #+INCLUDE: books.org
| #+INCLUDE: misc.org
`----
Cheers,
Rasmus
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: LaTeX exporter #+INCLUDE bug
2010-12-20 19:12 LaTeX exporter #+INCLUDE bug Rasmus
2011-01-09 14:02 ` David Maus
@ 2011-02-12 15:02 ` Bastien
1 sibling, 0 replies; 5+ messages in thread
From: Bastien @ 2011-02-12 15:02 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
Hi Rasmus,
Rasmus <rasmus.pank@gmail.com> writes:
> I think there might be a bug when using #+INCLUDE and the LaTeX exporter. The
> content of the included file is exported twice, although slightly different in
> each case. I experience this when I include org-files starting with a headline,
> i.e. "*".
Fixed, thanks for reporting this.
--
Bastien
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-02-12 15:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-20 19:12 LaTeX exporter #+INCLUDE bug Rasmus
2011-01-09 14:02 ` David Maus
2011-01-13 12:14 ` Carsten Dominik
2011-01-15 13:52 ` Rasmus Pank Roulund
2011-02-12 15:02 ` Bastien
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).