# How can I change the Header Style?

I want my Header in this style like the Screenshot.I use this dokumentclass \documentclass[a4paper,12pt,oneside, BCOR5mm, DIV=12]{scrreprt} and use the\usepackage{fancyhdr} package and if I set the \pagestyle{}nothing happens.

How can set this Header style ?

• Where should the page number be on chapter pages? What should be in the header if there is no section entry yet? If more than one section start on a page - which one should go to the header, the first or the last one? – esdd Dec 15 '16 at 11:51

Here is a suggestion using package scrlayer-scrpage which is part of the KOMA-Script bundle.

\documentclass[a4paper,12pt,oneside, BCOR=5mm, DIV=12]{scrreprt}

\automark{chapter}
\automark*{section}
\clearmainofpairofpagestyles

\usepackage{lipsum}
\begin{document}
\chapter{Chapter}
\lipsum[1-13]
\section{Section One}
\lipsum[1]
\section{Section Two}
\lipsum
\end{document}


Version using fancyhdr:

\documentclass[a4paper,12pt,oneside, BCOR=5mm, DIV=12]{scrreprt}

\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]
{\markboth
}
\renewcommand{\sectionmark}[1]
\fancyhf{}

\usepackage{lipsum}
\begin{document}
\chapter{Chapter}
\lipsum[1-13]
\section{Section One}
\lipsum[1]
\section{Section Two}
\lipsum

• Thank you, I forget to say, that I have to using the package fancyhdr because it is a default template from my university, but I want to change the header style and is allowed. – kwin Dec 15 '16 at 12:50