From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: [PATCH] Allow mixed export of numbered and unnumbered sections in LaTeX Date: Tue, 22 Mar 2011 15:52:04 -0700 Message-ID: <20110322155204.6f19bdb6@bhishma.homelinux.net> References: <20110322051038.21655c80@kuru.homelinux.net> <80d3lj9wj6.fsf@somewhere.org> <20110322053134.669127e9@kuru.homelinux.net> <80fwqf5n6g.fsf@somewhere.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=40640 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q2AQu-0007xi-Os for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 18:52:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q2AQt-0006IC-8d for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 18:52:12 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:39622) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q2AQt-0006I7-0y for emacs-orgmode@gnu.org; Tue, 22 Mar 2011 18:52:11 -0400 Received: by gwaa12 with SMTP id a12so3956427gwa.0 for ; Tue, 22 Mar 2011 15:52:10 -0700 (PDT) In-Reply-To: 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: emacs-orgmode@gnu.org On Tue, 22 Mar 2011 14:26:14 +0000 Lawrence Mitchell wrote: > * lisp/org-latex.el (org-export-latex-subcontent): Deal specially with > the case that NUM is an integer. > > We would sometimes like to have numbered \sections in LaTeX export but > unnumbered \subsections and so forth. That is, use the starred > equivalents for all sectioning commands below a certain level. > Previously, the num: option specification could only specify whether > sections should be numbered or unnumbered at all levels. We now treat > an integer value specially, if num:N is supplied then the highest N > levels are numbered, and lower levels are exported without numbering. > --- > lisp/org-latex.el | 7 ++++++- > 1 files changed, 6 insertions(+), 1 deletions(-) > > [...] > Wouldn't it be nice if #+OPTIONS: num:2 exported > \section{foo} > \subsection{bar} > \subsubsection*{baz} > > It turns out the patch is relatively straightforward. I haven't > included a doc update, but could do so if required. > This works perfectly. Thanks a lot Lawrence. :) -- Suvayu Open source is the future. It sets us free.