[NTG-context] Lower limit of integrals shifted

Mikael P. Sundqvist mickep at gmail.com
Fri Jan 11 14:43:34 CET 2019


On Fri, Jan 11, 2019 at 11:36 AM Hans Hagen <j.hagen at xs4all.nl> wrote:
>
> 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
>
>
>
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>         tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -----------------------------------------------------------------

Oh, that sounds bad if it is in the fonts (I don't understand, it
seemed to work fine with lmodern, stixtwo, lucidaot, ... just before,
has something changed recently?)

Two related questions:

1) This \mathnolimitsmode does not seem to have any effect in a
\startformula \stopformula.
2) Could one set this globally (both inline and displayed formulas) in
a document?

/Mikael


More information about the ntg-context mailing list