From: Hans Hagen <pragma@wxs.nl>
To: Sanjoy Mahajan <sanjoy@MIT.EDU>,
mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: underbraces get progressively more misaligned (w/ minimal example)
Date: Sat, 05 Jul 2014 02:30:36 +0200 [thread overview]
Message-ID: <53B7472C.90607@wxs.nl> (raw)
In-Reply-To: <87simh31s7.fsf@approx.mit.edu>
On 7/4/2014 11:34 AM, Sanjoy Mahajan wrote:
> Wolfgang Schuster <schuster.wolfgang@gmail.com> writes:
>
>> It does also depend on the width of the text because when I use 48pt
>> in the example below the height of the brace is always the same but
>> with 49pt the height increases after the first page.
>
> An interesting bug. That's also consistent with my experiments, in which
>
> \underbrace{\hbox{yyyy yyyy}}_{\rho}
>
> triggers the problem, but
>
> \underbrace{\hbox{yyyy}}_{\rho}
>
> does not.
Hi Sanjoy,
After a day of testing, tracing, wondering etc Luigi and I figured out
what was the problem it tooks us lots of debug prints -). Indeed there
is a bug in luatex. An extensible is made up of a sequence
char
skip 0pt- xpt
char
skip 0pt- xpt
char
skip 0pt- xpt
char
And the code that determines the height/depth took the dimensions of
skips into the equation while in fact glue has no such dimensions
(leaders that are a special kind of glue have dimensions). Not the first
place one looks for such an issue. Probably a side effect of copying a
function and patching part.
So, some random value (not entirely random as it depends on what mem
area the glue node is allocated from and that is kind of stable in a
run) was added which results in the effects you noticed.
Because it is stable within a run (same successive errors) it doesn't
result in oscillating (too many runs due to differences in results) and
this is probably why it went unnoticed so long. Interesting. (Normally
the pseudo random ht/dp were small.)
So, once this fix moves upstream you can check your suspicious cases.
Luigi will push it in our experimental branch and I suppose that Taco
will then push it into trunk and after that you can compile or wait till
the garden carries it.
Thanks for noticing!
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2014-07-05 0:30 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-29 10:13 Sanjoy Mahajan
2014-06-29 10:24 ` Sanjoy Mahajan
2014-07-03 10:49 ` Sanjoy Mahajan
2014-07-03 19:21 ` Wolfgang Schuster
2014-07-03 21:03 ` Sanjoy Mahajan
2014-07-03 22:09 ` Hans Hagen
2014-07-03 22:37 ` Sanjoy Mahajan
2014-07-03 22:47 ` luigi scarso
2014-07-07 13:59 ` Sanjoy Mahajan
2014-07-03 22:51 ` Hans Hagen
2014-07-04 4:58 ` Wolfgang Schuster
2014-07-04 8:22 ` Hans Hagen
2014-07-04 9:34 ` Sanjoy Mahajan
2014-07-05 0:30 ` Hans Hagen [this message]
2014-07-07 2:16 ` Sanjoy Mahajan
2014-07-07 3:48 ` Sanjoy Mahajan
2014-07-07 13:56 ` Sanjoy Mahajan
2014-07-07 13:53 ` Sanjoy Mahajan
2014-07-04 7:12 Akira Kakuto
2014-07-04 8:17 ` Hans Hagen
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=53B7472C.90607@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
--cc=sanjoy@MIT.EDU \
/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).