[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Is it possible to have a code fragment in a bulleted list?
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Is it possible to have a code fragment in a bulleted list? |
Date: |
Mon, 09 Jan 2012 08:13:49 +0100 |
Hello,
"Stephen J. Barr" <address@hidden> writes:
> Quick question. Is it possible to have a code fragment in a bulleted
> list? For example, I would like to do
>
> - This is interesting
> - Level 2 for loop
>
> #+begin_src R
> for (i in 1:10) {
> ...
> }
> #+end_src
>
> - This should also be on level 2
>
> When I render this as HTML, the sentences "Level 2 for loop" and "This
> should also be on level 2" to be at the same depth, with the source
> code block in the middle. How do I do this?
You have to indent your whole code block so that it belongs to the list.
In other words, the "#+begin_src" line has to start at the "L" of "Level
2".
You may want to read the section 2.7 of the manual for more information.
Regards,
--
Nicolas Goaziou