On Wed, Apr 6, 2011 at 4:20 AM, Aankhen <aank...@gmail.com> wrote:
> On Wed, Apr 6, 2011 at 10:18, Jambunathan K <kjambunat...@gmail.com> wrote:
>> John Hendy <jw.he...@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 via email to