From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Hepburn Subject: Re: Examples in numbered lists Date: Thu, 26 Aug 2010 11:26:47 -0600 Message-ID: <05FEC053-4942-4717-99E2-9EB616C39E8A@ualberta.ca> References: Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=55864 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OogE3-0002Ix-9j for emacs-orgmode@gnu.org; Thu, 26 Aug 2010 13:26:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OogDy-0005QP-4i for emacs-orgmode@gnu.org; Thu, 26 Aug 2010 13:26:55 -0400 Received: from smtp.srv.ualberta.ca ([129.128.5.19]:55512 helo=mail4.srv.ualberta.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OogDx-0005QB-TX for emacs-orgmode@gnu.org; Thu, 26 Aug 2010 13:26:50 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andrei Jirnyi Cc: emacs-orgmode@gnu.org you could revert to raw latex code in your document and use = \begin{enumerate}..\end{enumerate} with something like this: * testing auto numbering \begin{enumerate} \item First do something #+begin_example here is an example how to do something #+end_example \item Then do something else \end{enumerate} It's not as elegant as the org-mode approach but it works. -Neil On 2010-08-26, at 10:18 AM, Andrei Jirnyi wrote: > Hi -- >=20 > Is there any way to make a numbered list preserve its' numbering when=20= > there are intervening code or example blocks? For example, if I have = smth=20 > 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 >=20 > and try to export, it will give me number (1.) for both items. Also if = I=20 > press M-RET on the last line, it will be re-numbered as 1. >=20 > Is there any way to avoid this? >=20 > --aj >=20 >=20 > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >=20