From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Add ability to force-enable TOC Date: Wed, 20 Sep 2017 12:25:42 +0200 Message-ID: <8760cdacpl.fsf@nicolasgoaziou.fr> References: <87shfia3qm.fsf@nicolasgoaziou.fr> <87h8vya2c3.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dueoI-0000Cm-3O for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dueo7-0007jj-VB for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:13:02 -0400 Received: from slow1-d.mail.gandi.net ([217.70.178.86]:46579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dueo7-0007iV-O6 for emacs-orgmode@gnu.org; Wed, 20 Sep 2017 09:12:51 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by slow1-d.mail.gandi.net (Postfix) with ESMTP id 62CE147A27D for ; Wed, 20 Sep 2017 12:25:49 +0200 (CEST) In-Reply-To: (Kaushal Modi's message of "Tue, 19 Sep 2017 20:12:41 +0000") 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: Kaushal Modi Cc: Carsten Dominik , emacs-org list Hello, Kaushal Modi writes: > On Tue, Sep 19, 2017 at 3:57 PM Nicolas Goaziou > wrote: > >> What is exactly the feature you are missing? Your example is a special >> case where _no_ heading is numbered. > > > I would not consider this as a special case. It is very common for HTML > exports to not always number the headings. I didn't say it was an unusual case. I said it didn't cover all the use-cases. Maybe you are really needing a subset of the initial feature. IOW, do mixed numbered/unnumbered headings make sense in TOC? >> 1. it makes all export back-ends consistent with TOC; >> > > I understand that. But would like a way to get back the earlier behavior > too. Then there is the other way around: how do we tell LaTeX to include both numbered and unnumbered headings? And: how do we distinguish @unnumberedsec from @heading in Texinfo? > That way if the file has: > > #+OPTIONS: num:nil > > No TOC will be exported (even though the org-export-with-toc default is t). > > But if the file has: > > #+OPTIONS: num:nil toc:4 > > As the toc value is a number, the TOC will be exported even though num is > nil. AFAICT, this doesn't solve any of the two concerns. What we can do for "num:nil toc:4" can be done for "num:nil" alone. Regards,