[tex-live] chapter* does not set page heading

Zdenek Wagner zdenek.wagner at gmail.com
Mon Jan 14 16:50:04 CET 2013


2013/1/13 Matej Kosik <5764c029b688c1c0d24a2e97cd764f at gmail.com>:
> Hi,
>
> I have noticed one thing which I am not sure if it is a bug or a feature.
>
> This is a small reproducible example:
>
>         \documentclass[12pt]{book}
>         \title{Title}
>         \author{Author}
>
>         \begin{document}
>
>         \tableofcontents
>
>         \chapter*{Preface}
>
>         \dots
>
>         \newpage
>
>         \dots
>
>         \end{document}
>
> When I typeset this document, the heading of the last page (belonging to
> the `Preface' chapter* is set to "CONTENTS". As if chapter* did not
> reset the headers/footers properly in the same way as ordinary chapter
> command does.
>
> I am curious; is this the desired behavior?
>
Yes, it is described in the LaTeX documentation. You have to put
\markboth{Preface}{Preface} after \chapter*{Preface}.

> Thanks in advance for any help.
> --
> Matej Kosik



-- 
Zdeněk Wagner
http://hroch486.icpf.cas.cz/wagner/
http://icebearsoft.euweb.cz



More information about the tex-live mailing list