From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Gray Subject: meaning of body-only in org-export-as-html Date: Fri, 16 Mar 2012 16:33:22 -0600 Message-ID: <87k42k18i5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8fiT-0002kI-Mm for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 18:33:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8fiF-00079m-Uy for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 18:33:45 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:42096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8fiF-00077m-En for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 18:33:31 -0400 Received: by dadv6 with SMTP id v6so7346177dad.0 for ; Fri, 16 Mar 2012 15:33:28 -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 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? Cheers, Chris