Page Layoutsuppressing page numbers with fancy header package

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
fayez
Posts: 13
Joined: Mon Dec 21, 2009 12:00 am

suppressing page numbers with fancy header package

Post by fayez »

How do I remove the page numbers on the bottom when I am using fancy header package, the \pagestyle{empty} removes both the top (which I put) and the default one.

Code: Select all

documentclass[10pt]{article}

\usepackage{fancyhdr}

\pagestyle{fancy}

\rhead{ Amplitude Modulation}
\chead{\thepage}
\lhead{ Communication Theory }

\end{document}
Thanks in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

suppressing page numbers with fancy header package

Post by localghost »

Actually the manual shows you how to do that.

Code: Select all

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{fancyhdr}
\usepackage{blindtext}

\fancyhf{}   % clear headers and footers
\rhead{Amplitude Modulation}
\chead{\thepage}
\lhead{Communication Theory}
\pagestyle{fancy}

\begin{document}
  \blinddocument
\end{document}

Best regards
Thorsten
fayez
Posts: 13
Joined: Mon Dec 21, 2009 12:00 am

Re: suppressing page numbers with fancy header package

Post by fayez »

Thank you.
Post Reply