From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Re: export options toc:t depends on num:t Date: Wed, 6 Apr 2011 11:36:54 -0500 Message-ID: References: <8162qshtms.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=53538 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7Viy-0000RI-S8 for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 12:36:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7Vix-0001yP-Pa for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 12:36:56 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:37531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7Vix-0001y9-Je for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 12:36:55 -0400 Received: by bwz17 with SMTP id 17so1509226bwz.0 for ; Wed, 06 Apr 2011 09:36:54 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Aankhen Cc: emacs-orgmode , Jambunathan K On Wed, Apr 6, 2011 at 4:20 AM, Aankhen wrote: > On Wed, Apr 6, 2011 at 10:18, Jambunathan K wrot= e: >> John Hendy writes: >> [snip] >>> Maybe this is obvious to most, but I was puzzled by it. It seems that >>> ,--- >>> | #+options: toc:t >>> `--- >>> >>> will not function when paired with: >>> ,--- >>> | #+options: toc:t num:nil >>> `--- >> [snip] >> >> Is this a LaTeX specific behaviour? I don't see anything odd with HTML >> export. > > It likely is specific to LaTeX. =C2=A0The starred versions of the > sectioning commands suppress the entry in the TOC as well. =C2=A0It=E2=80= =99s > possible to manually add the entry regardless, so maybe that needs to > be special-cased in the exporter. =C2=A0It=E2=80=99d look like this: > > ,---- > | \phantomsection =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= % to make PDF bookmarks work properly > | \section*{Introduction} > | \addcontentsline{toc}{section}{Introduction} > `---- > > Alternatively, use the regular sectioning commands but add this before > \begin{document}: > > ,---- > | \setcounter{secnumdepth}{0} > `---- This works great and is easy to implement. Thanks! John > > Aankhen >