Re: [O] Re: export options toc:t depends on num:t

2011-04-06 Thread Aankhen
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}
`

Aankhen



Re: [O] Re: export options toc:t depends on num:t

2011-04-06 Thread John Hendy
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




[O] Re: export options toc:t depends on num:t

2011-04-05 Thread Jambunathan K
John Hendy jw.he...@gmail.com writes:

 Hi,


 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
 `---

 Anyway, if these two are necessary, perhaps the manual could be
 updated (http://orgmode.org/manual/Export-options.html#Export-options):
 ,---
 | toc:   turn on/off table of contents, or set level limit
 (integer); requires num:t or no setting (t is default for num)
 `---

 Or something to that effect.

Is this a LaTeX specific behaviour? I don't see anything odd with HTML
export.

Jambunathan K.

--