all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xavier Garrido <xavier.garrido@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Enumeration within environment block
Date: Sat, 17 May 2014 21:24:05 +0200	[thread overview]
Message-ID: <5377B755.3030601@gmail.com> (raw)

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

             reply	other threads:[~2014-05-17 19:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-17 19:24 Xavier Garrido [this message]
2014-05-18 16:33 ` Enumeration within environment block Richard Lawrence
2014-05-19  8:21 ` Eric S Fraga

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5377B755.3030601@gmail.com \
    --to=xavier.garrido@gmail.com \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.