From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Stephen J. Barr" Subject: Re: Is it possible to have a code fragment in a bulleted list? Date: Mon, 9 Jan 2012 21:53:07 -0500 Message-ID: References: <87ty45s5zm.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkRq7-0000SY-0y for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 21:53:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkRq6-0002EZ-1R for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 21:53:30 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:40800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkRq5-0002EV-OM for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 21:53:30 -0500 Received: by werf1 with SMTP id f1so4114159wer.0 for ; Mon, 09 Jan 2012 18:53:28 -0800 (PST) In-Reply-To: <87ty45s5zm.fsf@gmail.com> 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Thank you for the suggestion. I'll take a look at it. On Mon, Jan 9, 2012 at 2:13 AM, Nicolas Goaziou wrote= : > Hello, > > "Stephen J. Barr" 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 >> =C2=A0 - Level 2 for loop >> >> #+begin_src R >> for (i in 1:10) { >> =C2=A0 =C2=A0 ... >> } >> #+end_src >> >> =C2=A0 - 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