[Tex/LaTex] Remove acknowledgments from the table of contents

table of contents

I'm writing my thesis. I would like to insert the acknowledgments after the frontispiece and before the table of contents.

I write

\chapter*{Acknowledgments}

....

\thispagestyle{empty}

But the problem is that it appear in the table of contents and I don't want it. How can I do to exclude this chapter from the table of contents?

Best Answer

Indeed, the amsbook class defines \chapter* in such a way that an entry is added to the ToC. You need to define a special command “by hand”:

\documentclass[a4paper]{amsbook}
\usepackage[T1]{fontenc}

\makeatletter

\newcommand*\notocchapter[1]{%
  \if@openright\cleardoublepage\else\clearpage\fi
  \thispagestyle{empty}\global\@topnum\z@
  \@afterindenttrue
  \let\@secnumber\@empty
  \@makeschapterhead{#1}\@afterheading
}

\makeatother



\begin{document}

\tableofcontents

\notocchapter{Acknowledgments}
Thanks to everybody!

\chapter*{Introduction}
Introductory text.

\chapter{Genesis}
In the beginning God created the heavens and the earth.

\chapter{Exodus}
These are the names of the sons of Israel who went to Egypt with Jacob.

\end{document}

Edit: I’ve noticed that you want the empty page style on the acknowledgment page, so I’ve updated the above code accordingly.