Xavier Garrido xavier.garr...@gmail.com writes:
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,\item
and in html I can set the =ol= start value).
I don't have any real advice for HTML (CSS counters??) but there are
some solutions that exist in the LaTeX world for cumulative numbering
The solutions I am most familiar with are the linguex, gb4e, and
philex packages. (These are packages for linguists, who often need a
running set of examples with text in between -- though they also have
linguistics-specific stuff that you probably don't need.)
There is also the enumitem package. I don't have much experience
with this but it may work for you.
I wrote a custom exporter for Org that adds support for exporting Org
lists to the numbered example environments used by linguex and gb4e. It
is called ox-linguistics and is posted on Github. If you like the
solution provided by linguex or gb4e at the LaTeX level, this would
allow you to access it from Org, without having to write embedded LaTeX.
It also lets you refer back to examples (questions, in your case) using
Org targets and links.
ox-linguistics is still alpha-quality and I may make some significant
changes to it soon, but I have been using it for a while now to compile
my dissertation, and it's been meeting my needs pretty well. Let me
know what you think.