From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [ANN] Changes to lists Date: Sun, 30 Jan 2011 00:40:43 +0000 Message-ID: <878vy35ilw.fsf@ucl.ac.uk> References: <87k4hve0y7.wl%n.goaziou@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=37933 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjLLY-0006ez-H6 for emacs-orgmode@gnu.org; Sat, 29 Jan 2011 19:40:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjLLW-0007b2-IW for emacs-orgmode@gnu.org; Sat, 29 Jan 2011 19:40:52 -0500 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:57663) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjLLW-0007ax-8x for emacs-orgmode@gnu.org; Sat, 29 Jan 2011 19:40:50 -0500 In-Reply-To: <87k4hve0y7.wl%n.goaziou@gmail.com> (Nicolas Goaziou's message of "Sun, 23 Jan 2011 22:59:12 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Org Mode List 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.fraga@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)