From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Garrido Subject: Enumeration within environment block Date: Sat, 17 May 2014 21:24:05 +0200 Message-ID: <5377B755.3030601@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlkDR-0006PS-Tx for emacs-orgmode@gnu.org; Sat, 17 May 2014 15:24:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WlkDI-0005fM-UE for emacs-orgmode@gnu.org; Sat, 17 May 2014 15:24:17 -0400 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:46193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WlkDI-0005f8-Nd for emacs-orgmode@gnu.org; Sat, 17 May 2014 15:24:08 -0400 Received: by mail-we0-f169.google.com with SMTP id u56so3962920wes.28 for ; Sat, 17 May 2014 12:24:07 -0700 (PDT) Received: from [192.168.1.41] (180.58.67.86.rev.sfr.net. [86.67.58.180]) by mx.google.com with ESMTPSA id h3sm5258708wiz.16.2014.05.17.12.24.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 17 May 2014 12:24:07 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" Dear orgers, I am using org-mode to write teaching class corrections in order to get them properly exported in pdf and html. What I would like to do is to insert not only the answer but also the questions. So, I have created a "question" environment as shown below #+BEGIN_SRC org #+TITLE: Question Test #+BEGIN_QUESTION 1) Question bla bla bla bla #+END_QUESTION The answer to this question is ... #+BEGIN_QUESTION 2) Question bla bla bla #+END_QUESTION The answer to this second question is... #+END_SRC The problem is that the enumeration number gets lost either in the =enumerate= env. in LaTeX or the =ol= tags in html and thus question restart to number 1 every time I have a BEGIN_QUESTION/END_QUESTION block. Is there a way to solve that issue or at least to force the item number ? (for instance, in LaTeX I can write \item[1],\item[2] and in html I can set the =ol= start value). Thanks in advance, Xavier