ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Mikael P. Sundqvist" <mickep@gmail.com>
To: Hans Hagen <j.hagen@xs4all.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Lower limit of integrals shifted
Date: Fri, 11 Jan 2019 14:43:34 +0100	[thread overview]
Message-ID: <CAHy-LL-E55pORtdUc7VTMuCMS25Fz0ro8_yfHQm0mWghY5yspg@mail.gmail.com> (raw)
In-Reply-To: <9261009a-003c-b76a-6c3d-eb51b851b9e1@xs4all.nl>

On Fri, Jan 11, 2019 at 11:36 AM Hans Hagen <j.hagen@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
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2019-01-11 13:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-10  6:56 Mikael P. Sundqvist
2019-01-11 10:36 ` Hans Hagen
2019-01-11 13:43   ` Mikael P. Sundqvist [this message]
2019-01-11 13:49     ` Hans Hagen
2019-09-12 16:55       ` special book layout problem in ConTeXt Nicolas Mondon
2019-09-15 11:52         ` Wolfgang Schuster
2019-09-15 12:55           ` Henning Hraban Ramm
2019-09-19 17:18           ` Nicolas Mondon
2019-09-19 17:49             ` Wolfgang Schuster
2019-09-19 18:17               ` nicolas mondon

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=CAHy-LL-E55pORtdUc7VTMuCMS25Fz0ro8_yfHQm0mWghY5yspg@mail.gmail.com \
    --to=mickep@gmail.com \
    --cc=j.hagen@xs4all.nl \
    --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).