Nicolas,

a possible bug with respect to export to latex of lists which contain
babel code.  The following example:

--8<---------------cut here---------------start------------->8---
# -*- coding: utf-8; -*-
#+TITLE:     examplebug.org
#+AUTHOR:    Eric S Fraga
#+EMAIL:     e.fr...@ucl.ac.uk
#+OPTIONS:   H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc

* babel results overwrite following text 

  1. start an item so that following is indented:

     #+begin_src octave :var x=10
3*x+5
     #+end_src

     #+results:
     : 35

  2. a second item starts here
--8<---------------cut here---------------end--------------->8---

with or without the "3*x+5" indented to line up with the # on the lines
before and after, generates the following latex code snippet:

--8<---------------cut here---------------start------------->8---
\begin{enumerate}
\item start an item so that following is indented:

\lstset{language=octave}
\begin{lstlisting}
     3*x+5
\end{lstlisting}
\end{enumerate}
\begin{enumerate}
\item a second item starts here
\end{enumerate}
--8<---------------cut here---------------end--------------->8---

Note the ending and immediate starting of an enumerate environment after
the listing corresponding to the babel octave code.

By the way, although a fix that required the babel code to be indented
to the same level as the meta statements would be satisfactory, a
solution that allowed code within the block to be indented to any
position would be more welcome.  Code written in the mode associated
with the particular language will often be automatically indented...

Thanks,
eric
-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.260.gba0f6.dirty)

_______________________________________________
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

Reply via email to