* Spacing around integrals
@ 2012-09-19 21:18 Aditya Mahajan
0 siblings, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2012-09-19 21:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 410 bytes --]
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
[-- 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] 5+ messages in thread
* Re: Spacing around integrals
2012-11-06 16:22 ` Otared Kavian
@ 2012-11-07 22:32 ` Hans Hagen
0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2012-11-07 22:32 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Otared Kavian
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Spacing around integrals
@ 2012-11-07 13:38 Jeong Dal
0 siblings, 0 replies; 5+ messages in thread
From: Jeong Dal @ 2012-11-07 13:38 UTC (permalink / raw)
To: ntg-context; +Cc: Otared Kavian
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Spacing around integrals
2012-11-06 12:02 Jeong Dal
@ 2012-11-06 16:22 ` Otared Kavian
2012-11-07 22:32 ` Hans Hagen
0 siblings, 1 reply; 5+ messages in thread
From: Otared Kavian @ 2012-11-06 16:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 899 bytes --]
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.
Best regards: OK
[-- Attachment #2: math-integral-bug.tex --]
[-- Type: application/octet-stream, Size: 1450 bytes --]
%the next beta will have:
%\setupmathematics[integral=none]
%nolimits displaylimits limits autolimits none
%
%to play with
% Hans
\starttext
\startbuffer[integrals]
This is inline mathematics: $\int_{0}^{2\pi}\sin(x)dx = 0$ and $\int_{\Gamma}u(z)dz = 2{\rm i}\pi$.
\startformula
\int_{\Omega}f(x)dx=
\int_{0}^\infty g(t)dt
\stopformula
If $\Omega:=(0,\infty)\times(0,\infty)$ then
\startformula
\iint_{\Omega}f(x)dx :=
\int_{0}^\infty \int_{0}^\infty g(s,t)dsdt
\stopformula
If $\Omega:=(0,\infty)\times(0,\infty)\times (0,\infty)$ then
\startformula
\iiint_{\Omega}f(x)dx=
\int_{0}^\infty\int_{0}^\infty\int_{0}^\infty g(s,t,u)dsdtdu
\stopformula
\startformula
{\rm Res}(f,a) :=
{1 \over 2{\rm i}\pi }\oint_{\Gamma} {f(z) \over z-a}dz
\stopformula
\blank[big]
\stopbuffer
\startbuffer[Type]
\type{\setupmathematics[integral=none]}\setupmathematics[integral=none]
\getbuffer[integrals]
\type{\setupmathematics[integral=nolimits]}\setupmathematics[integral=nolimits]
\getbuffer[integrals]
\type{\setupmathematics[integral=displaylimits]}\setupmathematics[integral=displaylimits]
\getbuffer[integrals]
\type{\setupmathematics[integral=limits]}\setupmathematics[integral=limits]
\getbuffer[integrals]
\type{\setupmathematics[integral=autolimits]}\setupmathematics[integral=autolimits]
\getbuffer[integrals]
\hairline
\stopbuffer
\getbuffer[Type]
\blank[big]
\setupbodyfont[xits]
\type{\setupbodyfont[xits]} \getbuffer[Type]
\stoptext
[-- Attachment #3: Type: text/plain, Size: 1 bytes --]
[-- Attachment #4: math-integral-bug.pdf --]
[-- Type: application/pdf, Size: 56934 bytes --]
[-- Attachment #5: Type: text/plain, Size: 1169 bytes --]
On 6 nov. 2012, at 13:02, Jeong Dal <haksan@me.com> wrote:
> 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
> ___________________________________________________________________________________
[-- Attachment #6: 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] 5+ messages in thread
* Spacing around integrals
@ 2012-11-06 12:02 Jeong Dal
2012-11-06 16:22 ` Otared Kavian
0 siblings, 1 reply; 5+ messages in thread
From: Jeong Dal @ 2012-11-06 12:02 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 521 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 1418 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] 5+ messages in thread
end of thread, other threads:[~2012-11-07 22:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-19 21:18 Spacing around integrals Aditya Mahajan
2012-11-06 12:02 Jeong Dal
2012-11-06 16:22 ` Otared Kavian
2012-11-07 22:32 ` Hans Hagen
2012-11-07 13:38 Jeong Dal
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).