emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: Carsten Dominik <dominik@uva.nl>,
	emacs-org list <emacs-orgmode@gnu.org>,
	Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: Add ability to force-enable TOC
Date: Fri, 22 Sep 2017 08:32:52 -0500	[thread overview]
Message-ID: <87inga6epn.fsf@fastmail.fm> (raw)
In-Reply-To: <CAFyQvY2mjSe9kxVpit1ff6gqghgdR3nGhd10NLnaaktveZMd7w@mail.gmail.com> (Kaushal Modi's message of "Wed, 20 Sep 2017 10:40:42 +0000")

Kaushal Modi <kaushal.modi@gmail.com> writes:

> On Wed, Sep 20, 2017, 6:25 AM Nicolas Goaziou <mail@nicolasgoaziou.fr>
> wrote:
>
>     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.
>
> Understood. 
>
>     IOW, do mixed numbered/unnumbered headings make sense in TOC?
>
> Correct. That does not make sense to me. That is not my use case. 

I support the use case of unnumbered table of contents.

In addition (although this is probably too much of a corner case to
support officially in Org Mode), it is common in the U.S. to use a mix
of numbered and unnumbered headings in books. One accomplishes this in
LaTeX with the following:

--8<---------------cut here---------------start------------->8---
\tableofcontents

\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}

\chapter{A Chapter}

\chapter{Another Chapter}

\chapter*{Conclusion}
\addcontentsline{toc}{chapter}{Introduction}
--8<---------------cut here---------------end--------------->8---

The resulting Table of Contents looks like this...

Introduction            3
1 A Chapter             5
2 Another Chapter       7
Conclusion              9

Best,
Matt

  reply	other threads:[~2017-09-22 13:32 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-19 14:49 Add ability to force-enable TOC Kaushal Modi
2017-09-19 15:00 ` Kaushal Modi
2017-09-19 15:33 ` Carsten Dominik
2017-09-19 19:27   ` Nicolas Goaziou
2017-09-19 19:31     ` Kaushal Modi
2017-09-19 19:57       ` Nicolas Goaziou
2017-09-19 20:12         ` Kaushal Modi
2017-09-20 10:25           ` Nicolas Goaziou
2017-09-20 10:40             ` Kaushal Modi
2017-09-22 13:32               ` Matt Lundin [this message]
2017-09-20  8:53       ` Rasmus
2017-09-20 14:15         ` Rasmus
2017-09-20  8:14     ` Carsten Dominik
2017-09-20  8:54       ` Rasmus
2017-09-20 10:04       ` Kaushal Modi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87inga6epn.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=dominik@uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=kaushal.modi@gmail.com \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).