On Wed, Oct 16, 2002 at 09:23:54AM +0200, Herbert Voss wrote:
>
> in the preamble
>
> \let\oldChapter\chapter
> \newcommand{\ChapName}[1]{}
> \renewcommand{\chapter}[2][]{%
> \renewcommand{\ChapName}{#2}%
> \oldChapter[#1]{#2}%
> }
>
> now you have the commands \thechapter for the number
> and \ChapName for the title, which you can place anywhere
> in the header/footerThere is no need for this code. The name of the current chapter is already available with the command \leftmark
