1

I want to manually define my headings in a two-side document as follows:

On the odd pages, I want to have the page number and the (hard-copied) title of my whole document ("TITLE OF THIS STUDY")

On the even pages, I want to have the page number and the automatically selected section title (without the section number).

I already managed to implement the odd page style, but fail to implement the even pages. Do I need to define a sectionmark?

\documentclass{scrartcl}
\usepackage{scrlayer-scrpage}
\clearpairofpagestyles
\lohead*{\bfseries\pagemark \quad Title of this study}
\lehead*{\bfseries\pagemark \quad \sectionmark}
\pagestyle{scrheadings}
\usepackage{lipsum}
\begin{document}
\title{Title of this study}
\maketitle
\section{test}
\lipsum[1-5]
\end{document}
1

odd/even pages make only sense in twoside mode. \sectionmark is a command to store a mark, not to output it. You need e.g. \headmark for this. To remove the number you can redefine \sectionmarkformat:

\documentclass[twoside]{scrartcl}
\usepackage{scrlayer-scrpage}
\automark{section}
\clearpairofpagestyles
\lohead*{\bfseries\pagemark \quad Title of this study}
\lehead*{\bfseries\pagemark \quad \headmark}
\renewcommand*{\sectionmarkformat}{} % no number
\usepackage{lipsum}
\begin{document}
\title{Title of this study}
\maketitle
\section{test}
\lipsum[1-5]
\end{document}
1
  • Thank you! This works well! – user3771293 Apr 28 '20 at 12:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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