From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: meaning of body-only in org-export-as-html Date: Thu, 22 Mar 2012 14:51:29 +0000 Message-ID: <87haxgheoe.fsf@gmail.com> References: <87k42k18i5.fsf@gmail.com> Reply-To: emacs-orgmode@gnu.org, Myles English Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:59553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAjIL-00005n-5g for emacs-orgmode@gnu.org; Thu, 22 Mar 2012 10:47:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAjIE-0002rW-4w for emacs-orgmode@gnu.org; Thu, 22 Mar 2012 10:47:16 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:55055) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAjID-0002ou-Rr for emacs-orgmode@gnu.org; Thu, 22 Mar 2012 10:47:10 -0400 Received: by wgbdr1 with SMTP id dr1so1073273wgb.30 for ; Thu, 22 Mar 2012 07:47:07 -0700 (PDT) In-Reply-To: <87k42k18i5.fsf@gmail.com> (Chris Gray's message of "Fri, 16 Mar 2012 16:33:22 -0600") 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: Chris Gray Cc: emacs-orgmode Mode Hi Chris, >> On Fri, 16 Mar 2012 16:33:22 -0600, Chris Gray said: > Hello, I am using org-export-as-html with the body-only parameter > set to t in the org plugin for ikiwiki that I'm working on. It > works almost perfectly, but I recently had a user point out that > it's not possible to get a table of contents, even when one is > explicitly asked for in the #+OPTIONS line of the org file. > Since the table of contents is part of the body (at least in the > sense that it is between the tags), I found this surprising. > So would it cause problems to change the line > (if (and org-export-with-toc (not body-only)) ...) > to > (if org-export-with-toc ...) > in org-export-as-html? I see one problem in that it would be then be inconsistent with org-export-as-ascii which considers the TOC to be part of the header. I would like to be able to export just the TOC (as ascii, and I understand a new ascii exporter has been written lately). The same thing for the html exporter would presumably solve your problem too because then you could export TOC+body (as html)? > Cheers, Chris Myles