From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: different toc levels per headline? Date: Thu, 26 Sep 2013 13:15:56 +0200 Message-ID: <9D7DDF81-6925-481C-A1B6-8338167B0106@gmail.com> References: <20130926110130.GD15620@pacific.linksys.moosehall> Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: multipart/signed; boundary="Apple-Mail=_C25BEA9D-16E3-4A20-B732-70EC4C59C2CF"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP9YF-0004vO-Je for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 07:16:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VP9Y9-00056i-18 for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 07:16:07 -0400 Received: from mail-ea0-x22e.google.com ([2a00:1450:4013:c01::22e]:52866) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP9Y8-00056T-QN for emacs-orgmode@gnu.org; Thu, 26 Sep 2013 07:16:00 -0400 Received: by mail-ea0-f174.google.com with SMTP id z15so460180ead.19 for ; Thu, 26 Sep 2013 04:15:59 -0700 (PDT) In-Reply-To: <20130926110130.GD15620@pacific.linksys.moosehall> 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: Adam Spiers Cc: org-mode mailing list --Apple-Mail=_C25BEA9D-16E3-4A20-B732-70EC4C59C2CF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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. Generating = a single document should follow one set of rules, not many. - Carsten On 26.9.2013, at 13:01, Adam Spiers wrote: > Hi all, >=20 > If I have something like: >=20 > #+OPTIONS: toc:1 >=20 > * 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 >=20 > I would expect a ToC which looks like: >=20 > Table of Contents > _________________ >=20 > 1 h1 no options > 2 h1 toc:1 > .. 2.1 h2 > 3 h1 toc:2 > .. 3.1 h2 > ..... 3.1.1 h3 >=20 > 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: >=20 > 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 >=20 > Properties and Columns::). Options set at a specific level > override options set at a more general level. >=20 > However instead I get: >=20 > Table of Contents > _________________ >=20 > 1 h1 no options > 2 h1 toc:1 > 3 h1 toc:2 >=20 > What am I missing, and is there another way to vary the toc level per > subtree? >=20 > Thanks! > Adam >=20 --Apple-Mail=_C25BEA9D-16E3-4A20-B732-70EC4C59C2CF Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJSRBdsAAoJEO+gg/nAZuwMQ4AIAIfUIPTeRYhKzmsPAGBFzcmV 6SG0DBO3B3GApNjeAc/F1kpxBF03TFveCJokcoeKlOVOL3yb01XHGmF26ee0u8/k xcpu/b92M0nFGP+1qn1Gg4v0NsmMvUf/1mLOz5igw4D8veoS21kAsW4jMW8jIhHq r0ybCVX/ck4XCh8OAFfU+twriO0ph3fJxfGQ+1az3D/rZ3hQcbVDqgIqtg8YL8jd 8EUfOb4556Pfw4x1JI5B5SybWiBr0/6Y3Nz11RRp0hkomQzO/BPxnDBhbMuFa4fZ Xw7jw401XFBAwWmZ88Wynh2B7Rk5wPzwAAzeqEivIXRT7xJM09kjb5zLuO8kWWo= =GQBQ -----END PGP SIGNATURE----- --Apple-Mail=_C25BEA9D-16E3-4A20-B732-70EC4C59C2CF--