4

I don't know why my table of contents doesn't appear in my table of contents!. I am writing:

\documentclass[10pt,a5paper,landscape]{report}
\usepackage{graphicx}
\usepackage[a5paper,vmargin={5mm,2mm},hmargin={5mm,5mm}]{geometry}
\usepackage[linktocpage]{hyperref}
\hypersetup{backref, colorlinks=true}
\title{ Questions }
\author{Alejandro}
\date{\today}
\begin{document}
\maketitle
\tableofcontents

What I am doing wrong?, or how could the numbering starts in chapter 1. Because now, my chapter 1 seems in page 2 in toc but actually it is the page 6.

This is how it looks

But my chapter 1 is on page 6 not page 2

2
  • 1
    Please add a minimal working example (MWE) that illustrates your problem. – N.N. Sep 6 '11 at 16:21
  • No real minimal example after some delay. Without more information, this question therefore cannot be answered fully. I'm closing. – Joseph Wright Nov 5 '11 at 6:48
2

When the page numbering is messed up with respect to the actual location of the table of contents, I've found that it sometimes helps to issue the command \clearpage -- or \cleardoublepage, if you're using a two-sided layout -- right before issuing the command \tableofcontents.

1
\documentclass[10pt,a5paper,landscape]{report}
\usepackage{graphicx}
\usepackage[a5paper,vmargin={5mm,2mm},hmargin={5mm,5mm}]{geometry}
\usepackage[linktocpage]{hyperref}
\hypersetup{backref, colorlinks=true}
\title{Questions}
\author{Alejandro}
\date{\today}
\begin{document}
\pagenumbering{Alph}
\maketitle
\pagenumbering{alph}
\tableofcontents
\pagenumbering{arabic}
\chapter{First}
...

The first two \pagenumbering commands are to keep hyperref happy.

5
  • Thanks @egreg just to be clear, when you wrote \pagenumbering{Alph} I should write Alph?, because I did it and it seems not to work :( – Alejandro Sep 6 '11 at 16:42
  • Works for me; what's the problem? – egreg Sep 6 '11 at 16:44
  • well, it doesn't change anything. pdf looks as before. :( – Alejandro Sep 6 '11 at 16:48
  • @Alejandro: pagenumering sets the counter page to 0. – Marco Daniel Sep 6 '11 at 16:48
  • @Alejandro What do you mean? With my code, Chapter 1 starts at page 1 and the ToC reflects it. I don't understand what you mean by "my chapter 1 is on page 6". Please, add something to your code so we can get a feeling about what's going wrong. – egreg Sep 6 '11 at 17:01

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