emacs-orgmode
[Top][All Lists]
Advanced

[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: Stephen J. Barr
Subject: Re: [O] Is it possible to have a code fragment in a bulleted list?
Date: Mon, 9 Jan 2012 21:53:07 -0500

Thank you for the suggestion. I'll take a look at it.

On Mon, Jan 9, 2012 at 2:13 AM, Nicolas Goaziou <address@hidden> wrote:
> 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



reply via email to

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