On 3/4/2021 12:32 PM, denis.ma...@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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to