Your best bet is probably the titlesec
package. Here's a MWE for the article class that almost works... (The titling package defines \theauthor
and \thetitle
commands that should print the contents of \author{}
and \title{}
respectively. But \thetitle
seems to have broken...
\documentclass{report}
\newcommand{\mytitle}{This is the title}
\title{\mytitle}
\author{A. Author}
\usepackage{titling}
\usepackage{titlesec}
\renewpagestyle{plain}{
\headrule
\sethead{\mytitle}{}{}
\setfoot{\theauthor --- \sectiontitle}{}{\thepage}
\footrule
}
\pagestyle{plain}
\begin{document}
\section{First section}
\newpage
\section{Section another}
\end{document}
Of course, since the title of the document doesn't change you can just set it yourself. Or use a trick like defining \newcommand{\mytitle}{This is the Title}
and then putting \title{\mytitle}
and then putting \mytitle
in the relevant place in this example.
This all works fine with report class, and since the OP asked for report class, that's what I went with. But I'd actually recommend the KOMA or memoir solutions, since they're better in general...
As it stands at the moment, this solution does everything automatically except the document title (which can be done with the \mytitle
trick. There's a memoir solution that works with everything except the subsection title. Lockstep's KOMA solution can automatically do title and author if you add the titling
package...