From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer Stengele Subject: Re: Exporting narrowed subtrees to HTML Date: Tue, 29 Jun 2010 19:09:36 +0200 Message-ID: <4C2A28D0.5010200@online.de> References: <87k4phajcl.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=45868 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OTeJd-0003mS-N9 for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 13:09:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OTeJY-0000yN-IT for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 13:09:45 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:62395) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OTeJY-0000xv-7V for emacs-orgmode@gnu.org; Tue, 29 Jun 2010 13:09:40 -0400 In-Reply-To: <87k4phajcl.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: emacs-orgmode@gnu.org Hi also, +1 I am also struggling with that problem for a long time and am very interested in a solution. At the moment I am copying the subtree to a new temporary org file and demote the heading level to get the more pretty output. Looking forward to find a better idea. Rainer Am 29.06.2010 18:34, schrieb Bernt Hansen: > 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 > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >