ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Spacing around integrals
Date: Tue, 6 Nov 2012 17:22:15 +0100	[thread overview]
Message-ID: <35B31397-E37D-4F52-B87F-3715E90AE2A0@gmail.com> (raw)
In-Reply-To: <459265BE-90B3-4034-B9E1-439D572DB375@me.com>

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

  reply	other threads:[~2012-11-06 16:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-06 12:02 Jeong Dal
2012-11-06 16:22 ` Otared Kavian [this message]
2012-11-07 22:32   ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2012-11-07 13:38 Jeong Dal
2012-09-19 21:18 Aditya Mahajan

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=35B31397-E37D-4F52-B87F-3715E90AE2A0@gmail.com \
    --to=otared@gmail.com \
    --cc=ntg-context@ntg.nl \
    /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).