I'm working on a document, and I don't want numbering on my front page, so I placed a \thispagestyle{empty}
.
Now at my ToC, I use \setcounter{page}{1}
. But my document still counters the ToC page as page number 2 when I use \thepage
in the footnote.
Does anyone know how to fix this?
\documentclass{article}
\usepackage{graphicx}
\usepackage{fancyhdr}
\setcounter{tocdepth}{2}
\pagestyle{fancy}
\fancyhf{}
\lhead{EMG Document Process Tool}
\rhead{\includegraphics[height=1cm,width=3cm]{HeaderPicture.png}}
\lfoot{Manual}
\rfoot{J. Doe \\{Pagina \thepage}}
\graphicspath{/home/bitbucket/stage}
\author{John Doe}
\date{Januari 2015}
\title{Manual\\{\large EMG Document Process Tool}}
\begin{document}
\maketitle
\thispagestyle{empty}
\includegraphics[width=\textwidth]{Azm.png}
\pagebreak
\tableofcontents
\setcounter{page}{1}
\pagebreak
\section{Install}
text
\section{text}
text
\begin{enumerate}
\item text
\end{enumerate}
\subsection{text}
text
\pagebreak
\section{text}
text
\begin{enumerate}
\item text
\end{enumerate}
\pagebreak
\section{text}
text
\begin{enumerate}
\item text
\end{enumerate}
\pagebreak
\section{text}
\includegraphics[width=\textwidth]{Programma.png}
\pagebreak
\section{text}
\subsection{text}
text
\includegraphics[width=\textwidth]{VerschilMeting.png}
text
\end{document}
Best Answer
Put
\setcounter{page}{1}
before\tableofcontents
and it is better to use\clearpage
than\pagebreak
. Further, you will get a warning fromfancyhdr
regarding the head height. To silence that you need to add\setlength{\headheight}{33pt}
(33pt
is obtained from that warning).