emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Tables of contents for individual sections wanted -- will donate


From: Ian Barton
Subject: Re: [O] Tables of contents for individual sections wanted -- will donate
Date: Mon, 30 Jun 2014 19:40:36 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]