From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Feature request: lists with letters Date: Mon, 13 Feb 2017 11:51:45 +0100 Message-ID: <8760kepdml.fsf@gmx.us> References: <1622a63fda844eb1aa553fdcd19a5758@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <87d1ezwiq0.fsf@pinto.chemeng.ucl.ac.uk> <87efzfbd47.fsf@posteo.de> <874m0772pn.fsf@gmx.us> <87mvdzm6o7.fsf@posteo.de> <87y3xfn243.fsf@gmx.us> <87r336mhvy.fsf@posteo.de> <87mvdtr098.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cdEEj-0003kW-2t for emacs-orgmode@gnu.org; Mon, 13 Feb 2017 05:52:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cdEEg-000898-0z for emacs-orgmode@gnu.org; Mon, 13 Feb 2017 05:52:01 -0500 Received: from [195.159.176.226] (port=47064 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cdEEf-00088p-Pk for emacs-orgmode@gnu.org; Mon, 13 Feb 2017 05:51:57 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cdEEW-0006FS-1Q for emacs-orgmode@gnu.org; Mon, 13 Feb 2017 11:51:48 +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 Hi, > #+attr_html: some clever code which I don't know. Probably `org-html-begin-plain-list' would need to patched to accept :class or :style. In general it might be nicer to accept those in more places. Then one could do either "#+attr_html: :class alpha" (with corresponding css) or "#+attr_html: :style list-style-type: lower-alpha;". For html in particular, one would need to change the reference label in the output to match the type of the list. E.g. if <> is an lower-alpha type the textContent of [[ref]] must be adjusted. This is just how html is. JS could solve it at display-time, of one could use a filter to add the right label (shouldn't be too hard as the item element already have a :bullet in the plist). One could also use a prep. filter to add the correct #+attr_ lines at the necessary places. IOW the problems are all fairly easy to deal with once we've added :style and :class support to more places in ox-html. Rasmus -- Dobbelt-A