[Tex/LaTex] Page styles with Koma instead of titlesec

header-footerkoma-scripttitlesec

I usually set up my page style titlesec along the lines of

\documentclass{scrartcl}
\usepackage[pagestyles]{titlesec}
\newpagestyle{mypagestyle}{
  \headrule
  \sethead{Document Title}{\sectiontitle}{\pagename\space\thepage}
  \setfoot{Some Static Info}{Author}{Other Static Info}
}
\pagestyle{mypagestyle}

But now I read that there are Incompatibilities between KOMA-Script and titlesec. Although I did not notice those incompatibilities, I am a little concerned.

Is there a way to define the page style without using titlesec, but still keep it as clear and powerful?

Best Answer

This is an approach that should get you started. The details can be found in Chapter 6 of the »KOMA-Script« user guide.

\documentclass[headinclude=on]{scrartcl}
\usepackage[T1]{fontenc}

\usepackage[automark,headsepline,footsepline]{scrlayer-scrpage}
\automark{section}
\ihead{Document Title}
\chead{\headmark}
\ohead{Page\enspace\pagemark}
\ifoot{Some Static Info}
\cfoot{Author}
\ofoot{Other Static Info}
\pagestyle{scrheadings}

\setkomafont{pageheadfoot}{\normalfont}

\usepackage{blindtext}

\begin{document}
  \blinddocument
\end{document}
Related Question