emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: [ANN] Changes to lists
Date: Sun, 30 Jan 2011 00:40:43 +0000	[thread overview]
Message-ID: <878vy35ilw.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87k4hve0y7.wl%n.goaziou@gmail.com> (Nicolas Goaziou's message of "Sun, 23 Jan 2011 22:59:12 +0100")

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)

  parent reply	other threads:[~2011-01-30  0:40 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-23 21:59 [ANN] Changes to lists Nicolas Goaziou
2011-01-24  7:01 ` Nicolas Goaziou
2011-01-24  7:50 ` Carsten Dominik
2011-01-24 16:47   ` Nicolas Goaziou
2011-01-24 18:38     ` Bernt Hansen
2011-01-24 20:09       ` Nicolas Goaziou
2011-02-28 15:27   ` Sébastien Vauban
2011-01-24 18:03 ` Achim Gratz
2011-01-24 18:21   ` Nicolas Goaziou
2011-01-24 19:23     ` Achim Gratz
2011-01-24 20:25       ` Nicolas Goaziou
2011-01-24 21:31 ` Samuel Wales
2011-01-24 21:35   ` Samuel Wales
2011-01-24 22:10   ` Nicolas Goaziou
2011-02-10 22:18   ` Nicolas Goaziou
2011-02-12  0:42     ` Samuel Wales
2011-02-12 11:28       ` Nicolas Goaziou
2011-01-26 15:15 ` Karl Maihofer
2011-01-27 18:37   ` Nicolas Goaziou
2011-01-28  9:41     ` Karl Maihofer
2011-01-28 10:40       ` Karl Maihofer
2011-02-02 17:09         ` Nicolas Goaziou
2011-02-02 17:08       ` Nicolas Goaziou
2011-02-08 11:47         ` Karl Maihofer
2011-02-08 20:09           ` Nicolas Goaziou
2011-01-27 18:59 ` Achim Gratz
2011-01-27 20:39   ` Nicolas Goaziou
2011-01-28 21:28     ` Achim Gratz
2011-01-29 17:26       ` Nicolas Goaziou
2011-01-29 22:04         ` Achim Gratz
2011-02-02 15:48           ` Nicolas Goaziou
2011-02-02 17:32             ` Achim Gratz
2011-01-30 16:19     ` David Maus
2011-02-06 16:35       ` Nicolas Goaziou
2011-02-09 18:33         ` Achim Gratz
2011-02-09 19:15           ` Nicolas Goaziou
2011-02-09 19:47             ` Achim Gratz
2011-02-09 22:36               ` Nicolas Goaziou
2011-02-10 17:53                 ` Achim Gratz
2011-02-09 18:43   ` Achim Gratz
2011-01-30  0:40 ` Eric S Fraga [this message]
2011-01-30  0:44   ` Eric S Fraga
2011-02-02 16:08   ` Nicolas Goaziou
2011-02-02 20:35     ` Eric S Fraga
2011-02-02 22:14     ` Eric S Fraga
2011-02-06 15:34     ` Eric S Fraga
2011-02-06 16:24       ` Nicolas Goaziou
2011-02-06 19:02         ` Eric S Fraga
2011-02-06 19:12           ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vy35ilw.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).