From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Tables of contents for individual sections wanted -- will donate Date: Tue, 01 Jul 2014 09:10:18 -0400 Message-ID: <87oax9b4xx.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1xpe-0000P1-1O for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 09:10:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1xpY-0007Hm-SQ for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 09:10:45 -0400 Received: from plane.gmane.org ([80.91.229.3]:52071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1xpY-0007HL-Lb for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 09:10:40 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X1xpX-0000eQ-Qu for emacs-orgmode@gnu.org; Tue, 01 Jul 2014 15:10:39 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Jul 2014 15:10:39 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 01 Jul 2014 15:10:39 +0200 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: emacs-orgmode@gnu.org "D. C. Toedt" writes: > Hi all --  > > BACKGROUND:  I've been using org-mode to develop the Common Draft annotated collection of business contract clauses, in part for the law school course in contract drafting that I > teach to third-year law students.  I've been posting the collection as a Creative Commons document 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. > It's not a pure org solution, but I'd go this way: o have each "article" in a separate org file - export each one to HTML (that can be scripted easily) - you get the article TOCs for free. o have a separate top-level org (or HTML) file that contains the TOC with pointers to the "articles". The production of this file can be scripted as well: get the #+TITLEs of each "article" file and turn them into links. The whole thing can be wrapped up in a Makefile to automate the process. Navigation (prev/next/top) may be a problem but it shouldn't be too hard either. -- Nick