[Tex/LaTex] How to put header and footer on titlepage in scrreprt

scrlayer-scrpagescrreprttitles

I have to put a header and footer onto an entire document, but I'd still like to use the titlepage in scrreprt.

I tried doing this:

\documentclass[fleqn, 11pt, a4paper]{scrreprt}

\usepackage[ngerman]{babel}
\usepackage{fontspec}
\usepackage{scrlayer-scrpage}

\ihead{ihead}
\ohead{ohead}
\chead{chead}

\pagestyle{scrheadings}
\renewcommand{\titlepagestyle}{scrheadings}

\title{\Huge title}
\subtitle{\Large subtitle}
\author{person a \and person b}
\date{15.11.2016}
\publishers{none}

\begin{document}

\begin{titlepage}
    \thispagestyle{scrheadings}
    \maketitle
\end{titlepage}

\newpage 

aasdasdsdads

\newpage

\end{document}

But to no avail, the Titlepage is still without headers and footers.

They work fine with scrartcl, but well – not with scrreprt. How can I force them onto the titlepage?

Best Answer

\titlepagestyle is only supported on a so-called in-page title (.ie. not in a titlepage). This is indicated by the option titlepage=false. See pages 58, 59 of the koma-script documentation (English). The class scrartcl uses in-page by default.

The combination that works is:

\documentclass[  titlepage=false]{scrreprt}
...
\renewcommand{\titlepagestyle}{scrheadings}
...
\newpage
\maketitle
\newpage 

Here is a complete example

\documentclass[fleqn, 11pt, a4paper, titlepage=false]{scrreprt}

\usepackage{scrlayer-scrpage}

\ihead{ihead}
\ohead{ohead}
\chead{chead}

\pagestyle{scrheadings}
\renewcommand{\titlepagestyle}{scrheadings}

\title{\Huge title}
\subtitle{\Large subtitle}
\author{person a \and person b}
\date{15.11.2016}
\publishers{none}

\begin{document}

\newpage
\maketitle
\newpage 

Some text

\newpage

\end{document}