1

I want to have a headings layout as in Anthony Knapp's Lie Groups, i.e. I want to have

enter image description here

the chapter on even, and the current section on odd pages. I'm using the scrreprt class and tried using this solution:

\usepackage[
        automark,
        autooneside=false,
        headsepline,
    ]
    {scrlayer-scrpage}
        \clearpairofpagestyles
        \cfoot*{\pagemark}
        \chead{\headmark}
        \renewcommand\chaptermarkformat{\thechapter.\enskip}

but this only seems to work in the book class. Also I want to have the page numbers on the bottom but I already go that myself.

1 Answers1

1

You can use the internal command \Ifthispageodd and test if the page is even or odd, and then set the running heading as you like:

enter image description here

\documentclass{scrreprt}
\usepackage{blindtext}% only for dummy text

\usepackage[ automark, autooneside=false,% <- if you want to use \leftmark and \rightmark in a one sided document headsepline=true ]{scrlayer-scrpage} \pagestyle{scrheadings} \cohead{\Ifthispageodd{\leftmark}{\rightmark}} \cfoot*{\pagemark}

\begin{document}

\blinddocument \end{document}

Sveinung
  • 20,355
  • Using this gives me the chapter name on every page. – HannahBloom Jun 25 '20 at 21:39
  • @HannahBloom See updated answer. – Sveinung Jun 25 '20 at 22:29
  • this gives me the error "! Package scrlayer Error: unexpected value to `automark'.See the scrlayer package documentation for explanation.Type H for immediate help.... \KOMAProcessOptions"

    But I found another solution, it works if you use the global option twoside=semi, which gives a onesided layout while acutally being twoside

    – HannahBloom Jun 25 '20 at 22:37