I would like to have a header in my thesis looking like the one in the picture below. I have everything except the chapter title besides the vertical bar. How can I manage that? My document class is report and I'm working with a two sided document. (See code example)

Thank you alot for your help.

\documentclass[11pt,a4paper,openright,twoside]{report}

\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage[T1]{fontenc}
\usepackage{amsmath}

\RequirePackage[times]{quotchap}
\definecolor{chaptergrey}{rgb}{0.5,0.5,0.5}
\usepackage{fancyhdr}
\pagestyle{fancy}

\def\layout{2}

\ifnum\layout=2
\fancyhf{}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\fancyfoot[LE,RO]{\thepage}
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}}
\else
\fancyhf{}
\fancyfoot[C]{\thepage}
\fi

\begin{document}
\chapter{Introduction}
\blindtext
\blindtext
\blindtext
\section{subsection}
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext

\end{document}

• Can you make a compilable minimal working example (MWE)? It seems that package are missing to make your code work. Jun 26, 2018 at 19:22
• I'm sorry. It should work now. Jun 26, 2018 at 19:53
• Is an answer acceptable for you? Please accept an answer to close this question. Aug 18, 2018 at 19:10

It is very simple with titleps:

\documentclass[11pt,a4paper,openright,twoside]{report}

\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage[T1]{fontenc}
\usepackage{amsmath}

\RequirePackage[times]{quotchap}
\definecolor{chaptergrey}{rgb}{0.5,0.5,0.5}
\usepackage{titleps}
\newpagestyle{mine}{
\setfoot[\thepage][][]{}{}{\thepage}
}
\renewpagestyle{plain}{%
\setfoot[\thepage][][]{}{}{\thepage}
}
\pagestyle{mine}

\begin{document}

\chapter{Introduction}
\blindtext
\blindtext
\blindtext
\section{subsection}
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext

\end{document}


Seems like adding \leftmark would give your desired output:

\documentclass[11pt,a4paper,openright,twoside]{report}

\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage[T1]{fontenc}
\usepackage{amsmath}

\RequirePackage[times]{quotchap}
\definecolor{chaptergrey}{rgb}{0.5,0.5,0.5}
\usepackage{fancyhdr}
\pagestyle{fancy}

\def\layout{2}

\ifnum\layout=2
\fancyhf{}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\fancyfoot[LE,RO]{\thepage}
\fancypagestyle{plain}{
\fancyhf{}
\fancyfoot[LE,RO]{\thepage}}
\else
\fancyhf{}
\fancyfoot[C]{\thepage}
\fi

\begin{document}
\chapter{Introduction}
\blindtext
\blindtext
\blindtext
\section{subsection}
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext
\blindtext

\end{document}