From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: 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 Message-ID: <87d3xk4yro.wl%dmaus@ictsoc.de> References: <4BCB4239.5050503@jboecker.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1947717212==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6ofS-0005zo-Lv for emacs-orgmode@gnu.org; Tue, 27 Apr 2010 13:33:54 -0400 Received: from [140.186.70.92] (port=58644 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6ofR-0005ww-8r for emacs-orgmode@gnu.org; Tue, 27 Apr 2010 13:33:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6ofO-0004HG-0R for emacs-orgmode@gnu.org; Tue, 27 Apr 2010 13:33:53 -0400 Received: from mysql1.xlhost.de ([213.202.242.106]:49306) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6ofN-0004Gi-RS for emacs-orgmode@gnu.org; Tue, 27 Apr 2010 13:33:49 -0400 In-Reply-To: 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: Carsten Dominik Cc: Org Mode --===============1947717212== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Tue_Apr_27_18:59:39_2010-1"; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Tue_Apr_27_18:59:39_2010-1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable At Tue, 27 Apr 2010 11:55:44 +0200, Carsten Dominik wrote: >=20 >=20 > On Apr 18, 2010, at 7:32 PM, Jan B=C3=B6cker wrote: >=20 > > Hi all, > > > > I'd like to add a table of contents to a HTML export with body-only =20 > > set > > to t (to feed into jekyll later), but org-html.el automatically =20 > > disables > > the TOC when body-only is given. > > > > I have used the attached one-line patch without any problems, the =20 > > (still > > XHTML strict compliant) result can be seen here: > > > > http://www.jboecker.de/2010/04/14/general-reference-filing-with-org-mod= e.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? >=20 >=20 > 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. >=20 > 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 --=20 OpenPGP... 0x99ADB83B5A4478E6 Jabber.... dmjena@jabber.org Email..... dmaus@ictsoc.de --pgp-sign-Multipart_Tue_Apr_27_18:59:39_2010-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EABEIAAYFAkvXF/sACgkQma24O1pEeOZGGAD/aEvblVgiQ/YBJPi8+zRElLKV pl51cT+wxd/wQs9QetcBAIYuOX/foTDuQx6ecENCdWSyYaxVVr0assm60VfGDoVP =4kcX -----END PGP SIGNATURE----- --pgp-sign-Multipart_Tue_Apr_27_18:59:39_2010-1-- --===============1947717212== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1947717212==--