Page MenuHomePhabricator

native: Improve rendering for \limits and \nolimits
Open, MediumPublic

Assigned To
Authored By
Physikerwelt
Dec 29 2024, 11:11 AM
Referenced Files
F58079316: image.png
Dec 29 2024, 12:18 PM
F58079311: image.png
Dec 29 2024, 12:18 PM
F58078935: image.png
Dec 29 2024, 11:11 AM

Description

It is still unclear if \limits \nolimits works as expected in native MathML rendering. I suggest creating a comprehensive test suite and then adjust the behaviour.

test cases

\begin{align}
\int \limits_x ABC \\
\int \nolimits_x ABC \\
\operatorname{sn} \limits_x \\
\operatorname{sn} \nolimits_x \\
\operatorname{\int} \limits_x \\
\displaystyle \sum \nolimits_n \\
\displaystyle \sum \nolimits^n \\
\operatorname{\Sigma} \limits_x \\
\Sigma\limits_x %throws a warning
\end{align}

image.png (1×1 px, 114 KB)

questions

  • How do displaystyle and limits interact?
  • Which commands are allowed before limits?
  • Should limits be ignored if used at a place where it is not allowed?

Event Timeline

Hello,

I will add some examples, where I see errors.

  1. <math forcemathmode="native">\displaystyle \int\nolimits_0^\infty f(x) dx</math>:
    image.png (96×788 px, 13 KB)

Here the limits of the integral should be on the right.

  1. <math forcemathmode="native">\iiint_{V_\mathrm{Kart}} f(x, y, z) \,\mathrm dx \mathrm dy \mathrm dz = \iiint_{V_\mathrm{Kug}} \tilde f(r, \theta, \varphi) \cdot r^2 \sin\theta \,\mathrm{d}r \mathrm{d}\theta \mathrm{d}\varphi </math>:
    image.png (64×652 px, 12 KB)

Here the limits of the integral should be on the right.