ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \nolimits no effect in LMTX
@ 2022-08-16 13:38 Stefan Haller via ntg-context
  2022-08-16 15:47 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Haller via ntg-context @ 2022-08-16 13:38 UTC (permalink / raw)
  To: ntg-context; +Cc: Stefan Haller

Hello,

The \nolimits macro has no effect in LMTX, but works fine in the context
mkiv version of my texlive installation.

Small example:

\starttext
\startformula
  \sum\nolimits_{i=1}^{n} a_i
\stopformula
\stoptext

In LMTX the sub- and superscripts are incorrectly placed below and above
the sum operator. Can someone have a look what's going wrong? Thanks in
advance!

Best regards,
Stefan Haller
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \nolimits no effect in LMTX
  2022-08-16 13:38 \nolimits no effect in LMTX Stefan Haller via ntg-context
@ 2022-08-16 15:47 ` Hans Hagen via ntg-context
  2022-08-16 16:15   ` Stefan Haller via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2022-08-16 15:47 UTC (permalink / raw)
  To: Stefan Haller via ntg-context; +Cc: Hans Hagen

On 8/16/2022 3:38 PM, Stefan Haller via ntg-context wrote:
> Hello,
> 
> The \nolimits macro has no effect in LMTX, but works fine in the context
> mkiv version of my texlive installation.
> 
> Small example:
> 
> \starttext
> \startformula
>    \sum\nolimits_{i=1}^{n} a_i
> \stopformula
> \stoptext
> 
> In LMTX the sub- and superscripts are incorrectly placed below and above
> the sum operator. Can someone have a look what's going wrong? Thanks in
> advance!	
\starttext

\definemathoperator[nosum][sum][method=nolimits]

\startformula
   \sum [method=nolimits]_{i=1}^{n} a_i +
   \sum _{i=1}^{n} a_i +
   \sum [bottom={n},top={i=1},topcolor=red] a_i +
   \nosum _{i=1}^{n} a_i
   \nosum[method=auto] _{i=1}^{n} a_i
\stopformula

\stoptext

the \nolimits command is actually a modifier that 'looks back'and 
patches a previous math atom an dthat doesn't work well with the new 
more flexible implementation of \sum as math operator

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | 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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \nolimits no effect in LMTX
  2022-08-16 15:47 ` Hans Hagen via ntg-context
@ 2022-08-16 16:15   ` Stefan Haller via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Haller via ntg-context @ 2022-08-16 16:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Stefan Haller

On Tue, Aug 16, 2022 at 05:47:06PM +0200, Hans Hagen via ntg-context wrote:
> \definemathoperator[nosum][sum][method=nolimits]
> 
> \startformula
>   \sum [method=nolimits]_{i=1}^{n} a_i +
>   \sum _{i=1}^{n} a_i +
>   \sum [bottom={n},top={i=1},topcolor=red] a_i +
>   \nosum _{i=1}^{n} a_i
>   \nosum[method=auto] _{i=1}^{n} a_i
> \stopformula
> 
> \stoptext

Thanks for the response and also for your efforts creating and
maintaining ConTeXt! The proposed alternative work well. This also
solves the confusion due to never being able to to remember that I have to
put the \limits / \nolimits directive *after* the symbol I want to
modify.

If somebody else stumbled across this: The code for the *mathoperators
macros sits in `mkxl/math-lop.mkxl`.

Best regards,
Stefan
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-16 16:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-16 13:38 \nolimits no effect in LMTX Stefan Haller via ntg-context
2022-08-16 15:47 ` Hans Hagen via ntg-context
2022-08-16 16:15   ` Stefan Haller via ntg-context

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).