emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Stephen J. Barr" <stephenjbarr@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Is it possible to have a code fragment in a bulleted list?
Date: Mon, 9 Jan 2012 21:53:07 -0500	[thread overview]
Message-ID: <CAAetZUTFthQR2znxTTTTchb1aj0_0bttO_AoG0t-eJKsQMPoNQ@mail.gmail.com> (raw)
In-Reply-To: <87ty45s5zm.fsf@gmail.com>

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

On Mon, Jan 9, 2012 at 2:13 AM, Nicolas Goaziou <n.goaziou@gmail.com> wrote:
> Hello,
>
> "Stephen J. Barr" <stephenjbarr@gmail.com> 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	other threads:[~2012-01-10  2:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-09  1:07 Is it possible to have a code fragment in a bulleted list? Stephen J. Barr
2012-01-09  7:13 ` Nicolas Goaziou
2012-01-10  2:53   ` Stephen J. Barr [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAetZUTFthQR2znxTTTTchb1aj0_0bttO_AoG0t-eJKsQMPoNQ@mail.gmail.com \
    --to=stephenjbarr@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).