From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: Re: different toc levels per headline? Date: Thu, 26 Sep 2013 13:16:35 +0100 Message-ID: <20130926121635.GE15620@pacific.linksys.moosehall> References: <20130926110130.GD15620@pacific.linksys.moosehall> <9D7DDF81-6925-481C-A1B6-8338167B0106@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPAUs-0005Ap-GS for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 08:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPAUn-0006Xy-SA for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 08:16:42 -0400 Received: from coral.adamspiers.org ([2001:ba8:1f1:f27f::2]:35460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPAUn-0006Xi-MG for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 08:16:37 -0400 Received: from localhost (8.a.f.d.a.a.6.b.9.f.6.4.3.5.4.2.0.d.3.7.6.a.1.1.0.b.8.0.1.0.0.2.ip6.arpa [IPv6:2001:8b0:11a6:73d0:2453:46f9:b6aa:dfa8]) by coral.adamspiers.org (Postfix) with ESMTPSA id C34FA54259 for ; Thu, 26 Sep 2013 13:16:36 +0100 (BST) Content-Disposition: inline In-Reply-To: <9D7DDF81-6925-481C-A1B6-8338167B0106@gmail.com> 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: org-mode mailing list Hi Carsten, On Thu, Sep 26, 2013 at 01:15:56PM +0200, Carsten Dominik wrote: > Hi Adam, > > EXPORT_OPTIONS are for the special case that you only export that > specific subtree, by restricting the export to a tree using C-s in > the dispatcher. They do not modify the behavior of a tree in a > larger export of the document, and they also should not do so IMO. Thanks a lot for the reply. However, what you say seems to directly contradict this sentence in the manual: Options set at a specific level override options set at a more general level. which is why this confused me. I guess that sentence was intended to refer only to subtree exports, not whole document exports, but that meaning was not clear to me. Perhaps it can be clarified via a small tweak? > Generating a single document should follow one set of rules, not > many. I agree that KISS is valuable when designing the rules. However, it also seems a perfectly reasonable requirement to be able to control the toc: level per subtree during a whole document export, since in an arbitrary document there's no guarantee that every headline has the same depth. E.g. one chapter may have a few deep subsections, whereas another may contain lots of shallow subsections. In these scenarios it is clearly beneficial to allow the author to choose which subsections appear in the ToC. So is there a way of achieving this? If not, please consider this a feature request ;-) Thanks! Adam