emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Andrei Jirnyi <a-jirnyi@northwestern.edu>
Cc: emacs-orgmode@gnu.org
Subject: Re: Examples in numbered lists
Date: Thu, 26 Aug 2010 23:56:50 +0200	[thread overview]
Message-ID: <87wrrd6nrx.wl%n.goaziou@gmail.com> (raw)
In-Reply-To: <i5644f$9l$3@dough.gmane.org>

Hello,
>>>>> Andrei Jirnyi writes:

> Is there any way to make a numbered list preserve its' numbering
> when there are intervening code or example blocks? For example, if I
> have smth like this: * testing auto numbering 1. First do
> something #+begin_example here is an example how to do
> something #+end_example 2. Then do something else

> and try to export, it will give me number (1.) for both items. Also
> if I press M-RET on the last line, it will be re-numbered as 1.

> Is there any way to avoid this?


Indent your list like this:

* testing auto numbering
1. First do something
   #+begin_example
   here is an example how to do something
   #+end_example
2. Then do something else


Regards,

-- Nicolas

      parent reply	other threads:[~2010-08-26 21:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-26 16:18 Examples in numbered lists Andrei Jirnyi
2010-08-26 17:26 ` Neil Hepburn
2010-08-26 21:56 ` Nicolas Goaziou [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=87wrrd6nrx.wl%n.goaziou@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=a-jirnyi@northwestern.edu \
    --cc=emacs-orgmode@gnu.org \
    /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).