# [NTG-context] Lower limit of integrals shifted

Hans Hagen j.hagen at xs4all.nl
Fri Jan 11 11:36:54 CET 2019

On 1/10/2019 7:56 AM, Mikael P. Sundqvist wrote:
> Hi,
>
> the output of
>
> \setupmathematics[
> integral=nolimits,
> ]
>
> \starttext
> \startTEXpage[offset=2bp]
> $\displaystyle\int_0^1x^2\,dx=\frac{1}{3}$
> \stopTEXpage
> \stoptext
>
> is attached. Clearly, the lower limit in the integral is not correctly placed.
>
> With hope of a quick fix,
The problem is in the fonts ... some have proper math kerns, some don't,
some have italic, some don't, so one solution for all is impossible

one way to deal with this is setting options (but these can be different
per font and i'm not sure yet how to support that)

you can try if \mathnolimitsmode=3 works ok for you

will work ok for you

\startTEXpage[offset=2bp]
$\mathnolimitsmode0 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
$\mathnolimitsmode1 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
$\mathnolimitsmode2 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
$\mathnolimitsmode3 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
$\mathnolimitsmode4 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
$\mathnolimitsmode2000 \displaystyle\int_0^1 x^2\,dx=\frac{1}{3}$\par
\stopTEXpage

-----------------------------------------------------------------