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 17:34:37 +0530 Message-ID: <874ngooht6.fsf@gmail.com> References: <8738wauvt0.fsf@gmail.com> <87txopzjgz.fsf@lapcat.tftorrey.com> <87obexb1rp.fsf@gmail.com> <87k3plb0w4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDD5U-0004WM-H0 for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 07:04:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDD5S-0007mS-UE for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 07:04:48 -0500 Received: from mail-pb0-f44.google.com ([209.85.160.44]:44804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDD5S-0007mC-O0 for emacs-orgmode@gnu.org; Wed, 06 Mar 2013 07:04:46 -0500 Received: by mail-pb0-f44.google.com with SMTP id wz12so5929691pbc.17 for ; Wed, 06 Mar 2013 04:04:45 -0800 (PST) In-Reply-To: <87k3plb0w4.fsf@gmail.com> (Jambunathan K.'s message of "Wed, 06 Mar 2013 10:06:11 +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 Jambunathan K writes: >>> 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. Considering that HTML exporter can export a subtree, I believe you can do some XSLT magic so that the individual HTML generated by Org is transformed before being spliced. Do you really want this to be supported within the scope of the Org exporter? Are you sure you have explored all the tricks in your bag before raising this request. Just wanted to confirm, because you seem to be the HTML expert among the three of us... > ---------------------------------------------------------------- > > 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. > > ---------------------------------------------------------------- Or Allow a subtree to take EXPORT_TOC property. (There should be a way to specifiy where this TOC will end up in - beginning of that chapter or end of the chapter) Similarly, one could introduce EXPORT_ENDNOTES property whereby each chapter can have it's own self-contained "End Notes section".