From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [RFC] Exclude headlines from TOC, take 2 Date: Sun, 15 Oct 2017 21:40:26 +0200 Message-ID: <871sm419p1.fsf@nicolasgoaziou.fr> References: <87zi93gi10.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3om0-0004gE-39 for emacs-orgmode@gnu.org; Sun, 15 Oct 2017 15:40:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3olz-0002Xi-8Q for emacs-orgmode@gnu.org; Sun, 15 Oct 2017 15:40:32 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:50779) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e3oly-0002Uq-TK for emacs-orgmode@gnu.org; Sun, 15 Oct 2017 15:40:31 -0400 Received: from saiph.selenimh (000043010000000000000469.ipv6.commingeshautdebit.fr [IPv6:2a03:a0a0:0:4301::469]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id B2A48C5A49 for ; Sun, 15 Oct 2017 21:40:27 +0200 (CEST) Received: from ngz by saiph.selenimh with local (Exim 4.89) (envelope-from ) id 1e3olu-0001wG-Tu for emacs-orgmode@gnu.org; Sun, 15 Oct 2017 21:40:26 +0200 In-Reply-To: <87zi93gi10.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sat, 07 Oct 2017 16:16: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" To: Org Mode List Nicolas Goaziou writes: > Here is another take on the possibility to exclude headlines from the > table of contents. > > Last attempt was rejected because users need to include /unnumbered/ > headlines in the TOC. Point taken. However, I don't think it makes sense > to exclude /numbered/ headlines from the TOC. Hence, I propose to > exclude any headline with an UNNUMBERED property set to "notoc". > > So basically, > > - only unnumbered headlines can be excluded > - we do not introduce another property [...] > I attach a possible implementation, with documentation and tests. Note > that this doesn't work with LaTeX export back-end, which still dutifully > ignores any unnumbered headline. Patches welcome to improve this. Pushed.