From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Exporting narrowed subtrees to HTML Date: Thu, 01 Jul 2010 03:07:52 -0400 Message-ID: <87y6dv8yt3.fsf@gollum.intra.norang.ca> References: <87k4phajcl.fsf@gollum.intra.norang.ca> <87tyojnazx.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=48774 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OUDsV-000810-9x for emacs-orgmode@gnu.org; Thu, 01 Jul 2010 03:08:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OUDsQ-0003pm-3l for emacs-orgmode@gnu.org; Thu, 01 Jul 2010 03:08:07 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:64699) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OUDsQ-0003pf-2H for emacs-orgmode@gnu.org; Thu, 01 Jul 2010 03:08:02 -0400 In-Reply-To: <87tyojnazx.fsf@fastmail.fm> (Matt Lundin's message of "Wed\, 30 Jun 2010 23\:20\:50 -0400") 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: Matt Lundin Cc: emacs-orgmode@gnu.org 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. Thanks for pointing this out -- I'll probably start using C-c @ in the future. Regards, Bernt