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