Tell me more ×
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 have this code

\documentclass[11pt]{article}

\usepackage[landscape,twocolumn, margin=2cm]{geometry}
\usepackage{fancyhdr,lipsum}
\usepackage[utf8]{inputenc}

\pagestyle{fancy}

\fancyhf{}

\lfoot{\makebox[\columnwidth]{\thepage}}
\rfoot{\makebox[\columnwidth]{\number\numexpr\value{page}+1}\stepcounter{page}}

\setlength{\columnsep}{1.5cm}

\begin{document}
\tableofcontents
    \newpage
\section{Tarjet}
    \newpage
\section{Material}
    \newpage
\section{Equipment}
    \newpage
\section{Theoretical introduction}
    \newpage
\section{Experimental development}
    \newpage
\section{Calculations}
    \newpage
\section{Circuit simulations}
    \newpage
\section{Comparison between calculated values, measured values and simulated values}
    \newpage
\section{Questionnaire}
    \newpage
\section{Conclusions}
    \newpage
\section{Bibliography}
\begin{thebibliography}{9}

        \bibitem x

\end{thebibliography}

\end{document}

Is just a table of contents and some pages with the title of a section.

The table of contents I get is this:

enter image description here

But the page numbers on the table of contents are wrong.

They should be 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12

It just takes the number of the right page.

Can anyone help me to correct this?

share|improve this question
3  
You're numbering columns, not pages ... maybe pgfpages could be of use? (not sure, sorry) – Sašo Živanović Feb 10 at 22:05
The standard TOC set up expects one page per page, unsurprisingly! If you want a 'two up' layout it's normal to first make a standard PDF then either combine in the PDF or print appropriately. – Joseph Wright Feb 12 at 8:52

closed as too localized by lockstep, Claudio Fiandrino, diabonas, Kurt, Stefan Kottwitz Feb 15 at 17:54

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.