tud-cd / tudscr

TUD-Script
Other
105 stars 22 forks source link

default koma pagestyle headings #59

Closed timhae closed 3 years ago

timhae commented 3 years ago

Many thanks for creating this package, it is very helpful! However, I have encountered one issue, that I am unable to solve: I would like to set the default pagestyle to headings like in the default koma classes. Here is a MWE:

\documentclass{tudscrreprt}
\pagestyle{headings}
\usepackage{blindtext}
\begin{document}
\blinddocument
\end{document}

changing tudscrreprt to scrreprt produces the desired headlines but takes away all the nice things of this package :( any idea how I could solve this? Changing headings to scrheadings was mentioned in the documentation somewhere but does not do what I want.

mrpiggi commented 3 years ago

The TUD-Script classes are using scrlayer-scrpage. Apparently, this does not work well with \pagestyle{headings} (https://sourceforge.net/p/koma-script/tickets/4/). This workaround should help

\documentclass{tudscrreprt}
\usepackage[automark]{scrlayer-scrpage}
\pagestyle{headings}
\usepackage{blindtext}
\begin{document}
\blinddocument
\blinddocument
\end{document}