[Orgmode] Examples in numbered lists
Hi -- 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? --aj ___ 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
Re: [Orgmode] Examples in numbered lists
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 -- 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? --aj ___ 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 ___ 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
Re: [Orgmode] Examples in numbered lists
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 ___ 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