I'm trying to set header with chapter title on the right and section title on the left (with appropriate numbers in front of them). Also, I need to use short titles for header and long titles for ToC.
I am using single side document KOMA-Script Book with scrlayer-scrpage
.
Please help …
Best Answer
Set option
autoneside=false
for packagescrlayer-scrpage
if you want to use both chapter and section titles in a onesided document.Set class option
headings=optiontohead
if the optional argument of sectioning commands should be used for the page header and not for ToC by default.Example:
Update (regarding a comment below)
To avoid two equal entries on both sides of the header (eg. in a TOC with more than one page or a chapter without sections) you can use
Example: