ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* underbraces slightly too narrow (with MkIV 2013.05.28)
@ 2013-07-10 12:02 Sanjoy Mahajan
  2013-07-10 12:13 ` Marco Patzer
  2013-07-11 12:48 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Sanjoy Mahajan @ 2013-07-10 12:02 UTC (permalink / raw)
  To: ntg-context

In certain cases, display-mathunderbraces are not quite wide enough.
Here's a minimal example:

===================
\starttext

\placeformula\startformula
\underbrace{15\,\tf cm}_{L}
\stopformula

\stoptext
===================

Using 2013.05.28 00:36 MKIV (from vanilla TL2013), the left brace tip
starts under the vertical bar of the "1", instead of enclosing the serif
as well.  The right brace tip ends between the last two tines of the
"m", instead of enclosing the whole "m" and its serifs.

With 2013.04.09 10:38 MKII, the brace tips extend just slightly beyond
the "15 cm", which is better.  However, they seem slightly too close.

As a test, I ran the comparable plain-TeX file through LuaTeX and PDFTeX.

==================
$$
\underbrace{15\,\rm cm}_{L}
$$

\bye
==================

The gap between the right brace tip and the text is slightly greater
(with either LuaTeX or PDFTeX), and it looks right.

(With the 2012.05.30 MKIV on live.contextgarden.net, the result is
similar to the Lua/PDFTeX versions, though not identical, and also looks
reasonable.)

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


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

* Re: underbraces slightly too narrow (with MkIV 2013.05.28)
  2013-07-10 12:02 underbraces slightly too narrow (with MkIV 2013.05.28) Sanjoy Mahajan
@ 2013-07-10 12:13 ` Marco Patzer
  2013-07-10 13:53   ` Rudolf Bahr
  2013-07-11 12:48 ` Hans Hagen
  1 sibling, 1 reply; 6+ messages in thread
From: Marco Patzer @ 2013-07-10 12:13 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 417 bytes --]

On 2013–07–10 Sanjoy Mahajan wrote:

> In certain cases, display-mathunderbraces are not quite wide enough.
> Here's a minimal example:
> 
> ===================
> \starttext
> 
> \placeformula\startformula
> \underbrace{15\,\tf cm}_{L}
> \stopformula
> 
> \stoptext
> ===================

\starttext

\placeformula\startformula
\underbrace{\unit{15 cm}}_{L}
\stopformula

\stoptext

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

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

* Re: underbraces slightly too narrow (with MkIV 2013.05.28)
  2013-07-10 12:13 ` Marco Patzer
@ 2013-07-10 13:53   ` Rudolf Bahr
  0 siblings, 0 replies; 6+ messages in thread
From: Rudolf Bahr @ 2013-07-10 13:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 759 bytes --]

On Wed, Jul 10, 2013 at 02:13:28PM +0200, Marco Patzer wrote:
> On 2013–07–10 Sanjoy Mahajan wrote:
> 
> > In certain cases, display-mathunderbraces are not quite wide enough.
> > Here's a minimal example:
> > 
> > ===================
> > \starttext
> > 
> > \placeformula\startformula
> > \underbrace{15\,\tf cm}_{L}
> > \stopformula
> > 
> > \stoptext
> > ===================
> 
> \starttext
> 
> \placeformula\startformula
> \underbrace{\unit{15 cm}}_{L}
> \stopformula
> 
> \stoptext
> 
> Marco


Hello *,

I played just a little, normaly I have nothing to do with math-formulae::

\starttext

\placeformula\startformula
\underbrace{\unit{15 cm}\hskip2pt}_{L}
\stopformula


\stoptext

Best regards,
Rudolf


