# Table of Contents without Appendix chapters in Latex [duplicate]

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)?

-

## migrated from stackoverflow.comAug 8 '12 at 19:26

This question came from our site for professional and enthusiast programmers.

## marked as duplicate by Werner, percusse, Martin Schröder, Marco Daniel, Tom BombadilAug 23 '12 at 20:52

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. –  auino Aug 17 '12 at 9:47
``````\addtocontents{toc}{\setcounter{tocdepth}{-1}}