Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I try

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

but is not effect.

I need 1.First Chapter on head.

share|improve this question
1  
Please add a minimal working example (MWE) that illustrates your problem. –  N.N. Aug 12 '11 at 15:36
add comment

1 Answer

up vote 4 down vote accepted

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:

enter image description here

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.

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.