From: Rainer Stengele <rainer.stengele@online.de>
To: Bernt Hansen <bernt@norang.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: Exporting narrowed subtrees to HTML
Date: Tue, 29 Jun 2010 19:09:36 +0200 [thread overview]
Message-ID: <4C2A28D0.5010200@online.de> (raw)
In-Reply-To: <87k4phajcl.fsf@gollum.intra.norang.ca>
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 ]
> | <body>
> | <div id="content">
> |
> | <h1 class="title">test.org</h1>
> |
> |
> | <div id="outline-container-1" class="outline-6">
> | <h6 id="sec-1">Level 5 - Interesting stuff - narrow to subtree here </h6>
> | <div class="outline-text-6" id="text-1">
> |
> |
> | </div>
> |
> | <div id="outline-container-1_1" class="outline-7">
> | <h7 id="sec-1_1">Level 6 </h7>
> | <div class="outline-text-7" id="text-1_1">
> |
> | </div>
> |
> | </div>
> |
> | <div id="outline-container-1_2" class="outline-7">
> | <h7 id="sec-1_2">Another Level 6 </h7>
> | <div class="outline-text-7" id="text-1_2">
> |
> |
> | </div>
> |
> | <div id="outline-container-1_2_1" class="outline-8">
> | <h8 id="sec-1_2_1">Level 7 </h8>
> | <div class="outline-text-8" id="text-1_2_1">
> |
> |
> | </div>
> |
> | <div id="outline-container-1_2_1_1" class="outline-9">
> | <h9 id="sec-1_2_1_1">Level 8 </h9>
> | <div class="outline-text-9" id="text-1_2_1_1">
> |
> | </div>
> | </div>
> |
> | </div>
> |
> | <div id="outline-container-1_2_2" class="outline-8">
> | <h8 id="sec-1_2_2">Level Again </h8>
> | <div class="outline-text-8" id="text-1_2_2">
> |
> |
> | </div>
> | </div>
> | </div>
> | </div>
> | <div id="postamble">
> | <p class="author"> Author: Bernt Hansen
> | </p>
> | <p class="date"> Date: 2010-06-29 Tue</p>
> | <p class="creator">HTML generated by org-mode 6.36trans in emacs 22</p>
> | </div>
> | </div>
> | </body>
> `----
>
> So the filename is <h1> and the first headline is <h6>. It looks much
> better in the output if the filename is <h1> and the first headline is
> <h2>
>
> 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
>
next prev parent reply other threads:[~2010-06-29 17:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-29 16:34 Exporting narrowed subtrees to HTML Bernt Hansen
2010-06-29 17:09 ` Rainer Stengele [this message]
2010-06-29 18:06 ` [PATCH] HTML export: Start the first exported headline at heading level 2 Bernt Hansen
2010-07-01 3:20 ` Exporting narrowed subtrees to HTML Matt Lundin
2010-07-01 7:07 ` Bernt Hansen
2010-07-01 7:26 ` Carsten Dominik
2010-07-01 7:29 ` Bernt Hansen
2010-07-01 8:12 ` Rainer Stengele
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C2A28D0.5010200@online.de \
--to=rainer.stengele@online.de \
--cc=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).