From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?SmFuIELDtmNrZXI=?= Subject: Re: how to both :body-only t and :table-of-contents t Date: Fri, 23 Sep 2011 09:51:11 +0200 Message-ID: <4E7C3A6F.9060007@jboecker.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49599) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R70XV-0000cz-Bv for emacs-orgmode@gnu.org; Fri, 23 Sep 2011 03:51:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R70XT-0004Tk-Pd for emacs-orgmode@gnu.org; Fri, 23 Sep 2011 03:51:17 -0400 Received: from smtp01.worldserver.net ([217.13.200.37]:45739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R70XT-0004Sv-Ks for emacs-orgmode@gnu.org; Fri, 23 Sep 2011 03:51:15 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "G. Jay Kerns" Cc: emacs-orgmode@gnu.org On 09/21/2011 09:40 PM, G. Jay Kerns wrote: > In other words, it looks like I am obliged to :body-only t which cuts > out header/footer/TOC or I can NOT do :body-only t which will give me > the TOC plus a bunch of extra stuff. > > My question: is it possible to do what I want? Is there some sort of > YAML {{ page.toc }} that I'm missing somewhere, or is there some > combination of publishing options that I've missed that will export an > org file to an HTML file that looks like this: Hi Jay, I faced the same problem about a year ago. See this thread in the mailing list archive: http://thread.gmane.org/gmane.emacs.orgmode/24227 The HTML exporter will refuse to include a TOC if body-only is t; the atom exporter and a "send HTML messages with Wanderlust" hack relied on that behaviour, which is why this was not changed in the official Org repository. You can either apply the one-line patch I included in the linked thread or ask Ian Barton about his solution using jQuery he mentioned at the end of that thread. HTH, Jan