Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

By default TeX prints the page number at the bottom of the page. I added a custom header so that the page number appears in the top right hand corner.

So I have the page number in two places, at the bottom of the page and in my header.

How do I get rid of the page number that is at the bottom of the page?

share|improve this question
1  
This depends on how you place the page number in the top right. Is it done using fancyhdr? Then you can add \fancyhf{} at the start of your fancy page style definition to clear everything before setting only the header. –  Werner Dec 20 '12 at 20:09
2  
Note that the default for chapter-style pages (in the supported document classes, like report and book) set the first page of each chapter as plain. So which \documentclass are you using? –  Werner Dec 20 '12 at 20:11
add comment

1 Answer 1

up vote 2 down vote accepted

I would suggest using the fancyhdr package. It allows you to set the headers and footers.

\documentclass{article}
\usepackage{lipsum}
\usepackage{fancyhdr}
\pagestyle{fancy}
%%
\lfoot{Left footer}
\cfoot{Center of footer}
\rfoot{Right of footer}
%%
\lhead{Left of header}
\chead{center of header (on page \thepage)}
\rhead{Right of header}
%%
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\begin{document}

\lipsum[1-2]

\end{document}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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