all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Schulte <eric.schulte@gmx.com>
To: nicholas.dokos@hp.com
Cc: Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: org-e-html and table of contents
Date: Thu, 23 Aug 2012 10:41:23 -0600	[thread overview]
Message-ID: <871uix5znw.fsf@gmx.com> (raw)
In-Reply-To: <11332.1345737403@alphaville> (Nick Dokos's message of "Thu, 23 Aug 2012 11:56:43 -0400")

[-- Attachment #1: Type: text/plain, Size: 1070 bytes --]

Nick Dokos <nicholas.dokos@hp.com> writes:

> Eric Schulte <eric.schulte@gmx.com> wrote:
>
>> Hi,
>> 
>> I've been using the new html exporter (org-e-html) recently, and I'm
>> surprised that it does not add tables of contents by default.  Is there
>> a user variable which I can customize to change this default?  Currently
>> the only way I see to add a table of contents is to add a TOC keyword to
>> the buffer.
>> 
>
> org-export-with-toc perhaps?
>
> Nick
>

Nope,

With this variable set to t the e-html backend does *not* produce a
table of contents.  To demonstrate, run the following from the command
line with the attached Org-mode file (although any file will do) saved
to /tmp/example.org.

    # -*- shell-script -*-
    emacs --batch -l path/to/org-mode/lisp/org-element.el \
                  -l path/to/org-mode/contrib/lisp/org-export.el \
                  -l path/to/org-mode/contrib/lisp/org-e-html.el \
                  /tmp/example.org \
          --eval '(let ((org-export-with-toc t)) (org-export-to-file (quote e-html) "/tmp/example.html"))'


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: example.org --]
[-- Type: text/x-org, Size: 541 bytes --]

#+Title: example file

* foo
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam
nisl, tincidunt et, mattis eget, convallis nec, purus. Cum sociis
natoque penatibus et magnis dis parturient montes, nascetur ridiculus
mus. Nulla posuere. Donec vitae dolor. Nullam tristique diam non
turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum
accumsan nisl.

* bar
| one   | two  |
| three | four |

* baz
** sub one
- one
- two

** sub two
- three
- four

[-- Attachment #3: Type: text/plain, Size: 46 bytes --]


-- 
Eric Schulte
http://cs.unm.edu/~eschulte

  reply	other threads:[~2012-08-23 16:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-23  1:55 org-e-html and table of contents Eric Schulte
2012-08-23 15:56 ` Nick Dokos
2012-08-23 16:41   ` Eric Schulte [this message]
2012-08-23 17:52     ` Nick Dokos
2012-08-23 18:42       ` Eric Schulte
2012-08-23 19:29         ` Nick Dokos
2012-08-23 19:39           ` Nicolas Goaziou

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=871uix5znw.fsf@gmx.com \
    --to=eric.schulte@gmx.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.