emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] code blocks inside enumerations


From: Alan Schmitt
Subject: Re: [O] code blocks inside enumerations
Date: Fri, 31 Jan 2014 15:06:47 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

I dug a little deeper and found the answer: I need to indent the source
block.

Alan Schmitt <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]