emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Aankhen <aankhen@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>,
	Jambunathan K <kjambunathan@gmail.com>
Subject: Re: Re: export options toc:t depends on num:t
Date: Wed, 6 Apr 2011 11:36:54 -0500	[thread overview]
Message-ID: <BANLkTimKtHJmH2QUgu-Hf1KRh+4AK-i5qg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTim24tqLMGVAjaY7LUmVugXGrXuHDA@mail.gmail.com>

On Wed, Apr 6, 2011 at 4:20 AM, Aankhen <aankhen@gmail.com> wrote:
> On Wed, Apr 6, 2011 at 10:18, Jambunathan K <kjambunathan@gmail.com> wrote:
>> John Hendy <jw.hendy@gmail.com> 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.  The starred versions of the
> sectioning commands suppress the entry in the TOC as well.  It’s
> possible to manually add the entry regardless, so maybe that needs to
> be special-cased in the exporter.  It’d look like this:
>
> ,----
> | \phantomsection                 % 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
>

      reply	other threads:[~2011-04-06 16:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-06  3:04 export options toc:t depends on num:t John Hendy
2011-04-06  4:48 ` Jambunathan K
2011-04-06  9:20   ` Aankhen
2011-04-06 16:36     ` John Hendy [this message]

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

  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=BANLkTimKtHJmH2QUgu-Hf1KRh+4AK-i5qg@mail.gmail.com \
    --to=jw.hendy@gmail.com \
    --cc=aankhen@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kjambunathan@gmail.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 public inbox

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

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).