From mboxrd@z Thu Jan 1 00:00:00 1970 From: "D. C. Toedt" Subject: Re: Tables of contents for individual sections wanted -- will donate Date: Mon, 30 Jun 2014 13:55:53 -0500 Message-ID: References: <53B1AF24.7010502@wilkesley.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0115f518c0579904fd123704 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60020) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1gkp-00038a-FC for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 14:56:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1gkk-0005sZ-IL for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 14:56:39 -0400 Received: from mail-ve0-f172.google.com ([209.85.128.172]:51108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1gkk-0005sP-E8 for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 14:56:34 -0400 Received: by mail-ve0-f172.google.com with SMTP id jz11so8692502veb.3 for ; Mon, 30 Jun 2014 11:56:33 -0700 (PDT) In-Reply-To: <53B1AF24.7010502@wilkesley.net> 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: ian@manor-farm.org Cc: emacs-orgmode@gnu.org --089e0115f518c0579904fd123704 Content-Type: text/plain; charset=UTF-8 Thanks, Ian. I've done things like that in the past, but it'd entail maintaining the TOC by hand, which I was hoping to avoid. True, I'd be able to create the initial TOC using org-mode, followed by manually inserting jQuery calls. But I'd have to manually edit the TOC every time I added a new chapter or section and every time I edited a heading title. On Mon, Jun 30, 2014 at 1:40 PM, Ian Barton wrote: > 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. > > --089e0115f518c0579904fd123704 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks, Ian. =C2=A0I've done things= like that in the past, but it'd entail maintaining the TOC by hand, wh= ich I was hoping to avoid. =C2=A0True, I'd be able to create the initia= l TOC using org-mode, followed by manually inserting jQuery calls. =C2=A0Bu= t I'd have to manually edit the TOC every time I added a new chapter or= section and every time I edited a heading title. =C2=A0






On Mon, Jun 30, 2014 at 1:40 PM, Ian Bar= ton <lists@wilkesley.net> wrote:
On 29/06/14 19:51, D. C. Toedt wrote:
=C2=A0at http://ww= w.CommonDraft.org, and plan to expand and maintain it.

QUESTION: =C2=A0I'm currently using a single, multi-level table of cont= ents
(TOC) at the beginning of the document. =C2=A0That ends up being a lot to scroll through to get to the first chapter. =C2=A0I'd like instead to h= ave:

=C2=A0 * a one-level "master" TOC at the beginning of the documen= t, listing

=C2=A0 =C2=A0 and linking to just the articles (in contracts, "article= s" are the
=C2=A0 =C2=A0 same as "chapters" in books, that is, the top-level= sections); and

=C2=A0 * at the beginning of each article, a TOC listing and linking to the=
=C2=A0 =C2=A0 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 hea= ding in the TOC expands the links to the sub headings underneath the headin= g. You can probably do nested collapsible headings so you can expand variou= s level of subheadings like a concertina.

I am definitely not a Javascript expert, but I have managed to use this tec= hnique on some of my documents.

Ian.


--089e0115f518c0579904fd123704--