emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Comments break lists when exporting to TeX


From: Daniel Schoepe
Subject: [O] Comments break lists when exporting to TeX
Date: Tue, 22 May 2012 19:05:30 +0200
User-agent: Notmuch/0.12+112~gcb5e016 (http://notmuchmail.org) Emacs/24.0.95.1 (x86_64-pc-linux-gnu)

Hi,

while trying to include a source file in a list element via #+INCLUDE, I
discovered the following behavior: A comment between two list elements breaks
the list into two lists when exporting. For example:

* Test
  - This is a list element.
# This isn't.
  - This is another list element.

Becomes after exporting to .tex:

..
\begin{itemize}
\item This is a list element.
\end{itemize}
\begin{itemize}
\item This is another list element.
\end{itemize}
..

I think it makes sense for comments to have no effect on this (i.e. it
should behave the same during export as if it wasn't there), so I
consider this a bug.

This has the unfortunate side effect of no longer being able to include
a source file using #+INCLUDE while preserving its indentation in the
resulting PDF (as using #+BEGIN_SRC .. #+END_SRC would).

Cheers,
Daniel

Attachment: pgppXlFV0B9zc.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]