emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: Chris Gray <chrismgray@gmail.com>
Cc: emacs-orgmode Mode <emacs-orgmode@gnu.org>
Subject: Re: meaning of body-only in org-export-as-html
Date: Thu, 22 Mar 2012 14:51:29 +0000	[thread overview]
Message-ID: <87haxgheoe.fsf@gmail.com> (raw)
In-Reply-To: <87k42k18i5.fsf@gmail.com> (Chris Gray's message of "Fri, 16 Mar 2012 16:33:22 -0600")

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 <body> 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


  reply	other threads:[~2012-03-22 14:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-16 22:33 Chris Gray
2012-03-22 14:51 ` Myles English [this message]
2012-03-31 22:47   ` [patch] " Chris Gray
2012-04-02  8:07     ` Bastien
2012-04-03 16:40       ` Chris Gray
2012-04-03 18:12         ` Bastien
2012-04-04  7:06         ` Bastien
2012-04-04 18:24           ` Chris Gray

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87haxgheoe.fsf@gmail.com \
    --to=mylesenglish@gmail.com \
    --cc=chrismgray@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: meaning of body-only in org-export-as-html' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).