ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Cambria integral operator
@ 2009-10-14 15:23 Sebastian Sturm
  2009-10-15  6:56 ` Taco Hoekwater
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastian Sturm @ 2009-10-14 15:23 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 593 bytes --]

Hi all,

I have been playing around a bit with the new ConTeXt Minimals and  
especially Cambria Math. I couldn't figure out, however, why the  
integral operator always comes out at about half the size of \sum or  
\prod. I couldn't find any relevant threads on the mailing list, but  
surely this is not the way it's supposed to be?
Is there some list on the web showing what parts of math have been  
implemented, what still needs to be done (and, where someone with  
limited TeX knowledge could provide some assistance)?

Best regards,
Sebastian

Attachments: minimal example (tex + pdf)

[-- Attachment #2: test.pdf --]
[-- Type: application/pdf, Size: 63943 bytes --]

[-- Attachment #3: test.tex --]
[-- Type: application/octet-stream, Size: 206 bytes --]

\usetypescript[cambria]
\setupbodyfont[cambria]
\starttext
This integral is way too small:
\startformula
	\int_a^b \sum_a^b \prod_a^b \widehat{also, widehat does not scale correctly}
\stopformula
\stoptext

[-- Attachment #4: Type: text/plain, Size: 486 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] 5+ messages in thread

* Re: Cambria integral operator
  2009-10-14 15:23 Cambria integral operator Sebastian Sturm
@ 2009-10-15  6:56 ` Taco Hoekwater
  2009-10-15  7:39   ` Taco Hoekwater
  0 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2009-10-15  6:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Sebastian Sturm wrote:
> Hi all,
> 
> I have been playing around a bit with the new ConTeXt Minimals and
> especially Cambria Math. I couldn't figure out, however, why the
> integral operator always comes out at about half the size of \sum or
> \prod. I couldn't find any relevant threads on the mailing list, but
> surely this is not the way it's supposed to be?

No, that is clearly not right. I will investigate and report back.

On the \widehat: it scales as far as the font allows it to. If that
is not wide enough, I guess you could send a bug report to Microsoft.

> Is there some list on the web showing what parts of math have been
> implemented, what still needs to be done (and, where someone with
> limited TeX knowledge could provide some assistance)?

No, not on the web. But there are only a few known MATH issues in the
core/mkiv that I know of:

* Latin Modern Math (and other old math font) virtual definitions are
  far from perfect (but that should not affect you, as you are using
  CambriaMath).
* There is no support for skewed (text-style, with a diagonal bar,
  like in the frac feature) fractions yet in luatex.
* The traditional TeX commands \atopwithdelims, \overwithdelims, and
  \abovewithdelims do not work properly because there is no matching
  MATH parameter at all.

The real problem though, is that we do not have massive math tests:
neither Hans nor me do any math typesetting in daily practise.

Best wishes,
Taco
___________________________________________________________________________________
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] 5+ messages in thread

* Re: Cambria integral operator
  2009-10-15  6:56 ` Taco Hoekwater
@ 2009-10-15  7:39   ` Taco Hoekwater
  2009-10-15  7:47     ` Michail Vidiassov
  0 siblings, 1 reply; 5+ messages in thread
From: Taco Hoekwater @ 2009-10-15  7:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Taco Hoekwater wrote:
> 
> Sebastian Sturm wrote:
>> Hi all,
>>
>> I have been playing around a bit with the new ConTeXt Minimals and
>> especially Cambria Math. I couldn't figure out, however, why the
>> integral operator always comes out at about half the size of \sum or
>> \prod. I couldn't find any relevant threads on the mailing list, but
>> surely this is not the way it's supposed to be?
> 
> No, that is clearly not right. I will investigate and report back.

This looks like another font bug, but it is one that maybe needs
patching in the mkiv core. The font defines DisplayOperatorMinHeight
to be 2500 units. The smallest integral that satifies that specification
has a total height of 2768 units (at 12pt fontsize, that is 16.3pt), the
smallest matching summation has a total height of 4056 units (22.9pt).

That is indeed way bigger, but the context output matches the MATH table
specification. But to prevent ugly output, it may be better to force the
DisplayOperatorMinHeight to 2800 (the next integral is 4405 units).

Hans, Aditya, WDYT?

Best wishes,
Taco


___________________________________________________________________________________
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] 5+ messages in thread

* Re: Cambria integral operator
  2009-10-15  7:39   ` Taco Hoekwater
@ 2009-10-15  7:47     ` Michail Vidiassov
  2009-10-15 14:12       ` Taco Hoekwater
  0 siblings, 1 reply; 5+ messages in thread
From: Michail Vidiassov @ 2009-10-15  7:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear Taco,

On Thu, 15 Oct 2009, Taco Hoekwater wrote:

>>> I have been playing around a bit with the new ConTeXt Minimals and
>>> especially Cambria Math. I couldn't figure out, however, why the
>>> integral operator always comes out at about half the size of \sum or
>>> \prod.
>> No, that is clearly not right. I will investigate and report back.
>
> This looks like another font bug, but it is one that maybe needs
> patching in the mkiv core.
> Hans, Aditya, WDYT?

While you are at it, may you take a second look at the integral limits 
placement, as it was already reported in

http://www.mail-archive.com/ntg-context@ntg.nl/msg39749.html


             Sincerely, Michail
___________________________________________________________________________________
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] 5+ messages in thread

* Re: Cambria integral operator
  2009-10-15  7:47     ` Michail Vidiassov
@ 2009-10-15 14:12       ` Taco Hoekwater
  0 siblings, 0 replies; 5+ messages in thread
From: Taco Hoekwater @ 2009-10-15 14:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users



Michail Vidiassov wrote:
> 
> While you are at it, may you take a second look at the integral limits
> placement, as it was already reported in

I did a trick in commit #3066 just now: the C function var_delimiter()
(which is used for large operators as well as actual delimiters) now
ignores italic corrections for 'new math' fonts.

It certainly helps, the placement is now much better.

Best wishes,
Taco




___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2009-10-15 14:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-14 15:23 Cambria integral operator Sebastian Sturm
2009-10-15  6:56 ` Taco Hoekwater
2009-10-15  7:39   ` Taco Hoekwater
2009-10-15  7:47     ` Michail Vidiassov
2009-10-15 14:12       ` Taco Hoekwater

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