# Fancyheaders: how to turn off the page number on the first page? [duplicate]

Possible Duplicate:
Custom first page with fancyhdr

I don't know how to turn off the page number on the first page of the following article with different headers on odd and even pages. I tried \thispagestyle{empty} after \begin{document} but it doesn't work. The rest is OK.

 \documentclass[a4paper,12pt,twoside]{article}
\usepackage{lipsum}
\newcommand\shorttitle{The Short Title}
\newcommand\authors{Author}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\begin{document}
\thispagestyle{empty}
\title{The Full Title}
\author{Author}
\maketitle
\section{Section A}
\lipsum[1-2]
\section{Section B}
\lipsum[3-10]
\end{document}


ADDED. I don't want any header or footer on the first page.

ADDED 2: As commented by Herbert writing \fancypagestyle{plain}{\fancyhf{}}after \usepackage{fancyhdr} makes what I want.

EDIT: \thispagestyle{empty} is not needed. The revised code becomes

 \documentclass[a4paper,12pt,twoside]{article}
\usepackage{lipsum}
\newcommand\shorttitle{The Short Title}
\newcommand\authors{Author}
\usepackage{fancyhdr}
\fancypagestyle{plain}{\fancyhf{}}
\pagestyle{fancy}
\fancyhf{}
\begin{document}
\title{The Full Title}
\author{Author}
\maketitle
\section{Section A}
\lipsum[1-2]
\section{Section B}
\lipsum[3-10]
\end{document}

-

## marked as duplicate by egreg, Marco Daniel, percusse, barbara beeton, zerothSep 28 '12 at 13:04

@Herbert I did read. The \fancypagestyle{plain}{\fancyhf{}}after \usepackage{fancyhdr}fixed the problem. Many thanks! –  Américo Tavares Sep 28 '12 at 11:42
\maketitle uses pagestyle plain. Writing \fancypagestyle{plain}{}  after loading the package should help
I've written \fancypagestyle{plain}{}after \usepackage{fancyhdr}. This removed the page number on the footer of the first page, but it has the undesired effect of making a header on the first page too, which I don't want. –  Américo Tavares Sep 28 '12 at 11:15
then use \fancypagestyle{plain}{\fancyhf{}} –  Herbert Sep 28 '12 at 11:17
Add also \renewcommand{\headrulewidth}{0pt} if the rule is not wanted in the first page. –  egreg Sep 28 '12 at 11:38
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.5581687092781067, "perplexity": 5196.591603203866}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-06/segments/1422122123549.67/warc/CC-MAIN-20150124175523-00060-ip-10-180-212-252.ec2.internal.warc.gz"}