1

Can I do this without explicitly putting in \newpage or a page break? Note that I also have sections in my article.

\documentclass{article}
\usepackage{lipsum}
\begin{document}
\pagestyle{headings}
\thispagestyle{empty}
\markright{\hfill Running Header\hfill}
\section{test1}
\lipsum[1-4]
\section{test2}
\lipsum[1-4]
\section{test3}
\lipsum[1-4]
\end{document}

Note Adding to the answer, if you want a specific text at the center: \makeatletter\def\@oddhead{\hfil{\small\emph{Specific text}}\hfil}\makeatother

1

Yes

\documentclass{article}
\usepackage{lipsum}
\begin{document}
\pagestyle{headings}
\thispagestyle{empty}
\makeatletter\def\@oddhead{\hfil{\slshape\rightmark}\hfil}\makeatother
\section{test1}
\lipsum[1-4]
\section{test2}
\lipsum[1-4]
\section{test3}
\lipsum[1-4]
\end{document}
  • Thanks. This for some reason ignores the runnnig header to put the title of the section on every page – sodiumnitrate Jan 11 at 19:37
  • yes but the running header does not appear on the right hand side either. – sodiumnitrate Jan 11 at 19:42
  • I meant that the title does not appear at all. I edited the question. – sodiumnitrate Jan 11 at 19:50

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.