Page LayoutTableofcontents show a wrong page number!

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
marcoesteves
Posts: 18
Joined: Tue Jun 09, 2009 3:33 pm

Tableofcontents show a wrong page number!

Post by marcoesteves »

Hello,
I'm doing a paper report, and I use 2 types of numbering.
But the issue is, One of my pages, appear iv at tableofcontents and v is the number printed at page.

I've got a main file, and I make the titlepage there.

Code: Select all

\begin{document}

\begin{titlepage}
\begin{center}
\medskip
\vskip 1cm
\begin{huge}\textsc{Simulação baseada em agentes}\end{huge}
\medskip
\vskip 5cm
\begin{large}\textsc{Marco Esteves}\end{large}
\medskip
\vskip 3cm
\begin{LARGE}\textsc{$MIE^{2}IC$}\end{LARGE}
\medskip
\vskip 2cm
\begin{Large}\textsc{Escola de Engenharia}\end{Large}
\medskip
\vskip 1cm
\begin{Large}\textsc{Universidade do Minho}\end{Large}
\medskip%\vspace{14,5cm}
\vfill
\begin{large}\textsc{Guimarães}\end{large}
\vskip 1cm
\begin{large}\textsc{Junho 2009}\end{large}
\end{center}
\end{titlepage}

%--------------------------------------------------

	\pagenumbering{Alph}

%--------------------------------------------------
	\frontmatter %switch page numbering to Roman numerals and sections be non enumerated


	
%--------------------------------------------------	
\linespread{ 2.0 }
\tableofcontents
\include{sumario}
\listoffigures
\listoftables
\linespread{ 1.5 }
%next all chapter includes
"Sumario" is the chapter with wrong page.
And this is the code, of sumario

Code: Select all

\addcontentsline{toc}{chapter}{Sumário}
\chapter*{Sumário}
I wanna this chapter appear at tableofcontents but without number of chapter.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Tableofcontents show a wrong page number!

Post by frabjous »

It would have been helpful for testing to know what documentclass, class options, additional packages, etc., you're using, and see where your \mainmatter command comes in.

Still, you probably just need to use either:

Code: Select all

\cleardoublepage
\addcontentsline{toc}{chapter}{Sumário}
\chapter*{Sumário}
or

Code: Select all

\clearpage
\addcontentsline{toc}{chapter}{Sumário}
\chapter*{Sumário}
depending on whether you're using the "openright" or "openany" options (e.g., whether all chapters start on recto pages, or can start on verso too).
marcoesteves
Posts: 18
Joined: Tue Jun 09, 2009 3:33 pm

Tableofcontents show a wrong page number!

Post by marcoesteves »

Thank you
I'm using

Code: Select all

\documentclass[a4paper, 12pt, openright, notitlepage, twoside]{book}
So,

Code: Select all

\cleardoublepage
is solution!
Post Reply