emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [ANN] Changes to lists


From: Eric S Fraga
Subject: Re: [Orgmode] [ANN] Changes to lists
Date: Sun, 30 Jan 2011 00:40:43 +0000
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

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:     address@hidden
#+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)



reply via email to

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