From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Feature request: lists with letters Date: Mon, 06 Feb 2017 16:34:28 +0100 Message-ID: <874m0772pn.fsf@gmx.us> References: <1622a63fda844eb1aa553fdcd19a5758@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87d1ezwiq0.fsf@pinto.chemeng.ucl.ac.uk> <87efzfbd47.fsf@posteo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1calJQ-0008Qd-Mc for emacs-orgmode@gnu.org; Mon, 06 Feb 2017 10:34:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1calJN-0001RO-HB for emacs-orgmode@gnu.org; Mon, 06 Feb 2017 10:34:40 -0500 Received: from [195.159.176.226] (port=37772 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1calJN-0001Qw-B4 for emacs-orgmode@gnu.org; Mon, 06 Feb 2017 10:34:37 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1calJE-0007Sh-Be for emacs-orgmode@gnu.org; Mon, 06 Feb 2017 16:34:28 +0100 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" To: emacs-orgmode@gnu.org Titus von der Malsburg 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. <> 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: #+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