Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

share|improve this question
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
add comment

closed as not a real question by Joseph Wright Nov 5 '11 at 6:48

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers

up vote 1 down vote accepted

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.

share|improve this answer
add comment
\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.

share|improve this answer
    
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
add comment

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