0

I like the format of \pagestyle{header}, however, I want the page number to remain in the footer. Is there any simple way to achieve this?

Here is my MWE

\documentclass[12pt, a4paper,twoside]{article}
\begin{document}
\pagestyle{headings}

\section{Introduction}
Hello
\end{document}

This is what the result looks like:

enter image description here

I would like the number to remain in the footer. Any solutions?

1 Answer 1

1

With fancyhdr this quite easy. I've put the page number into the centered footer here. If it should appear left or right use \lfoot or \rfoot then.

\documentclass[12pt, a4paper,twoside]{article}
\usepackage{fancyhdr}
\fancypagestyle{headings}{%
\cfoot{\thepage}
}
\pagestyle{headings}

\begin{document}

\section{Introduction}
Hello
\end{document}
2
  • Using fancyhdr is there a way to restrict the header to just the Chapter names (even if there are section names?) I can ask another question/edit original question if it is inappropriate to post this as a comment?
    – owwoow14
    Commented Jun 26, 2015 at 15:15
  • 1
    @owwoow14: You've got no chapters in article class. Use book then. And yes, it's another question, actually ;-)
    – user31729
    Commented Jun 26, 2015 at 15:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .