From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Tables of contents for individual sections wanted -- will donate Date: Mon, 30 Jun 2014 19:40:36 +0100 Message-ID: <53B1AF24.7010502@wilkesley.net> References: Reply-To: ian@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56954) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1gVW-0000Yc-Qg for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 14:40:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1gVR-0000Yx-9O for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 14:40:50 -0400 Received: from mail2.wilkesley.net ([109.74.196.44]:60283 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1gVQ-0000Yl-T2 for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 14:40:45 -0400 In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "D. C. Toedt" , emacs-orgmode@gnu.org On 29/06/14 19:51, D. C. Toedt wrote: at http://www.CommonDraft.org, and plan to expand and maintain it. > > QUESTION: I'm currently using a single, multi-level table of contents > (TOC) at the beginning of the document. That ends up being a lot to > scroll through to get to the first chapter. I'd like instead to have: > > * a one-level "master" TOC at the beginning of the document, listing > and linking to just the articles (in contracts, "articles" are the > same as "chapters" in books, that is, the top-level sections); and > > * at the beginning of each article, a TOC listing and linking to the > subheadings within that article. > Not an org-mode solution, but if your audience is consuming the content as a web page generated from org-mode, you can do most of this using jQuery. What I am suggesting is you make your TOC collapsible and clicking on a heading in the TOC expands the links to the sub headings underneath the heading. You can probably do nested collapsible headings so you can expand various level of subheadings like a concertina. I am definitely not a Javascript expert, but I have managed to use this technique on some of my documents. Ian.