[texhax] First and last value of custom counter in header

Aleksandar Zec zealeksanman at gmail.com
Mon May 10 19:31:10 CEST 2010

2010/5/10 Heiko Oberdiek <heiko.oberdiek at googlemail.com>:
> On Mon, May 10, 2010 at 07:18:43AM +0000, Aleksandar Zec wrote:
>> 2010/5/9 Heiko Oberdiek <heiko.oberdiek at googlemail.com>:
>> > Classical case for a marks register. Example that uses an additional
>> > marks register provided by e-TeX:
>> > [tex code]
>> Heiko, thank you very much, I didn't know for this ellegant e-TeX
>> possibility regarding marks. However, this does not always work in
>> multicols environment (it works without multicols). Example:
>> [...]
>> Headers should be "1--6", "7--12" and "13--14", but they appear as
>> "1--7", "7--12" and "14--14".
> \leavevmode before \marks\dictmark improves the situation, but not
> always.
> Therefore you need a solution based on references, eg.:
> [...]

Wonderful, this works perfectly. I've just recompiled my ~15.000-items
document on 900 pages using this mechanism and all headers are
correctly matched with its page contents.

Thank you! I hope this mechanism will be incorporated in one of your
packages since it seems to be incredibly useful in many different

Best wishes,

More information about the texhax mailing list