2

I customized my footer so that the page number will be on the right side of the footer instead of its default location which is the center of the footer. When I generated my file, the page number appeared on both the right side and the center. How do I get rid of the page number in the center?

Also, how do I get rid of the header?

\usepackage{fancyhdr}
\pagestyle{fancy}
\lfoot{\textsf{www.economics-ejournal.org}}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0pt}

\begin{document}
Content here.
\end{document}
3
  • 1
    Please add a minimal working example! Aug 24, 2014 at 12:31
  • 4
    Add \fancyhf{} after \pagestyle{fancy}
    – user11232
    Aug 24, 2014 at 12:36
  • @percusse: I did not check what Haris Kumar proposed, I referred to Reg' statement, that it worked ;-)
    – user31729
    Aug 26, 2014 at 20:14

2 Answers 2

4

Converting my comment in to answer, just to close this.

When you define and apply a fancy page style, you need to empty the previous values/definitions of headers and footers. This is done by issuing

\fancyhf{}

in the definition as

\pagestyle{fancy}
\fancyhf{}        %% <--- here
\lfoot{\textsf{www.economics-ejournal.org}}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0pt}

After this, your problem should go away.

0

In my opinion, for your requirements the answer provided by Harish Kumar should be sufficient. As an alternative, following two lines can replace \lfoot and \rfoot commands in that answer:

\fancyfoot[L]{\textsf{www.economics-ejournal.org}}
\fancyfoot[R]{\thepage}

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.