Rich Shepard wrote:
> How do I learn which command is appropriate under which circumstances? Is
> \chaptermark best under only limited circumstances, while \markboth,
> \markleft and \markright are more broadly applied?

The \chaptermark and \sectionmark macros store the text of the 
chapter/sections for the headings, add the numbering (and, if the class 
defines this, also the chapter label) and passes all that it to \markright 
and \markboth (in two-sided documents), resp. 
\markright and \markboth pass its content to the headings.
(See scrguien.pdf, sec. 3.6 for \chaptermark and the following for \markright/ 
\markboth:
http://www.giss.nasa.gov/latex/ltx-264.html
)

So, \chaptermark calls \markboth or \markright and adds the numbering and 
label. From book.cls:

\def\chaptermark##1{%
      \markboth {\MakeUppercase{%
        \ifnum [EMAIL PROTECTED] >[EMAIL PROTECTED]
          [EMAIL PROTECTED]
            [EMAIL PROTECTED] \thechapter. \ %
          \fi
        \fi
        ##1}}{}}%

So \chaptermark is more appropriate if you want to modify the heading's text 
of a real \chapter (where numbering and labelling is needed), while 
\mark{right|both} is more appropriate for non-numbered headings (if you want 
the text without any additions in the headings).

>    On a related note, how does a single chapter, such as the Preface, get
> out of sync while everything else has proper running heads? Perhaps if I
> understood this better I'd know how to fix it. Or, do I really not want to
> know? :-)

\chapter* is (in contrary to \chapter and koma's \addchap) defined to not pass 
anything to \mark{both|right}. So this is a feature. If you need headings and 
TOC entries nonetheless, you have to tell LaTeX.

Jürgen

Reply via email to