For example, if I use amsbook document class and have the section Problems, how to include problem environments created like:
\documentclass[a4paper,12pt, reqno, oneside]{amsbook}
\usepackage{hyperref}
\begin{document}
\frontmatter
\setcounter{tocdepth}{4}
\tableofcontents
\mainmatter
\section{Problems}
\begin{problem}
...% I want this part to appear also in the table of contents.
\end{problem}
\end{document}
The chapters and sections appear in ToC and are clickable too. I want it for other environments, too.
How can I do that?
Thanks :)



Problem 1...123(page number) – Vahid Dec 21 '12 at 13:23