1

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?

  • Add \clear(double)page before \printindex? – Bernard Jul 14 '16 at 10:35
  • @Bernard I don't use the command \printindex but only \tableofcontents... – andreasvr Jul 14 '16 at 10:37
  • Do you mean the “table of contents”? In the standard classes, \chapter*{...} does not insert an entry in the table of contents, so an example is needed. What document class are you using? – egreg Jul 14 '16 at 10:48
  • @Bernard Yes I mean table of contents. I'm using "amsbook" and I would like to write the acknowledgments before it. My problem is that this appear in t.o.c. and i don't know how to hide it. I try to follow this post tex.stackexchange.com/questions/20543/… but it doesn't work.. – andreasvr Jul 14 '16 at 10:53
  • @andreassvr: Initially, I read ‘the index’, whence my suggestion. Seemed weird, though. I don't know the details of amsbook, but try, before the acknowledgments, \setcounter{tocnumdepth}{-1}, and put the whole in a group. – Bernard Jul 14 '16 at 11:00
2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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