From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Spiers Subject: different toc levels per headline? Date: Thu, 26 Sep 2013 12:01:30 +0100 Message-ID: <20130926110130.GD15620@pacific.linksys.moosehall> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP9KI-0000sM-G3 for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 07:01:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VP9KC-0000h3-Gw for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 07:01:42 -0400 Received: from coral.adamspiers.org ([85.119.82.20]:53827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP9KC-0000gn-Am for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 07:01:36 -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 2339F54259 for ; Thu, 26 Sep 2013 12:01:33 +0100 (BST) Content-Disposition: inline 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 all, If I have something like: #+OPTIONS: toc:1 * h1 no options *** h2 ***** h3 * h1 toc:2 :PROPERTIES: :EXPORT_OPTIONS: toc:2 :END: *** h2 ***** h3 * h1 toc:3 :PROPERTIES: :EXPORT_OPTIONS: toc:3 :END: *** h2 ***** h3 I would expect a ToC which looks like: Table of Contents _________________ 1 h1 no options 2 h1 toc:1 .. 2.1 h2 3 h1 toc:2 .. 3.1 h2 ..... 3.1.1 h3 In otherwise, I would expect the EXPORT_OPTIONS in the subtrees to override the file-wide setting for `toc'. This expectation is based on what the manual says: Export options can be set: globally with variables; for an individual file by making variables buffer-local with in-buffer settings (*note In-buffer settings::), by setting individual keywords, or by specifying them in a compact form with the `#+OPTIONS' keyword; or for a tree by setting properties (*note Properties and Columns::). Options set at a specific level override options set at a more general level. However instead I get: Table of Contents _________________ 1 h1 no options 2 h1 toc:1 3 h1 toc:2 What am I missing, and is there another way to vary the toc level per subtree? Thanks! Adam