Change the font in the running headers in the article class

fancyhdr

How do I change (only!) the font in the running headers in article class. I know the answer: use fancyhdr. However, the defaults in fancyhdr are very different from the article class, which means I have to design a pagestyle in fancyhdr, which means I have to read the fancyhdr manual, which is 76 pages long. All to change the fonts in the running headers. Surely there's an easier way.

Two good answers. Thank you!

Best Answer

Here is how to do it with fancyhdr (version 4 or later):

You are talking about running headers, so I assume you use \pagestyle{headings}. Fancyhdr has an option to emulate this pagestyle, but with a rule under the headers, which you can easily eliminate. To change the font, the font definition can be put in \fancyhfinit. In the example I choose boldface sans serif as the font.

\documentclass[twoside]{article}

\usepackage[headings]{fancyhdr}
\usepackage{lipsum}

% Eliminate the rule under the headers.
\renewcommand{\headrulewidth}{0pt}
\fancyhfinit{\bfseries\sffamily}
\pagestyle{headings}

\begin{document}

\section{Introduction}

\lipsum[1]

\subsection{Subsection}

\lipsum[2-11]

\end{document}

enter image description here