From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: [new exporter] [html] Tables of Contents Date: Wed, 06 Mar 2013 10:06:11 +0530 Message-ID: <87k3plb0w4.fsf@gmail.com> References: <8738wauvt0.fsf@gmail.com> <87txopzjgz.fsf@lapcat.tftorrey.com> <87obexb1rp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD65Y-0005Nb-1z for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 23:36:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UD65W-0005d3-SD for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 23:36:23 -0500 Received: from mail-pb0-f42.google.com ([209.85.160.42]:41068) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UD65W-0005cy-Ls for emacs-orgmode@gnu.org; Tue, 05 Mar 2013 23:36:22 -0500 Received: by mail-pb0-f42.google.com with SMTP id xb4so5424560pbc.1 for ; Tue, 05 Mar 2013 20:36:21 -0800 (PST) In-Reply-To: <87obexb1rp.fsf@gmail.com> (Jambunathan K.'s message of "Wed, 06 Mar 2013 09:47:14 +0530") 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: "T.F. Torrey" Cc: emacs-orgmode@gnu.org, Nicolas Goaziou >> This gives a significant advantage in that authors can link to the >> various instances just by knowing their own usage. For instance, if >> they provided a top-level toc at the beginning of their book, and a >> deeper-level toc later on, they could link to each separately by id by >> knowing this plan. > > This seems like a valid use-case. Brainstorimg here: Why not export a subtree (with displaced section numbers) and splice the exported strings together to produce the compelete document. Subtree export of headline 1, but with section numbers starting at 1. Subtree export of headline 2, but with section numbers starting at 2. Splice them together. ---------------------------------------------------------------- There are books where each chapter could be written by different authors. The chapters are later spliced together to produce the master document. In case of OpenDocument, such files have *.odm extension. I can look up what the OpenDocument spec says or LibreOffice does. ----------------------------------------------------------------