Re: [NTG-context] Spacing around integrals

2012-11-07 Thread Jeong Dal
Dear Otared,

Thank you for the sample files.
I may miss the follow-ups.

I'll check your samples and choose a good one for me.

Thank you again.

Best regards,

Dalyoung
___
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
___


Re: [NTG-context] Spacing around integrals

2012-11-07 Thread Hans Hagen

On 11/6/2012 5:22 PM, Otared Kavian wrote:

Dear Dalyoung,

I can confirm that there is still a serious issue with the way mkiv handles the 
bounds of integral signs, and this has been reported several times by Aditya, 
myself and others.
In particular the latest beta (version 2012.11.06 09:56) handles the bounds 
somwhat inconsistently, depending on the fonts used:
• with the default LM fonts, the bounds of the integral sign are 
correct in displayed maths, but are too close whith inline maths;
• with the default xits fonts, the bounds of the integral sign are too 
far away in displayed maths, but are a little bit far whith inline maths.

Here are the source file for my testing and the resulting PDF file. PLease 
typeset the file both with mkii and mkiv to see the differences.
Hans did some changes recently, which resulted in a better behaviour of the 
bug, but still the problem is not completely solved.


The problem with integrals is that we need to support new fonts as well 
as old ones. One issue is that the width of an integral sign is not the 
real with but has some interference with italic corrections. Also, older 
versions of luatex has issues with this and for that context has some 
mechanisms that could deal with it. The current version of luatex has 
improved math so those hacks can go away. Also, math fonts have been 
adapted to the latest interpretations of the open type math 
specification (and those that don't ... well, lets forget about using 
them). In due time all math fonts will be real otf fonts, but I like to 
keep the virtual variant(s) around (as I've too much time invested in 
it, they server as example of defining virtual fonts, and as benchmark 
for traditional fonts).


At the same time we need to deal with italic corrections, in text, where 
open type does not have such a property, as well as in math, where fonts 
can have italic corrections but (as with more cases) the implementation 
of them can be limited.


Anyhow, I now trust luatex do some of that better than before (let's 
assume recent engines and fonts). However, some automagic italic 
correction between italic shapes and non italic shapes as well as math / 
text boundaries are still dealt with.


Yet another issue is that we have double and triple integrals so from 
now on that's also done differently for the virtual fonts (read: more 
mkiv like) as we had already the mechanisms for that in place.


So ... another attempt.

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
___


[NTG-context] Spacing around integrals

2012-11-06 Thread Jeong Dal
Dear Aditya,

In ntg-context Digest, Vol 99, Issue 59, you mention about \int_a^b, but I 
could't find the follow-up for that.

I also have a similar problem when using \int_a^b.

a and b are located at the bottom and top of the integral sign respectively.
Also there is a somewhat big space between the integral sign and f(x).
I am using the latest beta.

Is there any progress for that?

Thank you.
Best regards.

Dalyoung

\setupbodyfont[xits]

\starttext
\startformula
  \int_a^b f(x)dx
\stopformula
\stoptext
___
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
___

[NTG-context] Spacing around integrals

2012-09-19 Thread Aditya Mahajan

Hi,

The spacing around the integrals is wrong in the current version when 
using latin modern or xits (but correct when using cambria or euler).


Is this due to wrong parameters in the font, or something wrong at the 
ConTeXt end?


Minimal example:

\setupbodyfont[xits]
\setupmathematics[integral=nolimits]
\starttext
\startformula
  \int_{-∞}^{∞} f(t)dt
\stopformula
\stoptext

Aditya___
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
___