Matt Lundin <m...@imapmail.org> writes: > Hi Bernt, > > Bernt Hansen <be...@norang.ca> 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 (<h1>) 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 _______________________________________________ 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