From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Carlson Subject: Re: Bug: LaTeX output of numbered TODO plain list items lose numbering. [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/27.0.50/lisp/org/)] Date: Sat, 9 Nov 2019 18:03:55 -0500 Message-ID: <718295d8-518f-3e31-dde1-acbf57c001f1@abutilize.com> References: <33a3a1bd-1e50-dc54-4bb9-c593a0bc1af8@abutilize.com> <87v9rtuuod.fsf@ucl.ac.uk> Reply-To: hacker@abutilize.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:37015) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iTZlw-00072M-0H for emacs-orgmode@gnu.org; Sat, 09 Nov 2019 18:04:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iTZlu-0000vm-Bz for emacs-orgmode@gnu.org; Sat, 09 Nov 2019 18:03:59 -0500 Received: from gateway32.websitewelcome.com ([192.185.145.184]:25021) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iTZlu-0000vc-5l for emacs-orgmode@gnu.org; Sat, 09 Nov 2019 18:03:58 -0500 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 45A6415B3BA for ; Sat, 9 Nov 2019 17:03:57 -0600 (CST) In-Reply-To: <87v9rtuuod.fsf@ucl.ac.uk> Content-Language: en-US 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: "Fraga, Eric" Cc: "emacs-orgmode@gnu.org" On 11/9/19 6:59 AM, Fraga, Eric wrote: > On Friday, 8 Nov 2019 at 21:28, Brian Carlson wrote: >> So it seems that the numbering of numbered items in a plain list are n= ot >> maintained when the numbered item is also a TODO plain list item. > This is a "feature", not a bug. The intention was to export check box > lists nicely to LaTeX, showing which were done and which were not. Thi= s > doesn't mix well with any other type of list except for simple bullet > points unfortunately. This is, indeed, a very odd "feature." Why change the numbering to not ma= tch what the org file shows?=20 This is especially problematic if you use internal links... --8<---------------cut here---------------start------------->8--- * My tasks =C2=A0 1. one item =C2=A0 2. Something interesting =C2=A0=C2=A0=C2=A0=C2=A0 1. [X] <> another item =C2=A0 3. A note that isn't really a ToDo =C2=A0=C2=A0=C2=A0=C2=A0 1. Here we refer to item [[target]] saying it's = related. =C2=A0=C2=A0=C2=A0=C2=A0 2. another item --8<---------------cut here---------------end--------------->8--- That file give the following LaTeX output. (I've omitted the Table of Con= tents).=20 Notice that the reference is to "2." The actual reference is to 2.1 but s= ince=20 it's a plain list todo so it references the WRONG item. --8<---------------cut here---------------start------------->8--- 1 My tasks 1. one item 2. Something interesting [X] another item 3. A note that isn't really a ToDo (a) Here we refer to item 2 saying it's related (b) another item --8<---------------cut here---------------end--------------->8--- This is inconsistent with the org mode content. It is also inconsistent=20 with the HTML output, which IMHO matches the intent of the org mode file:= --8<---------------cut here---------------start------------->8--- 1 My tasks 1. one item 2. Something interesting 1. [X] another item 3. A note that isn't really a ToDo 1. Here we refer to item 2.1 saying it's related. 2. another item --8<---------------cut here---------------end--------------->8--- This change in behavior, err 'feature', should at least be documented=20 in that it is shocking to a user. The full ramification of the change may require quite a few documented use cases. Perhaps the "feature creato= r" or someone who understands the reasoning wouldn't mind documenting this=20 inconsistency in LaTeX exports (but not other Export targets)? In the mean time, I guess I'll just have to add some "override" lisp to m= y=20 init file to do the sane and expected thing. This is very unfortunate sin= ce org-latex-item is pretty big. I don't think I can easily just advise this= function. > The only way around it is to have them as separate lists (e.g. two empt= y > lines between the check box item and the numbered items) and start the > numbered list with the desired number ([@2], I believe). But I don't want separate lists. I want a "todo list" that's numbered but= =20 doesn't change the numbering when I add a comment or wish to refer to ano= ther =C2=A0task in that list.=C2=A0 Having to constantly update the numbering = every time I=20 change my list seems sort of contrary to the whole simplicity of Org Mode= =2E=C2=A0=20 I find this a very odd exception to just the LaTeX export. Thanks,=20 ;-b