emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Feature request: lists with letters


From: Rasmus
Subject: Re: [O] Feature request: lists with letters
Date: Mon, 06 Feb 2017 16:34:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Titus von der Malsburg <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]