all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* local toc automatic?
@ 2020-02-05 19:21 Samuel Wales
  0 siblings, 0 replies; only message in thread
From: Samuel Wales @ 2020-02-05 19:21 UTC (permalink / raw)
  To: emacs-orgmode

i have been using toc for an entire blog post and then

  #+TOC: headlines 1 local

for sections.

this local idea is brilliant.  i can make the main toc
non-intimidating, and then provide a toc for sections.

is it possible to do this automatically?

that is, supply only one main toc, and specify that if there are any
entries that are 2 levels below it, a toc should be created 1 level
below it to list them?

* a
#+TOC: headlines 1
** b
** c
#+TOC: headlines 1 local
*** d
*** e

i am proposing to eliminate the need to manually enter the toc for c
in the examlpe above.

-- 
The Kafka Pandemic

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-05 19:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-05 19:21 local toc automatic? Samuel Wales

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.