Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Weird page numbering problem in LaTeX

  1. Jan 20, 2010 #1
    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 (Text):

    \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}
     
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted