Weird page numbering problem in LaTeX

  • Context: LaTeX 
  • Thread starter Thread starter kb03y
  • Start date Start date
  • Tags Tags
    Latex Weird
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 8K views
kb03y
Messages
1
Reaction score
0
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:

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,labelsep=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}
 
Physics news on Phys.org