PDA

View Full Version : Weird page numbering problem in LaTeX


kb03y
Jan20-10, 04:25 PM
Hello people.
I seem to have run into an odd problem with my page numbering. Whatever I do to the \setcounter{page}{#} command, it just won't let my first "real" page be number 1. Can you find the problem?

Here is the code:


\documentclass[10pt,a4paper,danish]{article}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{siunitx}
\usepackage{amsmath,amsthm,amssymb}
\usepackage{graphicx}
\usepackage[top=4cm, bottom=4cm, left=2.5cm, right=2.5cm]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{caption}
\DeclareCaptionLabelSeparator{tilpasning}{:\quad}
\captionsetup{font=footnotesize,labelfont=sc,label sep=tilpasning,width=.9\textwidth}

\setcounter{page}{2}
\setcounter{section}{0}

\lhead{}
\chead{}
\rhead{}
\lfoot{}
\cfoot{\rule{\linewidth}{0.5pt}\\Side \thepage}
\rfoot{}


\begin{document}
\begin{titlepage}
This is title
\end{titlepage}

\tableofcontents
\thispagestyle{empty}

\newpage

\section{section}
Yeah, man.
\subsection{cool}
Hello world

\end{document}