At Mon, 14 Jul 2014 08:09:29 -0400 Peter Chapin <
PCh...@vtc.vsc.edu> wrote:
>
>
> Thanks for all the suggestions!
>
> On 2014-07-13 22:41, Robert Heller wrote:
>
> >> \part*{Prologue}
> >> \addcontentsline{toc}{part}{Prologue}
> >
> > I expect this will cause a *different* problem: \part*{} generates a very
> > *different* sort of 'heading' in the body of the work than \chapter*{}. The OP
> > really wants \chapter*{Prologue} and \addcontentsline{toc}{part}{Prologue}.
> > (Ditto for the Epilogue.) He probably wants the Prologue and Epilogue to look
> > like 'chapters', in the *body* of the work, but like 'parts' in the TOC. Since
> > he does NOT want chapter numbers, he could just use \chapter*{} everywhere,
> > but then he will need his own \addcontentsline and possibly \markboth macro
> > calls, since the \chapter* macro does not include these calls.
>
> I ultimately ended up just using this in the Epilogue:
>
> \chapter*{Epilogue}
> %\markboth{Epilogue}{Epilogue}
> \addcontentsline{toc}{part}{Epilogue}
>
> The use of \markboth didn't appear to have any (visible) effect one way
> or the other. What does \markboth do? I understand what I'm doing here
> is suppressing the addition of "Epilogue" to the TOC under Part III (the
> purpose of \chapter*) and then explicitly adding Epilogue to the TOC at
> the part level. That makes sense to me.
\markboth deals with running page headers and depends on what sort of page
headings you have set up. Many books will include the chapter name and the
page number at the top of every page. If the Epilogue and Prologue are only
one page, or if you have selected a bare page style, \markboth will have no
visible effect. I'm guessing you have selected a \pagestyle{} that does not
include running headers.
\chapter*{} does *several* things differently from \chapter{}:
1) It does not increment the chapter counter.
2) It does not use the chapter counter.
3) It does not use \chaptername
4) It does not automagically do a \markboth
5) It does not include an \addcontentsline call
\chapter* is *normally* used for things like Prefaces or Introductions or
Acknowlments, and other non-chapter chapter-like things, either at the
beginning or the end, that occure outside of the normal chapter sequence. A
prologue and an epilogue are *exactly* this sort of thing.
>
> Actually the handling of chapters in this work is a bit unusual. For one
> thing they are not numbered sequentially. Secondly in my genre it is
> traditional for chapters to have names that are just numbers without
> "Chapter" or any other adornment. To obtain this effect I suppressed
> chapter numbering with \setcounter{secnumdepth}{-1} and then just give
> the chapters names that are numbers such as
>
> \chapter{11}
>
> This does mean I have to manually renumber the chapters when and if I
> reorder them but at this point in the work that is a rare event. Since
> the chapters aren't numbered sequentially anyway a certain amount of
> tricky magic is necessary regardless.
Ok, you really should be using \chapter*{11} and 'manually' including
\addcontentsline{toc}{chapter}{11}:
\chapter*{11}
\addcontentsline{toc}{chapter}{11}
This *reduces* the trickynesses you have to deal with and generally simplifies
thigs.
In other words, \chapter* already does 90% of the trickynesses you want to do
all on its own, without having to play additional games. The only missing bit
is the TOC handling, which is easy enough to deal with. (You might want to
define a macro:
\newcommand\mychapter[1]{%
\chapter*{#1}
\addcontentsline{toc}{chapter}{#1}}
Then
\mychapter{11}
will do what you want.
)