From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: code blocks inside enumerations Date: Fri, 31 Jan 2014 15:06:47 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40905) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9EkL-0003lU-5Y for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 09:07:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W9Ek8-0002dM-Mm for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 09:07:05 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:57837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W9Ek8-0002dG-G8 for emacs-orgmode@gnu.org; Fri, 31 Jan 2014 09:06:52 -0500 In-Reply-To: (Alan Schmitt's message of "Fri, 31 Jan 2014 15:01:46 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode I dug a little deeper and found the answer: I need to indent the source block. Alan Schmitt writes: > Hello, > > I'm writing a series of exercises where I need to write some code in the > middle of an enumeration. Unfortunately the following does not work: > > 1. This is how one write an empty list > > #+BEGIN_SRC emacs-lisp > nil > #+END_SRC > > 2. And this is a second item > > When I export this, the source block is interpreted as closing the > enumerate environment. This works: --8<---------------cut here---------------start------------->8--- 1. This is how one write an empty list #+BEGIN_SRC emacs-lisp nil #+END_SRC 2. And this is a second item --8<---------------cut here---------------end--------------->8--- Sorry for the noise, Alan