[OS X TeX] Exercises in ToC without number

Gary L. Gray gray at engr.psu.edu
Wed Jul 12 20:58:44 CEST 2006


On Jul 12, 2006, at 2:53 PM, Gary L. Gray wrote:

> On Jul 12, 2006, at 2:44 PM, Alain Schremmer wrote:
>
>> I would like "Exercises" at the end of each chapter not to be  
>> section-numbered but "Exercises" to appear in the table of contents.
>>
>> If I use
>>
>>    \section*{Exercises}
>>
>> Exercises are indeed not section-numbered but then neither do they  
>> appear in the table of contents.
>>
>> Is there a way that I can have my cake and eat it too?
>
> \addcontentsline{toc}{section}{Exercises}

By the way, it may not have been obvious, but this should be issued  
right after the \section* command, as in:

\section*{Exercises}
\addcontentsline{toc}{section}{Exercises}

-- Gary
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list