The AMS suggests to remove a TOC entry from an amsart
document by suppressing the entry just before it is to be added to the TOC.
Their solution works without the biblatex
package loaded. However, when I load the biblatex
package, it fails, and that TOC entry is still printed even with the skip command. Please see the below MWE demonstrating the problem.
\documentclass{amsart}
% \usepackage{biblatex} %uncomment to see difference
\DeclareRobustCommand{\SkipTocEntry}[4]{}
\begin{document}
\tableofcontents
\addtocontents{toc}{\SkipTocEntry}
\section{First}
\end{document}
Notice that it is not necessary to use biber
in the compilation to demonstrate the issue. Using pdflatex
on the document alone shows the difference.
biblatex
you need to gobble more in the.toc
file, sincebiblatex
writes some commands to that file.\DeclareRobustCommand{\SkipTocEntry}[8]{}
works.