Question: so far that's my code:

```
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\nouppercase{\thepage}}
\fancyhead[LO]{\sc \nouppercase{\rightmark}}
\fancyhead[RE]{\rm \nouppercase{\leftmark}}

```

What it produces is the page number in the left hand top corner and the chaptername in the top right hand corner including a ruler on every second page.

How can I change this that it also displays a "Chapter 1. Text" where chapter is italic and text is roman?

Tried some stuff but it never changed how I wanted it to be.

Thanks for your help!!

Answer: 
Just alter the commands in `\chaptermark`:

![Sample output](https://i.stack.imgur.com/g8rEN.png)

```
\documentclass{book}

\usepackage{fancyhdr}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\textit{\chaptername\ 
\thechapter.} #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\nouppercase{\thepage}}
\fancyhead[LO]{\sc \nouppercase{\rightmark}}
\fancyhead[RE]{\rm \nouppercase{\leftmark}}

\usepackage{blindtext}
\begin{document}

\blinddocument

\end{document}

```

If you use the `\frontmatter`, `\mainmatter` and `\backmatter` structuring commands then you may wish to use the following definition instead:

```
\makeatletter
\renewcommand{\chaptermark}[1]{%
  \markboth{\if@mainmatter\textit{\chaptername\ \thechapter. }\fi #1}{}%
}
\makeatother

```

Additionally at any `\chapter*` command you will want to issue an appropriate `\markboth`.
Remarks
=======

Just add "Chapter" to `\markboth` and make sure your document uses the option `twoside` to distinguish between even and odd pages.

Implementation
==============

```
\documentclass[twoside]{report}
\usepackage[paperwidth=8cm,paperheight=10cm,top=2cm]{geometry}% ridiculous page size
\usepackage{lipsum}% dummy text
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\textit{Chapter \thechapter}\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{Section \thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\thepage}
\fancyhead[LO]{\scshape\rightmark}
\fancyhead[RE]{\leftmark}
\begin{document}
\chapter{Text}
\section{Next text}
\lipsum[1-2]% dummy text
\end{document}

```

Output
======

> 
> ![enter image description here](https://i.stack.imgur.com/yuTn8.png) ![enter image description here](https://i.stack.imgur.com/Yn9wq.png)
> 
> 
>