![](https://secure.gravatar.com/avatar/413d18d786a923120159c1e3f02ad778.jpg?s=120&d=mm&r=g)
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? Best, Denis
-----Ursprüngliche Nachricht----- Von: Hans Hagen
Gesendet: Mittwoch, 3. März 2021 17:42 An: Maier, Denis Christian (UB) ; mailing list for ConTeXt users Betreff: Re: [NTG-context] Log overful boxes On 2/28/2021 6:46 PM, denis.maier@ub.unibe.ch wrote:
How can you add information about underfulor overful boxes to the log? Ideally both vboxes and hboxes. \starttext \hbox to 10cm {abc} \hbox to 0cm {abc} \stoptext
gives me (in lmtx) this in th elog
Underfull \hbox (badness 10000) detected at line 8 <2: lmroman12-regular @ 12.0pt> abc
\hbox[normal][16=1,17=1], width 284.52756, height 8.32343, depth 0.11993, direction l2r .\list ..\glyph[32768][16=1,17=1], language (n=1,l=2,r=3), hyphenationmode 63, options 128 , font <2: lmroman12-regular @ 12.0pt>, glyph U+000061 a ..\glyph[32768][16=1,17=1], language (n=1,l=2,r=3), hyphenationmode 63, options 128 , font <2: lmroman12-regular @ 12.0pt>, glyph U+000062 b ..\kern[font], amount 0.32382 ..\glyph[32768][16=1,17=1], language (n=1,l=2,r=3), hyphenationmode 63, options 128 , font <2: lmroman12-regular @ 12.0pt>, glyph U+000063 c
Overfull \hbox (17.94214pt too wide) detected at line 9 <2: lmroman12-regular @ 12.0pt> abc
\hbox[normal][16=1,17=1], height 8.32343, depth 0.11993, direction l2r .\list ..\glyph[32768][16=1,17=1], language (n=1,l=2,r=3), hyphenationmode 63, options 128 , font <2: lmroman12-regular @ 12.0pt>, glyph U+000061 a ..\glyph[32768][16=1,17=1], language (n=1,l=2,r=3), hyphenationmode 63, options 128 , font <2: lmroman12-regular @ 12.0pt>, glyph U+000062 b ..\kern[font], amount 0.32382 ..\glyph[32768][16=1,17=1], language (n=1,l=2,r=3), hyphenationmode 63, options 128 , font <2: lmroman12- regular @ 12.0pt>, glyph U+000063 c
and on the console just:
Underfull \hbox (badness 10000) detected at line 8 <2: lmroman12-regular @ 12.0pt> abc
Overfull \hbox (17.94214pt too wide) detected at line 9 <2: lmroman12-regular @ 12.0pt> abc
but you can get details on the console with
\tracingonline = 1
which is no fun with for instance
\starttext \bgroup \tracingonline1 \hbox to 0cm {\input tufte } \egroup \stoptext
but anyhow shows you a bit how tex sees it.
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 -----------------------------------------------------------------