From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Re: unnumbered subsections in latex export Date: Tue, 22 Mar 2011 16:08:14 -0700 Message-ID: <20110322160814.227fc53f@bhishma.homelinux.net> References: <20110322051038.21655c80@kuru.homelinux.net> <80d3lj9wj6.fsf@somewhere.org> <20110322053134.669127e9@kuru.homelinux.net> <8999.1300804510@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=57195 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2Agg-0001t2-0j for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 19:08:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2AgX-0000oO-M9 for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 19:08:29 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:64971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2AgX-0000oJ-Ft for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 19:08:21 -0400 Received: by gwaa12 with SMTP id a12so3962631gwa.0 for ; Tue, 22 Mar 2011 16:08:21 -0700 (PDT) In-Reply-To: <8999.1300804510@alphaville.dokosmarshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org On Tue, 22 Mar 2011 10:35:10 -0400 Nick Dokos wrote: > Suvayu Ali wrote: > > > Hi S=C3=A9bastien, > > > > On Tue, 22 Mar 2011 13:20:29 +0100 > > S=C3=A9bastien Vauban wrote: > > > > > > > > I was wondering whether there is some way to export the > > > > attached org file to latex such that headlines beyond level 2 > > > > (3 and onwards) can be exported as unnumbered subsections or > > > > subsubsections like this, \subsection*{}, instead of enclosing > > > > them within itemize. > > > > > > > > The file uses the following options header: > > > > > > > > #+OPTIONS: H:2 num:t toc:t ::t |:t ^:t -:t f:t *:t <:nil > > >=20 > > > Using H:3 num:2? Untested... But that should do the work. > > >=20 > > > > That didn't work. It exports the same as the following options > > > > #+OPTIONS: H:3 num:t toc:t ::t |:t ^:t -:t f:t *:t <:nil > > > > I think the num option is a boolean. The manual says the following: > > > > num: turn on/off section-numbers > > > > Would it be a worthwhile feature request to allow numbers for that > > option? Then one could have finer control on the numbering. > > > > > You can do it (I think - but have not tried it) by changing H:3 to > H:5 or so: > > ,---- > | (defcustom org-export-latex-low-levels 'itemize > | "How to convert sections below the current level of sectioning. > | This is specified by the `org-export-headline-levels' option or the > | value of \"H:\" in Org's #+OPTION line. > `---- > > and then asking LaTeX to omit the numbering appropriately: > > \setcounter{secnumdepth}{2} > > Adjust the 2 to taste. > This works too, but Lawrence's patch makes it much easier and probably works for other export formats too. Thanks a lot. :) > Nick -- Suvayu Open source is the future. It sets us free.