# Chapter title in RE header and section title on LO for <\fancyhdr>

I am writing my thesis using reportdocumentclass. I want to have current chapter title as 1. Chapter Name on right side of the even page header and section title on left side of the odd page header. I also want to have these headers as smaller cases. Below is my MWE which does not work as I want. On both pages it prints only section names. Can someone tell me what is the problem?

\documentclass[12pt, a4paper, twoside]{report}

\usepackage{fancyhdr}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}

\begin{document}
\pagestyle{fancy}
\include{Chapter}
.
.
.
\end{document}


I also referred this question which did not help. Chapter title on even header and section title in odd header

• The title of the question is in contradiction with the body of the question. Which is right? – Bernard Aug 28 '16 at 18:32
• Sorry, the body part is right – Ruchi Aug 28 '16 at 18:34

Insert a \pagestyle{fancy} before the redefinition of \chaptermark and \sectionmark. The \chaptermark in your code sets a left mark and cleans the right mark. The \sectionmark sets a new right mark. So you can use

\documentclass[12pt, a4paper, twoside]{report}

\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection.\ #1}}

\usepackage{lipsum}% dummy text
\begin{document}
\chapter{Chapter}
\section{Section}
\lipsum
\lipsum
\end{document}


In my opinion, it's simpler to obtain what you want with titleps instead of fancyhdr. If I've well understood you would have small caps in header instead of regular capital letters:

\documentclass[12pt, a4paper, twoside]{report}
\usepackage{lipsum}}
\usepackage{titleps}
\newpagestyle{mine}{%
\setfoot{}{\thepage}{}
}%
\pagestyle{mine}
\begin{document}%

\chapter{A First Chapter}
\section{Some section}
\lipsum[1-10]

\chapter{A Second Chapter}
\section{Another section}
\lipsum[11-20]

\end{document}