From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: [RFC] Exclude headlines from TOC, take 2 Date: Mon, 16 Oct 2017 16:35:53 +0000 Message-ID: References: <87zi93gi10.fsf@nicolasgoaziou.fr> <871sm419p1.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c14e3c2506b7b055bac9a78" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e48N9-0004hQ-FH for emacs-orgmode@gnu.org; Mon, 16 Oct 2017 12:36:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e48N5-0006yF-7f for emacs-orgmode@gnu.org; Mon, 16 Oct 2017 12:36:11 -0400 Received: from mail-qt0-x234.google.com ([2607:f8b0:400d:c0d::234]:44671) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e48N5-0006xM-2C for emacs-orgmode@gnu.org; Mon, 16 Oct 2017 12:36:07 -0400 Received: by mail-qt0-x234.google.com with SMTP id 8so32945566qtv.1 for ; Mon, 16 Oct 2017 09:36:05 -0700 (PDT) In-Reply-To: <871sm419p1.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou , Org Mode List --94eb2c14e3c2506b7b055bac9a78 Content-Type: text/plain; charset="UTF-8" On Sun, Oct 15, 2017 at 3:41 PM Nicolas Goaziou wrote: > Nicolas Goaziou writes: > > > 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. > Works great! Thank you! My brief test for C-c C-e h o #+TITLE: Test for new UNNUMBERED notoc feature * Org version =master= branch as of <2017-10-16 Mon> - http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=9b13e44ad795792afabb0623b58653bbf35bf040 * This heading will not be numbered, but will be present in TOC :PROPERTIES: :UNNUMBERED: t :END: Something ** Sub heading A * This heading will not be numbered, and also will be absent in TOC :PROPERTIES: :UNNUMBERED: notoc :END: Something ** Sub heading B * Regular heading Once again this is a regular heading and will appear numbered, and in the TOC too. ** Sub heading C -- Kaushal Modi --94eb2c14e3c2506b7b055bac9a78 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Oct 15= , 2017 at 3:41 PM Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> I attach a possible implementation, with documentation and tests. = Note
> that this doesn't work with LaTeX export back-end, which still dut= ifully
> ignores any unnumbered headline. Patches welcome to improve this.

Pushed.

Works great! Thank you!=C2=A0

My brief test for C-c C-e h o

<= div>
#+TITLE: Test for new UNNUMBERED notoc feature

* Org version
=3Dmaster=3D branch as of <2017-10-16 Mon&= gt;
- http://orgmode.org/cgit.cgi= /org-mode.git/commit/?id=3D9b13e44ad795792afabb0623b58653bbf35bf040
* This heading will not be numbered, but will be present in TOC
<= /div>
:PROPERTIES:
:UNNUMBERED: t
:END:
S= omething
** Sub heading A
* This heading will not be nu= mbered, and also will be absent in TOC
:PROPERTIES:
:UN= NUMBERED: notoc
:END:
Something
** Sub headin= g B
* Regular heading
Once again this is a regular head= ing and will appear numbered, and in the TOC too.
** Sub heading = C

--

Kaushal Modi

--94eb2c14e3c2506b7b055bac9a78--