From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Why does org-html.org refuse to export a table of contents when body-only is t? Date: Mon, 17 May 2010 14:49:06 +0100 Message-ID: <4BF14952.7050605@manor-farm.org> References: <4BCB4239.5050503@jboecker.de> <87d3xk4yro.wl%dmaus@ictsoc.de> <62D88016-7DF5-42F4-8FAB-3AF81B541EE4@gmail.com> Reply-To: lists@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=37237 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OE0hD-0000X1-Se for emacs-orgmode@gnu.org; Mon, 17 May 2010 09:49:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OE0h8-0004Ez-Gd for emacs-orgmode@gnu.org; Mon, 17 May 2010 09:49:27 -0400 Received: from mail.ian-barton.com ([109.74.196.44]:60914 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OE0h8-0004Cp-Ac for emacs-orgmode@gnu.org; Mon, 17 May 2010 09:49:22 -0400 Received: from localhost (mail.wilkesley.org [127.0.0.1]) by li40-130.members.linode.com (Postfix) with ESMTP id 31E73A938 for ; Mon, 17 May 2010 13:49:08 +0000 (UTC) Received: from li40-130.members.linode.com ([127.0.0.1]) by localhost (mail.manor-farm.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mGaoMDBNsXjT for ; Mon, 17 May 2010 13:49:08 +0000 (UTC) Received: from [192.168.0.60] (unknown [217.146.125.41]) (Authenticated sender: ian@manor-farm.org) by li40-130.members.linode.com (Postfix) with ESMTPSA id DD3F0A903 for ; Mon, 17 May 2010 13:49:07 +0000 (UTC) In-Reply-To: <62D88016-7DF5-42F4-8FAB-3AF81B541EE4@gmail.com> 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: emacs-orgmode@gnu.org >>>> >>>> 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 >>>> >>>> I have just run into the same problem, also using Jekyll. However, I have managed to generate a TOC using jQuery and a jQuery plugin. This turns out to be more flexible than using org directly. I can post more details if it's of any interest. Ian.