[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Why does org-html.org refuse to export a table of contents
From: |
David Maus |
Subject: |
Re: [Orgmode] Why does org-html.org refuse to export a table of contents when body-only is t? |
Date: |
Tue, 27 Apr 2010 18:59:39 +0200 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
At Tue, 27 Apr 2010 11:55:44 +0200,
Carsten Dominik wrote:
>
>
> On Apr 18, 2010, at 7:32 PM, Jan Böcker wrote:
>
> > Hi all,
> >
> > I'd like to add a table of contents to a HTML export with body-only
> > set
> > to t (to feed into jekyll later), but org-html.el automatically
> > disables
> > the TOC when body-only is given.
> >
> > I have used the attached one-line patch without any problems, the
> > (still
> > XHTML strict compliant) result can be seen here:
> >
> > http://www.jboecker.de/2010/04/14/general-reference-filing-with-org-mode.html
> >
> > gitk tells me that the line I have changed was first introduced in
> > Release 4.75, so is this just a use case that was not thought of when
> > this was programmed, or is there a specific reason?
>
>
> The reason for this behavior is that the most frequent
> application for this seems to me to convert a small
> block to HTML, to paste it somewhere else.
>
> But I have no string reasons to keep it like this. Do we have more
> opinions on this issue?
Yes, the prospected exporter to atom uses body only to create html
markup for a atom feed entry where it normally makes no sense to
publish a table of contents. Same is true for org-mime and the "Send
html messages with Wanderlust" hack.
So maybe create a body without toc when body-only is set to t and
create a body with toc when body-only is the symbol 'include-toc.
HTH
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden
pgp8vYXDYYVQY.pgp
Description: PGP signature