Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want that the Problem's part of my book be considered at the table of content but I don't want it be numbered in my main text as a section . How can I Handle it ?

\dodumentclass{book}
\begin{document}‎

‎\maketitle‎
\tableofcontents‎
‎\listoffigures‎ 
\listoftables‎  
        ‎
\section{problem}
\end{document}‎
share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

If your chapters end with a "Problems" section, the best is to define a macro to do the job in a consistent way:

\newcommand{\problems}{%
  \section*{Problems}
  \addcontentsline{toc}{section}{Problems}}

Then you'll simply say

\problems

<Here the list of problems>

The key is the \addcontentsline, that adds the entry to the table of contents. You might need to add something to adjust the headers, if you use them.

share|improve this answer
    
thank you very much egreg –  Negin Jul 12 '11 at 16:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.