Re: [dev-context] [NTG-context] sample={99}
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
David Arnold wrote:
All,
Was I surprised to find that my numbering went to multiples of 2 when I added the option sample={99}. Is this a bug?
Yes, a bug. The local logic in core-des.tex (\@@dostartdescription) is not taking into account trial typesetting runs, so the counter is typeset twice and incremented twice: first for the 'sampled' measuring, then for 'real'. Patched version diff in attachment. Cheers, taco
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Taco Hoekwater wrote:
David Arnold wrote:
All,
Was I surprised to find that my numbering went to multiples of 2 when I added the option sample={99}. Is this a bug?
Yes, a bug. The local logic in core-des.tex (\@@dostartdescription) is not taking into account trial typesetting runs, so the counter is typeset twice and incremented twice: first for the 'sampled' measuring, then for 'real'. Patched version diff in attachment.
actually, there is already a \trialtypesettingtrue you patch the second call -) the problem is that david didn't test for a preroll Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Taco Hoekwater wrote:
Hans Hagen wrote:
actually, there is already a
\trialtypesettingtrue
you patch the second call -)
Unless I am mistaken, there is a third call below that.
the second one does not use the text (copies the box) and the #3 is only used in a special case (list mode) in which complex code fails anyway Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Hans Hagen wrote:
Taco Hoekwater wrote:
Unless I am mistaken, there is a third call below that.
the second one does not use the text (copies the box) and the #3 is only used in a special case (list mode) in which complex code fails anyway
Ok, got it now.
participants (2)
-
Hans Hagen
-
Taco Hoekwater