From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Exporting narrowed subtrees to HTML Date: Thu, 1 Jul 2010 09:26:19 +0200 Message-ID: <14EF4901-DB1D-4968-A6E9-08DADF74FEBC@gmail.com> References: <87k4phajcl.fsf@gollum.intra.norang.ca> <87tyojnazx.fsf@fastmail.fm> <87y6dv8yt3.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=36008 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUEAe-0008Aq-4w for emacs-orgmode@gnu.org; Thu, 01 Jul 2010 03:26:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUEAA-00064t-It for emacs-orgmode@gnu.org; Thu, 01 Jul 2010 03:26:23 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:37803) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUEAA-00060U-DI for emacs-orgmode@gnu.org; Thu, 01 Jul 2010 03:26:22 -0400 Received: by mail-fx0-f41.google.com with SMTP id 17so1109364fxm.0 for ; Thu, 01 Jul 2010 00:26:22 -0700 (PDT) In-Reply-To: <87y6dv8yt3.fsf@gollum.intra.norang.ca> 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: Bernt Hansen Cc: Matt Lundin , emacs-orgmode@gnu.org On Jul 1, 2010, at 9:07 AM, Bernt Hansen wrote: > Matt Lundin writes: > >> Hi Bernt, >> >> Bernt Hansen writes: >>> >>> I am working in a deeply nested org file and have narrowed to >>> subtree >>> for the part of the file I'm working on which happens to start at >>> heading level 5. >>> >>> I want to export this narrowed subtree to HTML but the first HTML >>> heading level matches the file instead of starting from heading >>> level 2. This makes the resulting HTML output not as pretty as it >>> could >>> be. >> >> If you select the subtree with C-c @ (outline-mark-subtree), it >> should >> export properly: > > Cool! I didn't know about that. It only seems to work if transient > mark mode is enabled (but I have that on already). > > I posted a patch for exporting a narrowed to subtree HTML export but > it > gives slightly different results from selecting the tree with C-c @ -- > the title (

) is the name of the org-file similar to exporting the > entire document. The tree uses the first headline as the title of the exported file, and its children become the top-level sectioning structure. I think this is the best behavior, and unless you push more I will reject yesterdays patch. OK? - Carsten