[Tex/LaTex] KOMA-Script titlepage header and footer

fancyhdrkoma-scripttitles

I have titlepage header and footer created by fancyhdr and I'm trying to replace it by koma-script solution.

I tried scrlayer-headings, but I just can't make koma-script print header or footer at titlepage environment. It works for all other pages, except titlepage.

Fancyhdr style

\fancypagestyle{titlepage_style_ru}{
    \fancyhf{}
    \renewcommand{\headrulewidth}{0pt}
    \chead{<some text>}
    \cfoot
    { \parbox[b]{\textwidth}{\centering \opt@title@city@ru\\ \opt@title@year@ru} }
}

which I setup like this

\begin{titlepage}
    \thispagestyle{titlepage_style_ru}
     ....

Is it possible to achieve same behavior in koma-script for titlepage?

Here's full WE

Best Answer

Please see the following MWE

\documentclass{scrreprt}

\usepackage[english]{babel}
\usepackage{blindtext} % dummy text

\usepackage{scrlayer-scrpage} % instead of fancyhdr
\ihead{ihead}
\ohead{ohead}
\chead{chead}
\ifoot{ifoot}
\cfoot{\pagemark}
\ofoot{ofoot}


\begin{document}

\begin{titlepage}
  \thispagestyle{scrheadings}
  \Huge This is a title page
\end{titlepage}

\tableofcontents

\Blinddocument
\end{document}

which gives the following titlepage:

title page