Titus von der Malsburg <[email protected]> writes:
> On 2017-02-03 Fri 12:40, Eric S Fraga wrote:
>> On Friday, 3 Feb 2017 at 11:37, Titus von der Malsburg wrote:
>>
>
>> [...]
>>
>>> For me and many others, this is a very common use case. I challenge you
>>> to implement this with current Org such that it will export correctly to
>>> HTML and PDF. If I’m not mistaken, this is non-trivial. If there is no
>>
>> #+begin_src org
>> Sensation, perception, and memory are of particular
>> interest to which group of contemporary psychologists?
>>
>> 1. psychoanalysts
>> 2. behaviorists
>> 3. humanistic psychologists
>> 4. <<answer>> cognitive psychologists
>>
>> The correct answer is [[answer]] because
>> #+end_src
>>
>> does the job for both LaTeX and HTML although with a number in this
>> case. I have not tried with alphabetical enumeration.
>
> This is nice, but letters are conventionally used in many contexts and I
> think making it work with letters is much harder.
You could use this:
#+html_head: <style>ol {list-style-type: lower-latin;}</style>
#+latex_header: \renewcommand{\theenumi}{\alph{enumi}}
The answer link would render wrongly in html, though. I'm don't know if
there's an easy way to get the correct "label" for a list item with
html/js.
Rasmus
--
Slaa Patienten ihjel, saa siger Feberen Pas