From: Nicolas Goaziou <n.goaziou@gmail.com>
To: "Stephen J. Barr" <stephenjbarr@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Is it possible to have a code fragment in a bulleted list?
Date: Mon, 09 Jan 2012 08:13:49 +0100 [thread overview]
Message-ID: <87ty45s5zm.fsf@gmail.com> (raw)
In-Reply-To: <CAAetZUQXko+6LHwMWD605KD-YVMXiTuJHhZRwcZ=3ammH+60uQ@mail.gmail.com> (Stephen J. Barr's message of "Sun, 8 Jan 2012 20:07:41 -0500")
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
next prev parent reply other threads:[~2012-01-09 7:15 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 [this message]
2012-01-10 2:53 ` Stephen J. Barr
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=87ty45s5zm.fsf@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=stephenjbarr@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).