# Missing Chaptername in Header with fancyhdr

I changed my fancyhdr settings, but it doesn't look as I want to. Just look at my example below and use pdflatex. On the second side of the pdf, the headers text should be: "Chapter 1: MyChaptername"

\documentclass[a4paper,oneside,10pt]{report}
\usepackage{fancyhdr}

\fancyfoot{} %clear all footers
\fancyhead[L]{\chaptername \ \thechapter: } %How to insert the Chapter names like "MyChapter"?
\renewcommand{\footrulewidth}{0.0pt}
}

\begin{document}

\chapter{MyChaptername}
This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text...
This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text...
This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text...
This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text...
This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is

\subsection{MySubsection}
This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text...
This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text...
This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text...
This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text... This is some Text...
\end{document}


• Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Jan 16 '15 at 11:08

You can simply use

\fancyhead[L]{\leftmark}


and redefine \chaptermark

\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter:\ #1}{}}


MWE

\documentclass[a4paper,oneside,10pt]{report}
\usepackage{fancyhdr}

\fancyfoot{} %clear all footers
\fancyhead[L]{\leftmark} %How to insert the Chapter names like "MyChapter"?
\renewcommand{\footrulewidth}{0.0pt}
}
\renewcommand{\chaptermark}[1]{\markboth{\chaptername\ \thechapter:\ #1}{}}

\usepackage{lipsum} %for dummy text

\begin{document}
\chapter{MyChaptername}
\lipsum[1-30]
\end{document}


Output

• Wow, that works pretty fine! Thank you! Well I didn't understand what \leftmark does and how it works. Jan 16 '15 at 11:36
• @Lukas You're welcome. The command \chaptermark issues a \markboth command which defines a \leftmark command with that contents. Jan 16 '15 at 11:48
• Ok, thanks. This evening I'm gonna sign up. Then I will vote you answer up! Jan 16 '15 at 11:58