[NTG-context] Log overful boxes

denis.maier at ub.unibe.ch denis.maier at ub.unibe.ch
Fri Mar 5 22:35:49 CET 2021


Thanks Hans. So, it's already available?
I'll add this to the list of things I'll have to add to the wiki.  (And I finally need to switch to LMTX...)

> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen <j.hagen at xs4all.nl>
> Gesendet: Donnerstag, 4. März 2021 15:12
> An: Maier, Denis Christian (UB) <denis.maier at ub.unibe.ch>; ntg-
> context at ntg.nl
> Betreff: Re: AW: [NTG-context] Log overful boxes
> 
> On 3/4/2021 12:32 PM, denis.maier at ub.unibe.ch wrote:
> > Thanks, that's helpful. Is there a way to collect these pieces of information
> and print them at the end together with rest of the processing information.
> I'm thinking of something like:
> >
> > mkiv lua stats  > 2 overful boxes, 3 underful boxes
> >
> > or:
> >
> > warning > 2 overful boxes, 3 underful boxes
> >
> > What do you think?
> only when you document it on the wiki ....
> 
> pack quality    >
> pack quality    > 4 entries added to the log file : overfull=1 | underfull=3
> pack quality    >
> 
> in the log:
> 
> pack quality    > start
> 
> pack quality    > oeps.tex [0000 - 0010] : overfull  hbox : m
> pack quality    > oeps.tex [0000 - 0011] : underfull hbox : m
> pack quality    > oeps.tex [0000 - 0012] : underfull hbox : mm
> pack quality    > oeps.tex [0000 - 0013] : underfull hbox : mmm
> 
> pack quality    > stop
> 
> using the already available mechanism:
> 
> \enabletrackers[builders.hpack.quality]
> \enabletrackers[builders.hpack.overflow]
> 
> \starttext
>      \hbox to 0em {m}
>      \hbox to 1em {m}
>      \hbox to 2em {mm}
>      \hbox to 3em {mmm}
>      \hbox to 3em {m m m}
> \stoptext
> 
> (so not much code needed; lmtx only)
> 
> Hans
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------


More information about the ntg-context mailing list