From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: org-e-html and table of contents Date: Thu, 23 Aug 2012 10:41:23 -0600 Message-ID: <871uix5znw.fsf@gmx.com> References: <87d32h63lg.fsf@gmx.com> <11332.1345737403@alphaville> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:52665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4akY-00087w-1F for emacs-orgmode@gnu.org; Thu, 23 Aug 2012 12:59:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4akW-0004c1-SQ for emacs-orgmode@gnu.org; Thu, 23 Aug 2012 12:59:17 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:56781) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1T4akW-0004bg-Lz for emacs-orgmode@gnu.org; Thu, 23 Aug 2012 12:59:16 -0400 In-Reply-To: <11332.1345737403@alphaville> (Nick Dokos's message of "Thu, 23 Aug 2012 11:56:43 -0400") 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: nicholas.dokos@hp.com Cc: Org Mode Mailing List --=-=-= Content-Type: text/plain Nick Dokos writes: > Eric Schulte 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"))' --=-=-= Content-Type: text/x-org Content-Disposition: attachment; filename=example.org #+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 --=-=-= Content-Type: text/plain -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--