2

I am using fancyhdr and this is my preamble. The first page still has 1 in the footer while other pages have Page 2, Page 3 and so on. How to remove the 1 on the first page?

\documentclass[10pt,a4paper]{article}
\usepackage[scale=0.82]{geometry}
\usepackage{fancyhdr}
\fontencoding{T1}
\renewcommand{\familydefault}{\sfdefault}
\pagestyle{fancy}
\fancyhf{}
\lhead{something here}
\cfoot{Page \thepage}
  • After \begin{document} add \thispagestyle{empty}. – Zarko Feb 5 '16 at 2:43
2

You're probably also issuing \maketitle, which issues \thispagestyle{plain}. The plain page style inserts the footer only (as \thepage). As such, you can override this and issue \thispagestyle{empty} immediately after \maketitle:

enter image description here

\documentclass{article}

\usepackage{fancyhdr,lipsum}

\fancyhf{}
\lhead{something here}
\cfoot{Page \thepage}
\pagestyle{fancy}

\title{A title}
\author{An author}

\begin{document}

\maketitle% This also issues \thispagestyle{plain}, so...
\thispagestyle{empty}% ...remove headers & footers

\lipsum[1-20]

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.