[OS X TeX] Re: Shallow table of contents

Ferguson, Don fergdc at uleth.ca
Wed May 19 04:03:09 EDT 2010


Greetings  "Aaron Jackson" <jackson at msrce.howard.edu>
On 18/05/2010 at 03:22 you wrote concerning
Re: [OS X TeX] Shallow table of contents

Hi Aaron,

AJ> Change tocdepth to what the depth you want i.e.

AJ> \setcounter{tocdepth}{3}

AJ> for chapters, sections and subsections.

Sounds like a simple solution, but ....

On setting tocdepth to 3, as in your example, I get a strange error message that vanishes if one comments out the line «\setcounter{tocdepth}{3}». Also, upon trying 

\setcounter{tocdepth}{2}

there was no error message and the TOC was constructed with 'three' levels: chapter, section, subsection. However, the indenting is poor. Instead of something like

Chapter 1. «title of chapter»
   1. Banach's View.
      1.1. Preliminary definitions.
      1.2. An interjection.

there appeared:

Chapter 1. «title of chapter»
   1. Banach's View.
   1.1. Preliminary definitions.
   1.2. An interjection.

For example,on examining Grätzer's TOC, I see three 'levels' with nice indentation:

5 Typing text                                                                  61
  5.1 The keyboard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
       5.1.1 Basic keys . . . . . . . . . .  . . . . . . . . . . . . . . . . . 62
       5.1.2 Special keys . . . . . . . . .  . . . . . . . . . . . . . . . . . 63
       5.1.3 Prohibited keys . . . . . . . . . . . . . . . . . . . . . . . . . 63

Did not notice previously, but it appears that three levels is the max! Is that true?

How do you get the chapter number included automatically as in the Grätzer example?

Many thanks for you help.


Cheers,     Don (The Green Dragon)




More information about the MacOSX-TeX mailing list