NinaNutz wrote:
\lhead{}
\chead{}
\rhead{\bfseries \chaptername \ \thechapter \ \chaptermark}
\fancyfoot[C]{\thepage}
and everything is ok except for the chaptermark, which it doest work..
I have the numbers centered in the foot,
I have the line, the name chapter, the number 1..,n, but no the
title of the chapter...
Actually, sorry, you can't quite do it that way. The \chaptermark
command does not hold the name of the chapter. Rather, it is called when
a chapter is defined, and it then calls \markright or \markleft or
\markboth to set the contents of the \rightmark or \leftmark macros,
which are what LaTeX uses to set the headings. It's best to keep on
using those, as that's what LaTeX expects.
So what you really want to do is just something like this:
\rhead{\bfseries \rightmark}
and then you can redefine \chaptermark as follows:
\renewcommand\chaptermark[1]{%
\markboth{\chaptername \ \thechapter \ #1}}
If you always want the chapter info, and not the section info, then
you'll also want to do:
\renewcommand\sectionmark[1]{}
Otherwise, \sectionmark may mess things up. And if you do want the
section info, then you'll want to redefine \sectionmark more sensibly.
Look at the example in section 13 of the fancyhdr docs.
Richard