[texhax] [solved] Re: Headline numbering problem

Rodolfo Medina rodolfo.medina at gmail.com
Mon Aug 13 19:55:01 CEST 2007


Rodolfo Medina <rodolfo.medina at gmail.com> writes:

> I use plain TeX and have defined my own \chapter, \subchapter etc.  Now, my
> problem is that right at the bottom of p.11 the subchapter 2 ends, and right
> at
> the top of p.12 the subchapter 3 begins, but in the headline of p.11 there is
> subchapter 3.  Here is (extremely summed up) the definition of \headline I'm
> using:
>
>   \headline={\the\subchapternumber}
>
> Does anybody have any suggestion about this matter?



Oleg Katsitadze <olegkat at gmail.com> writes:

> You need to use \mark, see The TeXbook.  The problem with using
> sectioning counters directly is that TeX needs to read ahead to decide
> a page break, so in your case, the subchapter from the next page is
> processed (and \subchapternumber is incremented) before TeX decides to
> break the page before that subchapter.  To avoid this problem, marks
> let you refer to the first/last mark on a boxed page.



Thanks, it seems all right now!  :)
Bye,
Rodolfo



More information about the texhax mailing list