ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Log overful boxes
@ 2021-02-28 17:46 denis.maier
  2021-03-03 16:41 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: denis.maier @ 2021-02-28 17:46 UTC (permalink / raw)
  To: ntg-context

Hi,
How can you add information about underfulor overful boxes to the log? Ideally both vboxes and hboxes.
Best, 
Denis 
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Log overful boxes
  2021-02-28 17:46 Log overful boxes denis.maier
@ 2021-03-03 16:41 ` Hans Hagen
  2021-03-04 11:32   ` denis.maier
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2021-03-03 16:41 UTC (permalink / raw)
  To: denis.maier, mailing list for ConTeXt users

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Log overful boxes
  2021-03-03 16:41 ` Hans Hagen
@ 2021-03-04 11:32   ` denis.maier
  2021-03-04 14:12     ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: denis.maier @ 2021-03-04 11:32 UTC (permalink / raw)
  To: j.hagen, ntg-context

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 <j.hagen@xs4all.nl>
> Gesendet: Mittwoch, 3. März 2021 17:42
> An: Maier, Denis Christian (UB) <denis.maier@ub.unibe.ch>; mailing list for
> ConTeXt users <ntg-context@ntg.nl>
> 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
> -----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Log overful boxes
  2021-03-04 11:32   ` denis.maier
@ 2021-03-04 14:12     ` Hans Hagen
  2021-03-05 21:35       ` denis.maier
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2021-03-04 14:12 UTC (permalink / raw)
  To: denis.maier, ntg-context

On 3/4/2021 12:32 PM, denis.maier@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Log overful boxes
  2021-03-04 14:12     ` Hans Hagen
@ 2021-03-05 21:35       ` denis.maier
  2021-03-05 22:14         ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: denis.maier @ 2021-03-05 21:35 UTC (permalink / raw)
  To: j.hagen, ntg-context

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@xs4all.nl>
> Gesendet: Donnerstag, 4. März 2021 15:12
> An: Maier, Denis Christian (UB) <denis.maier@ub.unibe.ch>; ntg-
> context@ntg.nl
> Betreff: Re: AW: [NTG-context] Log overful boxes
> 
> On 3/4/2021 12:32 PM, denis.maier@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Log overful boxes
  2021-03-05 21:35       ` denis.maier
@ 2021-03-05 22:14         ` Hans Hagen
  2021-03-08 10:52           ` denis.maier
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2021-03-05 22:14 UTC (permalink / raw)
  To: denis.maier, ntg-context

On 3/5/2021 10:35 PM, denis.maier@ub.unibe.ch wrote:
> Thanks Hans. So, it's already available?

how about just trying it ...

-----------------------------------------------------------------
                                           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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Log overful boxes
  2021-03-05 22:14         ` Hans Hagen
@ 2021-03-08 10:52           ` denis.maier
  0 siblings, 0 replies; 7+ messages in thread
From: denis.maier @ 2021-03-08 10:52 UTC (permalink / raw)
  To: j.hagen, ntg-context

After installing LMTX I could now this test.
Looks great. Thanks for adding this.

Denis

> -----Ursprüngliche Nachricht-----
> Von: Hans Hagen <j.hagen@xs4all.nl>
> Gesendet: Freitag, 5. März 2021 23:14
> An: Maier, Denis Christian (UB) <denis.maier@ub.unibe.ch>; ntg-
> context@ntg.nl
> Betreff: Re: AW: AW: [NTG-context] Log overful boxes
> 
> On 3/5/2021 10:35 PM, denis.maier@ub.unibe.ch wrote:
> > Thanks Hans. So, it's already available?
> 
> how about just trying it ...
> 
> -----------------------------------------------------------------
>                                            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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-03-08 10:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-28 17:46 Log overful boxes denis.maier
2021-03-03 16:41 ` Hans Hagen
2021-03-04 11:32   ` denis.maier
2021-03-04 14:12     ` Hans Hagen
2021-03-05 21:35       ` denis.maier
2021-03-05 22:14         ` Hans Hagen
2021-03-08 10:52           ` denis.maier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).