How to add running title and author
Try the fancyhdr package. The simplest approach is to set the headings manually.
\documentclass{article}
\title{Owl stretching time}
\author{M Python}
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{M Python}
\rhead{Owl stretching time}
\begin{document}
\maketitle
abc
\newpage
def
\newpage
\end{document}
Using the arguments given to \author
and \title
is slightly more difficult, because these are cleared when \maketitle
is executed. However, you can make copies using \let
.
\documentclass{article}
\title{Owl stretching time}
\author{M Python}
\usepackage{fancyhdr}
\pagestyle{fancy}
\makeatletter
\let\runauthor\@author
\let\runtitle\@title
\makeatother
\lhead{\runauthor}
\rhead{\runtitle}
\begin{document}
\maketitle
abc
\newpage
def
\newpage
\end{document}