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, 06 Feb 2011 15:34:21 +0000	[thread overview]
Message-ID: <874o8hrxc2.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87ipx2o1va.wl%n.goaziou@gmail.com> (Nicolas Goaziou's message of "Wed, 02 Feb 2011 17:08:41 +0100")

[-- Attachment #1: Type: text/plain, Size: 331 bytes --]

Nicolas Goaziou <n.goaziou@gmail.com> 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:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: example list with blocks --]
[-- Type: text/orgmode, Size: 870 bytes --]

# -*- 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
<img src="mip.png" alt="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.



[-- Attachment #3: Type: text/plain, Size: 147 bytes --]


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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #4: latex code generated by org export --]
[-- Type: text/x-tex, Size: 1164 bytes --]

% 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}

[-- Attachment #5: Type: text/plain, Size: 312 bytes --]



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)

[-- Attachment #6: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

  parent reply	other threads:[~2011-02-06 15:34 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
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 [this message]
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=874o8hrxc2.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).