From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Exporting narrowed subtrees to HTML Date: Tue, 29 Jun 2010 12:34:18 -0400 Message-ID: <87k4phajcl.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=32907 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTdlV-0003ew-8P for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 12:34:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTdlQ-0003gS-VD for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 12:34:29 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:64913) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTdlQ-0003gJ-TI for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 12:34:24 -0400 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1OTdlQ-000KOq-0D for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 16:34:24 +0000 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 Hi everyone, I think this has been discussed before and maybe there already exists a solution to this that I'm unaware of. 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. Example: ,----[ narrowed to subtree org-file ] | ***** Level 5 - Interesting stuff - narrow to subtree here | #+TITLE: test.org | #+AUTHOR: Bernt Hansen | #+EMAIL: bernt@norang.ca | #+DATE: 2010-06-29 Tue | #+DESCRIPTION: | #+KEYWORDS: | #+LANGUAGE: en | #+OPTIONS: H:10 num:nil toc:nil \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t | #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc | #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js | #+EXPORT_SELECT_TAGS: export | #+EXPORT_EXCLUDE_TAGS: noexport | #+LINK_UP: | #+LINK_HOME: | #+XSLT: | ****** Level 6 | ****** Another Level 6 | ******* Level 7 | ******** Level 8 | ******* Level Again | `---- Exporting to HTML and only looking at the body part gives this ,----[ body of HTML output ] | |
| |

test.org

| | |
|
Level 5 - Interesting stuff - narrow to subtree here
|
| | |
| |
| Level 6 |
| |
| |
| |
| Another Level 6 |
| | |
| |
| Level 7 |
| | |
| |
| Level 8 |
| |
|
| |
| |
| Level Again |
| | |
|
|
|
|
|

Author: Bernt Hansen |

|

Date: 2010-06-29 Tue

|

HTML generated by org-mode 6.36trans in emacs 22

|
|
| `---- So the filename is

and the first headline is

. It looks much better in the output if the filename is

and the first headline is

Is there a way to achieve this now with custom settings? Thanks, Bernt