ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: denis.maier@ub.unibe.ch,
	mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Log overful boxes
Date: Wed, 3 Mar 2021 17:41:30 +0100	[thread overview]
Message-ID: <1ed5f046-a45f-f3f3-4828-6162e5a87cd5@xs4all.nl> (raw)
In-Reply-To: <d34027ffc5c349e38e866ad4cebca0f5@ub.unibe.ch>

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
___________________________________________________________________________________

  reply	other threads:[~2021-03-03 16:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-28 17:46 denis.maier
2021-03-03 16:41 ` Hans Hagen [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1ed5f046-a45f-f3f3-4828-6162e5a87cd5@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=denis.maier@ub.unibe.ch \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).