# How to remove the name Chapter with fanchyhdr in Report class

I try

\renewcommand{\chaptermark}[1]{\markboth{#1}{}}


but is not effect.

I need 1.First Chapter on head.

-
Please add a minimal working example (MWE) that illustrates your problem. – N.N. Aug 12 '11 at 15:36

The command works fine. It is explained in the documentation:

\documentclass[english]{report}
\usepackage{fancyhdr}
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\space#1}{}}
\begin{document}
\chapter{chaptername here}
text here
\clearpage
text here
\clearpage
text here
\end{document}


The result:

EDIT:

The problem of Regis was a little bit difficult because the definiton was inside a sty-file in a separate command. We solved the problem in a chat-room.

-
Thanks, but and 1.chaptername here? – Regis da Silva Aug 12 '11 at 15:55
In the example the name "chapter" is removed and only the number of the chapter and the given "chapter-name" is printed in the header. – Marco Daniel Aug 12 '11 at 16:13
@RegisdaSilva let us continue this discussion in chat – Marco Daniel Aug 12 '11 at 16:55