0

This question already has an answer here:

My institution requires a summary of a report to be on page iii, then the table of contents start on page v (there is other front matter inserted by the publications dept on pages i, ii and iv). I have manually set the page numbers, and manually added the summary to the TOC, but the page number for the summary is listed as v, when it should be iii. Can I specify the page number in the \addcontentsline command?

\documentclass{article}
\begin{document} 
\pagenumbering{roman}
\setcounter{page}{3}
\section*{Summary}

\newpage
\setcounter{page}{5}
\addcontentsline{toc}{section}{Summary}
\tableofcontents
\end{document}

marked as duplicate by Werner, Mico, barbara beeton, T. Verron, user31729 Aug 27 '14 at 18:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Try reversing the order of the \section and \setcounter commands. – John Kormylo Aug 27 '14 at 17:24
  • \addcontentsline writes to the .toc file at page shipout. To that end it will write the page number of whatever page it is on. Clearly you've placed it on the wrong page (page 5 or v). Place it on the same page as where Summary is - either before or after \section*{Summary}, depending on how long the Summary is. – Werner Aug 27 '14 at 17:42
0

John Kormylo's comment didn't quite work, but it helped me refine my search and I found this previous question Table of Contents incorrect page numbering

I was able to fix my problem by moving the \addcontentsline before the \section line.

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