From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: local toc automatic? Date: Wed, 5 Feb 2020 12:21:28 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:51087) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izQEt-0003N0-Kc for emacs-orgmode@gnu.org; Wed, 05 Feb 2020 14:21:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izQEs-0001F1-JS for emacs-orgmode@gnu.org; Wed, 05 Feb 2020 14:21:31 -0500 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:40711) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1izQEs-0001Dy-Cn for emacs-orgmode@gnu.org; Wed, 05 Feb 2020 14:21:30 -0500 Received: by mail-lj1-x233.google.com with SMTP id n18so3479273ljo.7 for ; Wed, 05 Feb 2020 11:21:30 -0800 (PST) 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-mx.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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.