From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: [ANN] Changes to lists Date: Sun, 06 Feb 2011 15:34:21 +0000 Message-ID: <874o8hrxc2.fsf@ucl.ac.uk> References: <87k4hve0y7.wl%n.goaziou@gmail.com> <878vy35ilw.fsf@ucl.ac.uk> <87ipx2o1va.wl%n.goaziou@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=46193 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pm6dA-0005I9-Cq for emacs-orgmode@gnu.org; Sun, 06 Feb 2011 10:34:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pm6d8-0003Gy-Q0 for emacs-orgmode@gnu.org; Sun, 06 Feb 2011 10:34:28 -0500 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:57046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pm6d8-0003Gd-LA for emacs-orgmode@gnu.org; Sun, 06 Feb 2011 10:34:26 -0500 In-Reply-To: <87ipx2o1va.wl%n.goaziou@gmail.com> (Nicolas Goaziou's message of "Wed, 02 Feb 2011 17:08:41 +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 --=-=-= Content-Type: text/plain Nicolas Goaziou writes: [...] > Normally, lists should not pay attention to anything inside blocks so > I highly doubt it is related to indentation of code. The on-going saga of lists and blocks! Sorry about this... Attached is a simple org file which includes latex, html and babel source code blocks: --=-=-= Content-Type: text/orgmode Content-Disposition: inline; filename=examplebug.org Content-Description: example list with blocks # -*- coding: utf-8; -*- #+TITLE: examplebug.org #+AUTHOR: Eric S Fraga #+EMAIL: e.fraga@ucl.ac.uk #+OPTIONS: H:3 num:nil 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:nil #+latex_header: \usepackage{tikz} * latex code block within list 1. I have a list 2. with several items 3. and then one of them includes some latex: #+begin_latex \begin{tikzpicture}[x=2cm,y=2cm] \draw [red] (0,0) -- (2,2); \end{tikzpicture} #+end_latex 4. subsequent list items start a new list 5. if we include some html #+begin_html Mixed integer programming #+end_html 6. that works fine. 7. if we include a babel code block #+begin_src octave :exports code :var x=20 3*x+5 #+end_src #+results: : 65 8. that also works just fine. --=-=-= Content-Type: text/plain The latter two do not cause any problems with an enumerated list; the first does unfortunately. I've attached the resulting latex file as well. --=-=-= Content-Type: text/x-tex Content-Disposition: inline; filename=examplebug.tex Content-Description: latex code generated by org export % Created 2011-02-06 Sun 15:29 \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{soul} \usepackage{textcomp} \usepackage{marvosym} \usepackage[integrals]{wasysym} \usepackage{latexsym} \usepackage{amssymb} \usepackage{hyperref} \tolerance=1000 \usepackage{xcolor} \usepackage{listings} \usepackage{amsmath} \usepackage{tikz} \providecommand{\alert}[1]{\textbf{#1}} \begin{document} \title{examplebug.org} \author{Eric S Fraga} \date{06 February 2011} \maketitle \section*{latex code block within list} \label{sec-1} \begin{enumerate} \item I have a list \item with several items \item and then one of them includes some latex: \end{enumerate} \begin{tikzpicture}[x=2cm,y=2cm] \draw [red] (0,0) -- (2,2); \end{tikzpicture} \begin{enumerate} \item subsequent list items start a new list \item if we include some html \item that works fine. \item if we include a babel code block \lstset{language=octave} \begin{lstlisting} 3*x+5 \end{lstlisting} \item that also works just fine. \end{enumerate} \end{document} --=-=-= Content-Type: text/plain Any suggestions? I cannot see why latex, html and babel should be handled any differently... I guess I could move from using begin_latex to "begin_src latex" instead? Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.317.gca220.dirty) --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=--