From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Bach Subject: org-list-allow-alphabetical LaTeX export Date: Thu, 6 Jun 2013 10:20:49 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e012945b0f4271804de77fd28 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkVRI-0003QW-9D for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 04:21:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkVRD-0008EJ-4d for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 04:20:56 -0400 Received: from mail-vb0-x235.google.com ([2607:f8b0:400c:c02::235]:59616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkVRC-0008E3-Ff for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 04:20:50 -0400 Received: by mail-vb0-f53.google.com with SMTP id p12so1714770vbe.26 for ; Thu, 06 Jun 2013 01:20:50 -0700 (PDT) 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --089e012945b0f4271804de77fd28 Content-Type: text/plain; charset=ISO-8859-1 The LaTeX exporter does not honor the setting of org-list-allow-alphabetical. It exports ordered alphabetical list as standard enumerate environment with numbered items. org-mode 8.0.3 I placed the setq before loading ox-latex. I read in the docstring that org-list-allow-alphabetical should be set before org.el is loaded. I installed org-plus-contrib from ELPA and thus do not manually load org.el. I found a post on this ml [1] on a related issue where the OP states that doing the setq before loading the exporter solved his issue. [1] https://lists.gnu.org/archive/html/emacs-orgmode/2013-04/msg01843.html --089e012945b0f4271804de77fd28 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
The LaTeX exporter does not honor the setting of org-= list-allow-alphabetical. =A0It exports ordered alphabetical list as standar= d enumerate environment with numbered items.

org-m= ode 8.0.3

I placed the setq before loading ox-latex. =A0I read in= the docstring that org-list-allow-alphabetical should be set before org.el= is loaded. =A0I installed org-plus-contrib from ELPA and thus do not manua= lly load org.el.

I found a post on this ml [1] on a related issue where = the OP states that doing the setq before loading the exporter solved his is= sue.


--089e012945b0f4271804de77fd28-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-list-allow-alphabetical LaTeX export Date: Thu, 6 Jun 2013 10:52:32 +0200 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_CEA679F8-BD1E-4CAD-A6B7-2215F871DB86" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkVw1-0003Tg-Sf for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 04:52:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkVvu-00023H-AN for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 04:52:41 -0400 Received: from ezel.ic.uva.nl ([146.50.108.158]:43504) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkVvu-000231-05 for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 04:52:34 -0400 In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Bach Cc: emacs-orgmode@gnu.org --Apple-Mail=_CEA679F8-BD1E-4CAD-A6B7-2215F871DB86 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On 6 jun. 2013, at 10:20, Michael Bach wrote: > The LaTeX exporter does not honor the setting of = org-list-allow-alphabetical. =20 I think it never did. Such a list is just an ordered list for export, = the bullet type is just visual sugar in the Org buffer. To force a special bulllet type, you should use other means (literal = LaTeX). For example: --------------------------------------------------------------- * test 1. skfkshafkj 2. fkjshfksj #+LaTeX: {\renewcommand{\theenumi}{\alph{enumi}} 1. kajsfkjhf 2. fjsfksjhf #+LaTeX: } 1. sss 2. ljhsdfkjh --------------------------------------------------------------- I hope this helps. - Carsten > It exports ordered alphabetical list as standard enumerate environment = with numbered items. >=20 > org-mode 8.0.3 >=20 > I placed the setq before loading ox-latex. I read in the docstring = that org-list-allow-alphabetical should be set before org.el is loaded. = I installed org-plus-contrib from ELPA and thus do not manually load = org.el. >=20 > I found a post on this ml [1] on a related issue where the OP states = that doing the setq before loading the exporter solved his issue. >=20 > [1] = https://lists.gnu.org/archive/html/emacs-orgmode/2013-04/msg01843.html >=20 --Apple-Mail=_CEA679F8-BD1E-4CAD-A6B7-2215F871DB86 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 phaebz@gmail.com> = wrote:
The LaTeX exporter does not honor = the setting of org-list-allow-alphabetical. =  

I think it never did. =  Such a list is just an ordered list for export, the bullet type is = just visual sugar in the Org buffer.
To force a special = bulllet type, you should use other means (literal LaTeX).  For = example:

----------------------------------------= -----------------------
* = test

1. skfkshafkj
2. = fkjshfksj

#+LaTeX: = {\renewcommand{\theenumi}{\alph{enumi}}

1. = kajsfkjhf
2. fjsfksjhf

#+LaTeX: = }

1. sss
2. = ljhsdfkjh
------------------------------------------------------= ---------

I hope this = helps.

- = Carsten


It exports ordered alphabetical list as standard = enumerate environment with numbered = items.

org-mode 8.0.3

I placed the setq before loading ox-latex.  I = read in the docstring that org-list-allow-alphabetical should be set = before org.el is loaded.  I installed org-plus-contrib from ELPA = and thus do not manually load org.el.

I found a post on this ml [1] on a related issue = where the OP states that doing the setq before loading the exporter = solved his issue.



= --Apple-Mail=_CEA679F8-BD1E-4CAD-A6B7-2215F871DB86-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Bach Subject: Re: org-list-allow-alphabetical LaTeX export Date: Thu, 6 Jun 2013 09:11:11 +0000 (UTC) Message-ID: References: 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]:51605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWEE-000290-IR for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:11:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkWED-0000Xk-EJ for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:11:30 -0400 Received: from plane.gmane.org ([80.91.229.3]:50830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWED-0000Xb-7R for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:11:29 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UkWEB-0006w7-9h for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 11:11:27 +0200 Received: from arcss01.ait.ac.at ([62.218.164.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Jun 2013 11:11:27 +0200 Received: from phaebz by arcss01.ait.ac.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Jun 2013 11:11:27 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Carsten Dominik gmail.com> writes: >> On 6 jun. 2013, at 10:20, Michael Bach gmail.com> wrote: >> The LaTeX exporter does not honor the setting of org-list-allow- alphabetical.   > > I think it never did.  Such a list is just an ordered list for export, the bullet type is just visual sugar in the Org buffer. > To force a special bulllet type, you should use other means (literal LaTeX).  For example: > > --------------------------------------------------------------- > > * test > > 1. skfkshafkj > 2. fkjshfksj > > #+LaTeX: {\renewcommand{\theenumi}{\alph{enumi}} > > 1. kajsfkjhf > 2. fjsfksjhf > > #+LaTeX: } > > 1. sss > 2. ljhsdfkjh > --------------------------------------------------------------- > Oh, I never saw it handled by the exporter, just a wrong assumption. Just out of curiosity, do you think this could be implemented 'easily'? Thanks for clarification and example. Michael From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-list-allow-alphabetical LaTeX export Date: Thu, 6 Jun 2013 11:17:35 +0200 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWKC-0003d3-UG for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:17:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkWKA-0002uu-CA for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:17:40 -0400 Received: from ezel.ic.uva.nl ([146.50.108.158]:44581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWKA-0002uN-2o for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:17:38 -0400 In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Bach Cc: emacs-orgmode@gnu.org On 6 jun. 2013, at 11:11, Michael Bach wrote: > Carsten Dominik gmail.com> writes: >=20 >>> On 6 jun. 2013, at 10:20, Michael Bach gmail.com> = wrote: >>> The LaTeX exporter does not honor the setting of org-list-allow- > alphabetical. =20 >>=20 >> I think it never did. Such a list is just an ordered list for = export, the=20 > bullet type is just visual sugar in the Org buffer. >> To force a special bulllet type, you should use other means (literal=20= > LaTeX). For example: >>=20 >> --------------------------------------------------------------- >>=20 >> * test >>=20 >> 1. skfkshafkj >> 2. fkjshfksj >>=20 >> #+LaTeX: {\renewcommand{\theenumi}{\alph{enumi}} >>=20 >> 1. kajsfkjhf >> 2. fjsfksjhf >>=20 >> #+LaTeX: } >>=20 >> 1. sss >> 2. ljhsdfkjh >> --------------------------------------------------------------- >>=20 >=20 > Oh, I never saw it handled by the exporter, just a wrong assumption. = Just=20 > out of curiosity, do you think this could be implemented 'easily'? I guess it could be - but I am not sure if it should. Conventions about = the type of bullet to be used in a document belong to the typesetting = side, and I rather establish a global setting for a document than follow = my momentary decisions when I write the Org-mode version of it. On a = similar vein, we do have lists starting with - and * and +, but we still = let LaTeX and HTML choose what to use as a bullet. To me this feels = like the right behavior. - Carsten >=20 > Thanks for clarification and example. >=20 > Michael >=20 >=20 >=20 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: org-list-allow-alphabetical LaTeX export Date: Thu, 6 Jun 2013 11:23:24 +0200 Message-ID: <20130606112324.24105d61@aga-netbook> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWPx-0005u6-7L for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:23:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkWPq-00050q-IR for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:23:37 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:54408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWPq-000503-Bj for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:23:30 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 35926419A1 for ; Thu, 6 Jun 2013 11:23:27 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4L-g2XD0p-72 for ; Thu, 6 Jun 2013 11:23:27 +0200 (CEST) Received: from aga-netbook (unknown [150.254.82.90]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 0C8ED42082 for ; Thu, 6 Jun 2013 11:23:26 +0200 (CEST) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dnia 2013-06-06, o godz. 09:11:11 Michael Bach napisa=C5=82(a): > Carsten Dominik gmail.com> writes: >=20 > >> On 6 jun. 2013, at 10:20, Michael Bach gmail.com> > >> wrote: The LaTeX exporter does not honor the setting of > >> org-list-allow- > alphabetical. =C2=A0 > >=20 > > I think it never did. =C2=A0Such a list is just an ordered list for > > export, the=20 > bullet type is just visual sugar in the Org buffer. > > To force a special bulllet type, you should use other means > > (literal=20 > LaTeX). =C2=A0For example: > >=20 > > --------------------------------------------------------------- > >=20 > > * test > >=20 > > 1. skfkshafkj > > 2. fkjshfksj > >=20 > > #+LaTeX: {\renewcommand{\theenumi}{\alph{enumi}} > >=20 > > 1. kajsfkjhf > > 2. fjsfksjhf > >=20 > > #+LaTeX: } > >=20 > > 1. sss > > 2. ljhsdfkjh > > --------------------------------------------------------------- > >=20 >=20 > Oh, I never saw it handled by the exporter, just a wrong assumption. > Just out of curiosity, do you think this could be implemented > 'easily'? If you mean "easily" on the LaTeX side, then yes, check out the "enumitem" package. Example: \documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label=3D{Item number \arabic*:}] \item First. \item Second. \end{enumerate} \end{document} But definitely check out the docs for that package, it is really good, and supports much more than this. > Thanks for clarification and example. >=20 > Michael Hth, --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Bach Subject: Re: org-list-allow-alphabetical LaTeX export Date: Thu, 6 Jun 2013 09:27:55 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWUQ-00085P-Ev for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:28:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkWUP-0006gS-ML for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:28:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:39246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWUP-0006gM-FW for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:28:13 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UkWUN-0005Xv-0t for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 11:28:11 +0200 Received: from arcss01.ait.ac.at ([62.218.164.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Jun 2013 11:28:11 +0200 Received: from phaebz by arcss01.ait.ac.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Jun 2013 11:28:11 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Carsten Dominik gmail.com> writes: > > Oh, I never saw it handled by the exporter, just a wrong assumption. Just > > out of curiosity, do you think this could be implemented 'easily'? > > I guess it could be - but I am not sure if it should. Conventions about the type of bullet to be used in a document > belong to the typesetting side, and I rather establish a global setting for a document than follow my > momentary decisions when I write the Org-mode version of it. On a similar vein, we do have lists starting > with - and * and +, but we still let LaTeX and HTML choose what to use as a bullet. To me this feels like the right behavior. Good point. The separation of typesetting and content is of course more reasonable than my lazyness. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Bach Subject: Re: org-list-allow-alphabetical LaTeX export Date: Thu, 6 Jun 2013 09:33:44 +0000 (UTC) Message-ID: References: <20130606112324.24105d61@aga-netbook> 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]:57654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWaD-0001wN-R7 for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:34:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkWa7-0000Z8-6c for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:34:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:60112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkWa7-0000Yv-0S for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 05:34:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UkWa0-0002Ma-Vy for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 11:34:01 +0200 Received: from arcss01.ait.ac.at ([62.218.164.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Jun 2013 11:34:00 +0200 Received: from phaebz by arcss01.ait.ac.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Jun 2013 11:34:00 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Marcin Borkowski wmi.amu.edu.pl> writes: > > Dnia 2013-06-06, o godz. 09:11:11 > Michael Bach gmail.com> napisał(a): > > > Oh, I never saw it handled by the exporter, just a wrong assumption. > > Just out of curiosity, do you think this could be implemented > > 'easily'? > > If you mean "easily" on the LaTeX side, then yes, check out the > "enumitem" package. Example: > Thanks for mentioning the package and example. I was talking about the Org- mode side though. > But definitely check out the docs for that package, it is really good, > and supports much more than this. > Looks nice, will have a look at it. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josiah Schwab Subject: Re: org-list-allow-alphabetical LaTeX export Date: Thu, 6 Jun 2013 10:39:55 -0700 Message-ID: <93BA1627-D7F6-4E96-9AFC-927A6F6C8C6E@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkeAL-0004DQ-7x for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 13:40:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkeAK-0008Ex-4a for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 13:40:01 -0400 Received: from mail-pd0-f169.google.com ([209.85.192.169]:43579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkeAJ-0008En-Ti for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 13:40:00 -0400 Received: by mail-pd0-f169.google.com with SMTP id y10so3672718pdj.14 for ; Thu, 06 Jun 2013 10:39:58 -0700 (PDT) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Michael Bach , Carsten Dominik > On 6 jun. 2013, at 10:20, Michael Bach gmail.com> wrote: >> The LaTeX exporter does not honor the setting of = org-list-allow-alphabetical. =20 A week or so ago I asked a similar question about the HTML export and = lists. http://lists.gnu.org/archive/html/emacs-orgmode/2013-05/msg01324.html So I just wanted to toss in my 2=A2. On Jun 6, 2013, at 2:17 AM, Carsten Dominik wrote: > Conventions about the type of bullet to be used in a document belong = to the typesetting side, and I rather establish a global setting for a = document than follow my momentary decisions when I write the Org-mode = version of it. On a similar vein, we do have lists starting with - and = * and +, but we still let LaTeX and HTML choose what to use as a bullet. = To me this feels like the right behavior. I think this argument makes sense; and to be honest, that's probably = how I want the exporter to behave most of the time. However, there is particular use case where I find this frustrating, = which is writing problem sets. There I like to reference other parts of = the problems by name. For example,=20 a) Do something. b) Use your answer in part a) to do something else. Then, if I want to export it to multiple formats (say, html and pdf), = there is no general way to tell orgmode: "my alphabetical bullet choice = was meaningful, please try to preserve it". One ends up inserting = little workarounds for each export format. Which is not a big deal, but = when everything else works so seamlessly it's these little things that = stand out :) Best, Josiah= From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-list-allow-alphabetical LaTeX export Date: Thu, 6 Jun 2013 21:45:58 +0200 Message-ID: References: <93BA1627-D7F6-4E96-9AFC-927A6F6C8C6E@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32992) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukg8G-0003fm-19 for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 15:46:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ukg89-0001iO-Qi for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 15:45:59 -0400 Received: from mail-we0-x229.google.com ([2a00:1450:400c:c03::229]:37696) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukg89-0001hc-26 for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 15:45:53 -0400 Received: by mail-we0-f169.google.com with SMTP id n57so2436770wev.14 for ; Thu, 06 Jun 2013 12:45:51 -0700 (PDT) In-Reply-To: <93BA1627-D7F6-4E96-9AFC-927A6F6C8C6E@gmail.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Josiah Schwab Cc: Michael Bach , emacs-orgmode@gnu.org On 6.6.2013, at 19:39, Josiah Schwab wrote: >> On 6 jun. 2013, at 10:20, Michael Bach gmail.com> wrote: >>> The LaTeX exporter does not honor the setting of = org-list-allow-alphabetical. =20 >=20 > A week or so ago I asked a similar question about the HTML export and = lists. > http://lists.gnu.org/archive/html/emacs-orgmode/2013-05/msg01324.html > So I just wanted to toss in my 2=A2. >=20 > On Jun 6, 2013, at 2:17 AM, Carsten Dominik wrote: >> Conventions about the type of bullet to be used in a document belong = to the typesetting side, and I rather establish a global setting for a = document than follow my momentary decisions when I write the Org-mode = version of it. On a similar vein, we do have lists starting with - and = * and +, but we still let LaTeX and HTML choose what to use as a bullet. = To me this feels like the right behavior. >=20 > I think this argument makes sense; and to be honest, that's probably = how I want the exporter to behave most of the time. >=20 > However, there is particular use case where I find this frustrating, = which is writing problem sets. There I like to reference other parts of = the problems by name. For example,=20 >=20 > a) Do something. > b) Use your answer in part a) to do something else. >=20 > Then, if I want to export it to multiple formats (say, html and pdf), = there is no general way to tell orgmode: "my alphabetical bullet choice = was meaningful, please try to preserve it". One ends up inserting = little workarounds for each export format. Which is not a big deal, but = when everything else works so seamlessly it's these little things that = stand out :) This is a good point - but this calls for something else: A mechanism = to name a particular list item and refer to it by name. In LaTeX you = can put a \label into an ordered list item and refer to it with \ref. I = am not sure if the new exporter allows this for list items, but I do not = thing so. Nicolas, has this ever been considered? I don't remember. This would be useful. Or, make sure you use a LaTeX stype or HTML style file that uses a = specific labeling system. - Carsten= From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: org-list-allow-alphabetical LaTeX export Date: Thu, 06 Jun 2013 23:20:49 +0200 Message-ID: <87y5anylzi.fsf@pank.eu> References: <93BA1627-D7F6-4E96-9AFC-927A6F6C8C6E@gmail.com> 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]:54560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkhcH-0002j4-Kh for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 17:21:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkhcG-0008A7-PD for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 17:21:05 -0400 Received: from plane.gmane.org ([80.91.229.3]:55874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkhcG-00089F-Ig for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 17:21:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UkhcE-0005aI-Us for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 23:21:02 +0200 Received: from 87-57-37-160-dynamic.dk.customer.tdc.net ([87.57.37.160]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Jun 2013 23:21:02 +0200 Received: from rasmus by 87-57-37-160-dynamic.dk.customer.tdc.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Jun 2013 23:21:02 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Carsten Dominik writes: >> a) Do something. >> b) Use your answer in part a) to do something else. >> >> Then, if I want to export it to multiple formats (say, html and >> pdf), there is no general way to tell orgmode: "my alphabetical >> bullet choice was meaningful, please try to preserve it". One ends >> up inserting little workarounds for each export format. Which is >> not a big deal, but when everything else works so seamlessly it's >> these little things that stand out :) > > This is a good point - but this calls for something else: A mechanism > to name a particular list item and refer to it by name. In LaTeX you > can put a \label into an ordered list item and refer to it with \ref. > I am not sure if the new exporter allows this for list items, but I do > not thing so. Nicolas, has this ever been considered? I don't > remember. > > This would be useful. > > Or, make sure you use a LaTeX stype or HTML style file that uses a specific labeling system. Why doesn't this cut it: #+BEGIN_SRC org 1. <<1>> Do something. 2. Use your answer in part [[1]] to do something else. #+END_SRC –Rasmus -- Hooray! From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josiah Schwab Subject: Re: org-list-allow-alphabetical LaTeX export Date: Thu, 6 Jun 2013 14:36:39 -0700 Message-ID: <7C0B6E30-512B-447D-A45B-42D90936C750@gmail.com> References: <93BA1627-D7F6-4E96-9AFC-927A6F6C8C6E@gmail.com> <87y5anylzi.fsf@pank.eu> Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkhrR-0007Xd-H9 for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 17:36:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkhrP-00050n-W6 for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 17:36:45 -0400 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:60891) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkhrP-00050d-OH for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 17:36:43 -0400 Received: by mail-pa0-f48.google.com with SMTP id kp12so423541pab.21 for ; Thu, 06 Jun 2013 14:36:42 -0700 (PDT) In-Reply-To: <87y5anylzi.fsf@pank.eu> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org > Why doesn't this cut it: >=20 > #+BEGIN_SRC org > 1. <<1>> Do something. > 2. Use your answer in part [[1]] to do something else. > #+END_SRC That will work ok in LaTeX I think. But that will export to HTML like
  1. Do something.
  2. Use your answer in part 1 to do something else.
and the link name will remain "1", even if one adds type=3D"a" to the =
    tag to adjust the bullet appearance. Josiah= From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: org-list-allow-alphabetical LaTeX export Date: Fri, 07 Jun 2013 00:39:31 +0200 Message-ID: <87ppvyzwws.fsf@pank.eu> References: <93BA1627-D7F6-4E96-9AFC-927A6F6C8C6E@gmail.com> <87y5anylzi.fsf@pank.eu> <7C0B6E30-512B-447D-A45B-42D90936C750@gmail.com> 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]:44796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkiqU-0004Hk-9r for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 18:39:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkiqS-0000a8-A9 for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 18:39:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:44033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkiqS-0000Zx-3j for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 18:39:48 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UkiqP-0007QC-M9 for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 00:39:45 +0200 Received: from 87-57-37-160-dynamic.dk.customer.tdc.net ([87.57.37.160]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 00:39:45 +0200 Received: from rasmus by 87-57-37-160-dynamic.dk.customer.tdc.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 00:39:45 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Josiah Schwab writes: >> Why doesn't this cut it: >> >> #+BEGIN_SRC org >> 1. <<1>> Do something. >> 2. Use your answer in part [[1]] to do something else. >> #+END_SRC > > That will work ok in LaTeX I think. > But that will export to HTML like > >
      >
    1. Do something. >
    2. >
    3. Use your answer in part 1 to do something else. >
    4. >
    > > and the link name will remain "1", even if one adds type="a" to the >
      tag to adjust the bullet appearance. If you your type you can use a more advance link [[1][a)]. But that's not very nice. Perhaps, css counters is the way to go: https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Counters (I did a quick search and I'm not sure css is powerful enough). In any case, I think it's a fair feature request, but it's a "html bug/deficit". If we know how to do it in "hand-written" html it can relatively easily be added to ox-html or incorporated locally via a filter. –Rasmus -- m-mm-mmm-mmmm bacon! From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: org-list-allow-alphabetical LaTeX export Date: Fri, 07 Jun 2013 00:49:08 +0200 Message-ID: <87li6mzwgr.fsf@pank.eu> References: <93BA1627-D7F6-4E96-9AFC-927A6F6C8C6E@gmail.com> <87y5anylzi.fsf@pank.eu> <7C0B6E30-512B-447D-A45B-42D90936C750@gmail.com> <87ppvyzwws.fsf@pank.eu> 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]:46889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukizj-0005ln-Px for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 18:49:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ukizg-0003fa-Rz for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 18:49:23 -0400 Received: from plane.gmane.org ([80.91.229.3]:47782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukizg-0003fN-Lk for emacs-orgmode@gnu.org; Thu, 06 Jun 2013 18:49:20 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ukizf-0006IK-1C for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 00:49:19 +0200 Received: from 87-57-37-160-dynamic.dk.customer.tdc.net ([87.57.37.160]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 00:49:19 +0200 Received: from rasmus by 87-57-37-160-dynamic.dk.customer.tdc.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 00:49:19 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Rasmus writes: > Josiah Schwab writes: > >>> Why doesn't this cut it: >>> >>> #+BEGIN_SRC org >>> 1. <<1>> Do something. >>> 2. Use your answer in part [[1]] to do something else. >>> #+END_SRC >> >> That will work ok in LaTeX I think. >> But that will export to HTML like >> >>
        >>
      1. Do something. >>
      2. >>
      3. Use your answer in part 1 to do something else. >>
      4. >>
      >> >> and the link name will remain "1", even if one adds type="a" to the >>
        tag to adjust the bullet appearance. > > If you your type you can use a more advance link [[1][a)]. But that's > not very nice. > > Perhaps, css counters is the way to go: > > https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Counters > > (I did a quick search and I'm not sure css is powerful enough). It doesn't seem to be easy or pretty to get \ref-\label-like relations in html. Here's the best I could find: http://stackoverflow.com/questions/2651739/how-to-access-css-generated-content-with-javascript –Rasmus -- When in doubt, do it! From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-list-allow-alphabetical LaTeX export Date: Fri, 07 Jun 2013 01:01:18 -0400 Message-ID: <871u8ems4h.fsf@pierrot.dokosmarshall.org> References: <93BA1627-D7F6-4E96-9AFC-927A6F6C8C6E@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukonx-0001Lb-3t for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 01:01:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ukonv-0006aO-Ix for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 01:01:37 -0400 Received: from plane.gmane.org ([80.91.229.3]:55635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukonv-0006aE-98 for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 01:01:35 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ukons-0001KP-Ec for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 07:01:32 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 07:01:32 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 07:01:32 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Josiah Schwab writes: >> On 6 jun. 2013, at 10:20, Michael Bach gmail.com> wrote: >>> The LaTeX exporter does not honor the setting of org-list-allow-alphabetical. > > A week or so ago I asked a similar question about the HTML export and lists. > http://lists.gnu.org/archive/html/emacs-orgmode/2013-05/msg01324.html > So I just wanted to toss in my 2¢. > > On Jun 6, 2013, at 2:17 AM, Carsten Dominik wrote: >> Conventions about the type of bullet to be used in a document belong >> to the typesetting side, and I rather establish a global setting for >> a document than follow my momentary decisions when I write the >> Org-mode version of it. On a similar vein, we do have lists >> starting with - and * and +, but we still let LaTeX and HTML choose >> what to use as a bullet. To me this feels like the right behavior. > > I think this argument makes sense; and to be honest, that's probably > how I want the exporter to behave most of the time. > > However, there is particular use case where I find this frustrating, > which is writing problem sets. There I like to reference other parts > of the problems by name. For example, > > a) Do something. > b) Use your answer in part a) to do something else. > > Then, if I want to export it to multiple formats (say, html and pdf), > there is no general way to tell orgmode: "my alphabetical bullet > choice was meaningful, please try to preserve it". One ends up > inserting little workarounds for each export format. Which is not a > big deal, but when everything else works so seamlessly it's these > little things that stand out :) > I don't have anything to add to what others have said on the cross-reference question. But I did some investigation into alpha lists and I wanted to expand a bit on that. I looked at your earlier question and the latex question a bit and I have a patch that implements something like what you want. However, I'm not advocating that org actually implement this. In fact, there are good reasons *not* to implement it (at least not in this form). In the patch, there is a change in the parser so that it recognizes an ordered-alpha list (in addition to the ordered, etc. lists it was already recognizing). Then there are minor changes to ox-html.el: basically ordered and ordered-alpha trigger the same response from the exporter, except in one case: the opening of an ordered-alpha list includes the ``type="a"'' thing. NB: the patch does not address any of the other exporters. However, the type="a" thingie in
          is a bad idea: it is deprecated in the HTML spec, so it would be foolish to go chasing after it in org. Here's what the spec says: #+BEGIN_QUOTE For the OL element, possible values for the type attribute are summarized in the table below (they are case-sensitive): Type Numbering style 1 arabic numbers 1, 2, 3, ... a lower alpha a, b, c, ... A upper alpha A, B, C, ... i lower roman i, ii, iii, ... I upper roman I, II, III, ... Note that the type attribute is deprecated and list styles should be handled through style sheets. For example, using CSS, one may specify that the style of numbers for list elements in a numbered list should be lowercase roman numerals. In the excerpt below, every OL element belonging to the class "withroman" will have roman numerals in front of its list items.
          1. Step one ...
          2. Step two ...
          #+END_QUOTE See http://www.w3.org/TR/html4/struct/lists.html#type-values. Even if it were not deprecated, a good implementation would require org to be able to generate all the values, which would probably require YAUO (yet another user option). What org *could* do is to generate some discriminant (the "withroman" thing above) so that the proper CSS could be applied. Right now, there is no such capability I believe. It could be done with YAUO, but I, for one, think org has too many of those: we certainly don't need more unless it is *really* necessary. Here's the patch if you still want it: the only use for it as far as I'm concerned is "educational": --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=alpha-list.patch Content-Description: Alpha lists in the html exporter diff --git a/lisp/org-list.el b/lisp/org-list.el index 86afe11..7a606f0 100644 --- a/lisp/org-list.el +++ b/lisp/org-list.el @@ -1022,7 +1022,8 @@ Possible types are `descriptive', `ordered' and `unordered'. The type is determined by the first item of the list." (let ((first (org-list-get-list-begin item struct prevs))) (cond - ((string-match "[[:alnum:]]" (org-list-get-bullet first struct)) 'ordered) + ((string-match "[[:alpha:]]" (org-list-get-bullet first struct)) 'ordered-alpha) + ((string-match "[[:digit:]]" (org-list-get-bullet first struct)) 'ordered) ((org-list-get-tag first struct) 'descriptive) (t 'unordered)))) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index facd84c..b30c313 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -2387,7 +2387,7 @@ contextual information." (br (org-html-close-tag "br" nil info))) (concat (case type - (ordered + ((ordered ordered-alpha) (let* ((counter term-counter-id) (extra (if counter (format " value=\"%s\"" counter) ""))) (concat @@ -2409,7 +2409,7 @@ contextual information." (unless (eq type 'descriptive) checkbox) contents (case type - (ordered "") + ((ordered ordered-alpha) "") (unordered "") (descriptive ""))))) @@ -2796,13 +2796,16 @@ lists." (ordered (format "
            " (if arg1 (format " start=\"%d\"" arg1) ""))) + (ordered-alpha + (format "
              " + (if arg1 (format " start=\"%s\"" arg1) ""))) (unordered "
                ") (descriptive "
                "))) (defun org-html-end-plain-list (type) "Insert the end of the HTML list depending on TYPE." (case type - (ordered "
            ") + ((ordered ordered-alpha) "
          ") (unordered "") (descriptive ""))) --=-=-= Content-Type: text/plain So much for HTML. For LaTeX, you can do alpha lists as follows (no patch needed): --8<---------------cut here---------------start------------->8--- #+LATEX_HEADER: \usepackage{enumerate} * Letters #+ATTR_LATEX: :options [(a)] a. foo b. bar c. baz This is another list, and the option above does not apply to it - the enumerators are numbers by default: a. foo b. bar c. baz * Numbers 1. foo 2. bar 3. baz This might look like a numbered list, but if you add an option you can turn it into an alpha list: #+ATTR_LATEX: :options [A] 1. foo 2. bar 3. baz --8<---------------cut here---------------end--------------->8--- You can pass any of the options that the enumerate package allows without org having to worry about it. -- Nick --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josiah Schwab Subject: Re: org-list-allow-alphabetical LaTeX export Date: Thu, 6 Jun 2013 22:48:27 -0700 Message-ID: <339141F2-B786-4CD2-9611-F412FA773DEE@gmail.com> References: <93BA1627-D7F6-4E96-9AFC-927A6F6C8C6E@gmail.com> <871u8ems4h.fsf@pierrot.dokosmarshall.org> Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkpXM-0006tX-ED for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 01:48:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkpXL-0003uM-H3 for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 01:48:32 -0400 Received: from mail-pb0-x22d.google.com ([2607:f8b0:400e:c01::22d]:35763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkpXL-0003uG-9o for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 01:48:31 -0400 Received: by mail-pb0-f45.google.com with SMTP id mc8so4255595pbc.18 for ; Thu, 06 Jun 2013 22:48:30 -0700 (PDT) In-Reply-To: <871u8ems4h.fsf@pierrot.dokosmarshall.org> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: emacs-orgmode@gnu.org > However, the type="a" thingie in
            is a bad idea: it is deprecated in > the HTML spec, so it would be foolish to go chasing after it in org. I'll take a closer look the rest of your message to tomorrow, but I wanted to mention that while "type" was deprecated in HTML4 that is no longer the case in HTML5. http://www.w3.org/TR/html-markup/ol.html#ol.attrs.type Best, Josiah From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org-list-allow-alphabetical LaTeX export Date: Fri, 07 Jun 2013 13:12:03 +0200 Message-ID: <87zjv2w4xo.fsf@gmail.com> References: <93BA1627-D7F6-4E96-9AFC-927A6F6C8C6E@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkuaN-0000n2-8R for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 07:12:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UkuaM-0005Yg-1f for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 07:11:59 -0400 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:33082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UkuaL-0005YZ-RR for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 07:11:57 -0400 Received: by mail-we0-f182.google.com with SMTP id p60so1278019wes.13 for ; Fri, 07 Jun 2013 04:11:56 -0700 (PDT) In-Reply-To: (Carsten Dominik's message of "Thu, 6 Jun 2013 21:45:58 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: Josiah Schwab , Michael Bach , emacs-orgmode@gnu.org Hello, Carsten Dominik writes: > This is a good point - but this calls for something else: A mechanism > to name a particular list item and refer to it by name. In LaTeX you > can put a \label into an ordered list item and refer to it with \ref. > I am not sure if the new exporter allows this for list items, but I do > not thing so. Nicolas, has this ever been considered? I don't > remember. > > This would be useful. > > Or, make sure you use a LaTeX stype or HTML style file that uses > a specific labeling system. As pointed out by Rasmus in this thread, there is a cross-reference mechanism in the export framework. 1. <> Item 1. 2. Reference to item [[something]]. It will work in any back-end, but obviously, will ignore alphabetical lists (link will always appear as a number). Speaking of those, my opinion is we should drop them altogether, as they are just (dubious) syntactic sugar, but some users will always expect them to be more than that. Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-list-allow-alphabetical LaTeX export Date: Fri, 07 Jun 2013 09:54:27 -0400 Message-ID: <87txlakovg.fsf@pierrot.dokosmarshall.org> References: <93BA1627-D7F6-4E96-9AFC-927A6F6C8C6E@gmail.com> <871u8ems4h.fsf@pierrot.dokosmarshall.org> <339141F2-B786-4CD2-9611-F412FA773DEE@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukx7q-0004jo-F3 for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:54:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ukx7p-00028A-7c for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:54:42 -0400 Received: from plane.gmane.org ([80.91.229.3]:60843) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ukx7p-00027z-09 for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 09:54:41 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Ukx7m-0004zd-5b for emacs-orgmode@gnu.org; Fri, 07 Jun 2013 15:54:38 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 15:54:38 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Jun 2013 15:54:38 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Josiah Schwab writes: >> However, the type="a" thingie in
              is a bad idea: it is deprecated in >> the HTML spec, so it would be foolish to go chasing after it in org. > > I'll take a closer look the rest of your message to tomorrow, but I wanted > to mention that while "type" was deprecated in HTML4 that is no longer the > case in HTML5. > > http://www.w3.org/TR/html-markup/ol.html#ol.attrs.type > OK - thanks for the pointer! -- Nick