[Tex/LaTex] How to edit a simple header on the title page only

header-footer

I am writing my thesis and I don't want to use any other headers except on the cover page, which is basically a title page. I use the scrreprt class. If I use the following code, I can clearly see that there is a section for headers, therefore I shouldn't have to create it, but only edit it somehow.

\documentclass[final,twoside,BCOR=0.7cm,DIV=calc,openright]{scrreprt}
\usepackage{showframe}
\begin{document}
    \pagenumbering{Roman}
    \begin{titlepage}
        I want this part in the header

        This in the body of the title page
    \end{titlepage}
\end{document}

I would rather not use the fancyhdr for two reasons:

  1. I feel like this is a very simple task and it shouldn't require a package. The header is already there and it has a 0 length text. I don't want to style the header in any way, so it feels like an overkill to use any package, nonetheless one which is named fancy
  2. I tried to use fancyhdr and I managed to add a header, but I had to use the \thispagestyle{fancy}, which adds page numbering on the titlepage. I imagine that there are solutions to remove the page number, but this would mean to fix a problem which I didn't have from the beginning.

The first googol pages on google about headers and latex are about how much fancy stuff you can do if you use fancyhdr. What if I don't want to be fancy, any solutions?

Best Answer

\documentclass[final,twoside,BCOR=0.7cm,DIV=calc,openright]{scrreprt}
\usepackage{showframe}
\begin{document}
    \pagenumbering{Roman}
    \begin{titlepage}
        \thispagestyle{headings}
        \markboth{I want this part in the header}{I want this part in the header}
        \def\thepage{}
        I want this part in the header

        This in the body of the title page
    \end{titlepage}

\end{document}
Related Question