I have noticed the same problem occurs if you have two abstracts on separate pages. So I don't think there's a problem with my acknowledgement environment
Here is the minimal working example
Code: Select all
\documentclass[a4paper, 11pt]{report}
\makeatletter
\newcommand\ackname{Acknowledgements}
\if@titlepage
\newenvironment{acknowledgements}{%
\titlepage
\null\vfil
\@beginparpenalty\@lowpenalty
\begin{center}%
\bfseries \ackname
\@endparpenalty\@M
\end{center}}%
{\par\vfil\null\endtitlepage}
\else
\newenvironment{acknowledgements}{%
\if@twocolumn
\section*{\abstractname}%
\else
\small
\begin{center}%
{\bfseries \ackname\vspace{-.5em}\vspace{\z@}}%
\end{center}%
\quotation
\fi}
{\if@twocolumn\else\endquotation\fi}
\fi
\makeatother
\usepackage{hyperref}
\title{My Title}
\author{Matt}
\begin{document}
\maketitle
\pagenumbering{roman}
\newpage
\setcounter{page}{1}
\phantomsection
\addcontentsline{toc}{chapter}{Abstract}
\begin{abstract}
The abstract!
\end{abstract}
\newpage
\setcounter{page}{2}
\phantomsection
\addcontentsline{toc}{chapter}{Acknowledgements}
\begin{acknowledgements}
Thanks!
\end{acknowledgements}
\newpage
\setcounter{page}{3}
\phantomsection
\addcontentsline{toc}{chapter}{Contents}
\tableofcontents
\end{document}