Possible Duplicate:
Excluding chapters from ToC in amsbook

is it possible in LaTeX to have numbered chapters inside the appendix, without having them appear in the Table of Contents (TOC)?

• It works but it doesn't show anything, neither the bibliography. I'd like hiding all chapters of appendix, but showing both appendix (only one generic entry for the start of the appendix) and bibliography. Aug 17 '12 at 9:47

\addtocontents{toc}{\setcounter{tocdepth}{-1}}