From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Include TOC in PDF export? Date: Fri, 02 Mar 2012 18:21:55 -0500 Message-ID: <8315.1330730515@alphaville> References: <1330727564.64930.YahooMailNeo@web161903.mail.bf1.yahoo.com> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3bnV-0005QU-FY for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 18:22:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S3bnT-0002Uv-LI for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 18:22:01 -0500 Received: from g5t0009.atlanta.hp.com ([15.192.0.46]:22964) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S3bnT-0002Ue-Fv for emacs-orgmode@gnu.org; Fri, 02 Mar 2012 18:21:59 -0500 In-Reply-To: Message from Michael Hannon of "Fri\, 02 Mar 2012 14\:32\:44 PST." <1330727564.64930.YahooMailNeo@web161903.mail.bf1.yahoo.com> 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: Michael Hannon Cc: nicholas.dokos@hp.com, Org-Mode List Michael Hannon wrote: > Greetings.=C2=A0 I'm exporting a document to both HTML and PDF.=C2=A0 In = the > HTML version, I get a table of contents.=C2=A0 In the PDF version, I do N= OT > get a table of contents.=C2=A0 The appended text illustrates the problem.= =C2=A0 > I'd like to get the TOC in both. >=20 num:nil causes unnumbered sections in latex (\section*{...}) which are not entered into the .toc file (that's a latex limitation, not an org-mode one), so the latex exporter wants both num: and toc: to be enabled before it produces a table of contents. I think the only way to get a TOC is to set num:t. You can probably rewrite a chunk of latex code so that unnumbered sections etc end up in the .toc file, but I think it would be a fairly major undertaking. Nick >=20 > I'm running: >=20 > =C2=A0=C2=A0=C2=A0 Org-mode version 7.8.03 (release_7.8.03.324.gc4b233) >=20 > in Fedora 16, 64-bit. >=20 > What am I missing? >=20 > Thanks, >=20 > -- Mike >=20 >=20 >=20 > #+TITLE: > #+OPTIONS: num:nil ^:{} toc:t >=20 > * Tale of Two Cities >=20 > *It was the best of times, it was the worst of times* >=20 > It was the best of times, it was the worst of times, it was the age of > wisdom, it was the age of foolishness, it was the epoch of belief, it > was the epoch of incredulity, it was the season of Light, it was the > season of Darkness, it was the spring of hope, it was the winter of > despair, we had everything before us, we had nothing before us, we > were all going direct to heaven, we were all going direct the other > way - in short, the period was so far like the present period, that > some of its noisiest authorities insisted on its being received, for > good or for evil, in the superlative degree of comparison only. >=20 > * David Copperfield >=20 > *Barkis is willin* >=20 > As he repudiated this suggestion, however, with a jerk of his head, > and once more confirmed his previous request by saying, with profound > gravity, 'Barkis is willin'. That's the message,' I readily undertook > its transmission. While I was waiting for the coach in the hotel at > Yarmouth that very afternoon, I procured a sheet of paper and an > inkstand, and wrote a note to Peggotty, which ran thus: 'My dear > Peggotty. I have come here safe. Barkis is willing. My love to > mama. Yours affectionately. P.S. He says he particularly wants you to > know - BARKIS IS WILLING.' >=20