From mboxrd@z Thu Jan 1 00:00:00 1970 From: "G. Jay Kerns" Subject: how to both :body-only t and :table-of-contents t Date: Wed, 21 Sep 2011 15:40:48 -0400 Message-ID: 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]:41600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6SfP-0007Ga-CY for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 15:41:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6SfO-0000Cs-FR for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 15:41:11 -0400 Received: from ppoint3.cc.ysu.edu ([150.134.10.214]:40846) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6SfO-0000Cg-Bk for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 15:41:10 -0400 Received: from pps.filterd (ppoint3 [127.0.0.1]) by ppoint3.cc.ysu.edu (8.14.4/8.14.4) with SMTP id p8LJcM7X004087 for ; Wed, 21 Sep 2011 15:41:08 -0400 Received: from myysumail.ysu.edu (myysumail.cc.ysu.edu [150.134.10.132]) by ppoint3.cc.ysu.edu with ESMTP id yxhxfh7a1-1 for ; Wed, 21 Sep 2011 15:41:08 -0400 Received: from mail-yi0-f41.google.com ([209.85.218.41]) by myysumail.ysu.edu (Sun Java System Messaging Server 6.2-9.20 (built Jul 15 2010)) with ESMTPSA id <0LRW002B41CK0720@myysumail.ysu.edu> for emacs-orgmode@gnu.org; Wed, 21 Sep 2011 15:41:08 -0400 (EDT) Received: by yia25 with SMTP id 25so1722532yia.0 for ; Wed, 21 Sep 2011 12:41:08 -0700 (PDT) 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: emacs-orgmode@gnu.org Dear Org Mode list, First: congratulations on Org mode; it is truly dynamite. I am publishing a project to HTML for the purposes of Jekyll post-processing. For this, I need to set :body-only t so I can put the YAML frontmatter at the top of my file. However, I would also like to have the TOC exported (only), right after the tag, which it correctly does whenever :body-only isn't t. 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: --- layout: default title: whatever --- Rest of exported content here....? Thanks for any advice, and again, THANK YOU to the Org Mode team. Best, Jay