[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

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

* Re: underbraces slightly too narrow (with MkIV 2013.05.28)
  2013-07-10 12:02 underbraces slightly too narrow (with MkIV 2013.05.28) Sanjoy Mahajan
  2013-07-10 12:13 ` Marco Patzer
@ 2013-07-11 12:48 ` Hans Hagen
  2013-07-12 14:28   ` Sanjoy Mahajan
  2014-02-15 20:15   ` Sanjoy Mahajan
  1 sibling, 2 replies; 6+ messages in thread
From: Hans Hagen @ 2013-07-11 12:48 UTC (permalink / raw)
  To: ntg-context

On 7/10/2013 2:02 PM, Sanjoy Mahajan wrote:
> In certain cases, display-mathunderbraces are not quite wide enough.
> Here's a minimal example:
>
> ===================
> \starttext
>
> \placeformula\startformula
> \underbrace{15\,\tf cm}_{L}
> \stopformula
>
> \stoptext
> ===================
>
> Using 2013.05.28 00:36 MKIV (from vanilla TL2013), the left brace tip
> starts under the vertical bar of the "1", instead of enclosing the serif
> as well.  The right brace tip ends between the last two tines of the
> "m", instead of enclosing the whole "m" and its serifs.
>
> With 2013.04.09 10:38 MKII, the brace tips extend just slightly beyond
> the "15 cm", which is better.  However, they seem slightly too close.
>
> As a test, I ran the comparable plain-TeX file through LuaTeX and PDFTeX.
>
> ==================
> $$
> \underbrace{15\,\rm cm}_{L}
> $$
>
> \bye
> ==================
>
> The gap between the right brace tip and the text is slightly greater
> (with either LuaTeX or PDFTeX), and it looks right.
>
> (With the 2012.05.30 MKIV on live.contextgarden.net, the result is
> similar to the Lua/PDFTeX versions, though not identical, and also looks
> reasonable.)

it has to do with the fact that we have opentype math fonts now and 
these are not compatible

what you observe is the fact that we have a discrete number of sizes 
till we run out of them and go stretchable

anyhow, i've now defined then in a different way (ok, some more trickery 
had to be applied as it's one of these aspects of open type math that 
still inherits old stuff) so in a next version you can do this:

\setupmathstackers[vfenced][hoffset=10pt]

is it looks like these commands have built-in \limits, these are now set 
for

\overbrace
\overparent
\overbracket
\overbar

\underbrace
\underparent
\underbracket
\underbar

\doublebrace
\doubleparent
\doublebracket
\doublebar

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
___________________________________________________________________________________


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

* Re: underbraces slightly too narrow (with MkIV 2013.05.28)
  2013-07-11 12:48 ` Hans Hagen
@ 2013-07-12 14:28   ` Sanjoy Mahajan
  2014-02-15 20:15   ` Sanjoy Mahajan
  1 sibling, 0 replies; 6+ messages in thread
From: Sanjoy Mahajan @ 2013-07-12 14:28 UTC (permalink / raw)
  To: Hans Hagen, ntg-context

Hans Hagen <pragma@wxs.nl> writes:

> what you observe is the fact that we have a discrete number of sizes
> till we run out of them and go stretchable

That makes sense.

> anyhow, i've now defined then in a different way (ok, some more trickery 
> had to be applied as it's one of these aspects of open type math that 
> still inherits old stuff) so in a next version you can do this:

> \setupmathstackers[vfenced][hoffset=10pt]

When it's ready to test, I'll try it out and wikify an example.

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


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

* Re: underbraces slightly too narrow (with MkIV 2013.05.28)
  2013-07-11 12:48 ` Hans Hagen
  2013-07-12 14:28   ` Sanjoy Mahajan
@ 2014-02-15 20:15   ` Sanjoy Mahajan
  1 sibling, 0 replies; 6+ messages in thread
From: Sanjoy Mahajan @ 2014-02-15 20:15 UTC (permalink / raw)
  To: Hans Hagen, ntg-context

Hans Hagen <pragma@wxs.nl> writes:

> anyhow, i've now defined then in a different way (ok, some more trickery 
> had to be applied as it's one of these aspects of open type math that 
> still inherits old stuff) so in a next version you can do this:
>
> \setupmathstackers[vfenced][hoffset=10pt]

Tested with 2014.02.14 beta, and it is a big improvement.  Again, sorry
it took so long to test.

If I use hoffset=3pt, it seems that some underbraces get 3-pt borders
but others don't.  For example,

\setupmathstackers[vfenced][hoffset=3pt]

\starttext

\placeformula\startformula
\underbrace{15\,\tf cm}_{L}
\times
\underbrace{15}_{L}
\stopformula

\stoptext


The second underbrace has the 3-pt borders, but the first one looks more
like a 0-pt border (though hoffset=0pt makes it have a negative border).

Is it due to quantization, in that the extensibles grow in fixed-size
units?

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


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

end of thread, other threads:[~2014-02-15 20:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-10 12:02 underbraces slightly too narrow (with MkIV 2013.05.28) Sanjoy Mahajan
2013-07-10 12:13 ` Marco Patzer
2013-07-10 13:53   ` Rudolf Bahr
2013-07-11 12:48 ` Hans Hagen
2013-07-12 14:28   ` Sanjoy Mahajan
2014-02-15 20:15   ` Sanjoy Mahajan

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).