Page MenuHomePhabricator

MathJax rendering of \det\nolimits is wrong
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
Christian1985
Jan 8 2026, 7:54 PM
Project Tags
Referenced Files
F71691703: image.png
Feb 5 2026, 2:57 PM
F71573554: Screenshot 2026-01-19 at 21.09.32.png
Jan 19 2026, 10:59 PM
F71542599: Screenshot 2026-01-16 at 23.14.35.png
Jan 16 2026, 10:15 PM
F71480263: image.png
Jan 9 2026, 12:44 PM
F71470925: Screenshot From 2026-01-08 21-23-01.png
Jan 8 2026, 8:23 PM
F71470923: Screenshot From 2026-01-08 21-22-41.png
Jan 8 2026, 8:23 PM
F71470745: Screenshot 2026-01-08 at 21.00.36.png
Jan 8 2026, 8:01 PM
F71470636: image.png
Jan 8 2026, 7:54 PM

Description

I am Using Ubuntu 24.04 with Chrome 143.0.7499.192 (Offizieller Build) (64-Bit)

The math code
:<math>
L(M) := \det\nolimits^{\frac{1}{2}} \left( \frac{R/2}{\tanh(R/2)}\right) \in \mathcal{A}^{4 \bullet}(M)\,,
</math>

is rendert as

image.png (546×74 px, 12 KB)

This is not correct. The operator \nolimits must not be displayed.

The example is taken from https://de.wikipedia.org/wiki/Signatursatz_von_Hirzebruch

Event Timeline

Physikerwelt triaged this task as High priority.

Screenshot 2026-01-08 at 21.00.36.png (1,220×368 px, 78 KB)

^^
After action=purge it looks still wrong (but I can better understand the problem).

matoid mml:
tex: \det\nolimits^{\frac{1}{2}}

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" alttext="\det \nolimits ^{\frac {1}{2}}">
  <semantics>
    <msup>
      <mo form="prefix">det</mo>
      <mrow class="MJX-TeXAtom-ORD">
        <mfrac>
          <mn>1</mn>
          <mn>2</mn>
        </mfrac>
      </mrow>
    </msup>
    <annotation encoding="application/x-tex">\det \nolimits ^{\frac {1}{2}}</annotation>
  </semantics>
</math>

Going to https://de.wikipedia.org/w/index.php?title=Signatursatz_von_Hirzebruch&oldid=262928291 , cannot reproduce in Firefox 146 on Fedora Linux:

Screenshot From 2026-01-08 21-22-41.png (947×333 px, 58 KB)

and cannot reproduce in Chromium 143 either:
Screenshot From 2026-01-08 21-23-01.png (947×364 px, 61 KB)

Argh, I am very sorry, I could have sworn that I had set MathJax in my preferences. Sorry for wasting your time. :( Please ignore my previous comment.

There are actually two problems.

  1. \sum\nomlimits^x_{} is not rendered like \sum\nomlimits^x I suggest to do a major refactoring here that all instances of a^b_c in cases where b or c are not specified are rendered like empty arguments.
  1. \det is not considered as an operator like \sum

Hello @Physikerwelt ,

I think problem one is describe in bug T414122.

Perhaps it is not necessary to implement \det\nolimits for MathJax. The code \det\nolimits was probably created because \det^{\frac{1}{2}} is displayed incorrectly in SVG mode. Perhaps this should be fixed for the svg rendering and then \det\nolimits should be replaced with \det everywhere.

The code
<math>L(M) := \det^{\frac{1}{2}} \left( \frac{R/2}{\tanh(R/2)}\right) \in \mathcal{A}^{4 \bullet}(M)\,,</math>
rendert as SVG is displayed as

image.png (448×91 px, 11 KB)

@Christian1985 I think, regardless of SVG errors, we should make sure that MathJax renders like LaTeX. And there \det\nolimits seems to behave in the same way as svg rendering.

Unfortunately T414122 was a caching problem, so it's not that easy.

Physikerwelt changed the task status from Open to In Progress.Jan 14 2026, 11:00 PM

Change #1226964 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):

[mediawiki/extensions/Math@master] Add limit rendering for UQ

https://gerrit.wikimedia.org/r/1226964

Change #1226964 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Add limit rendering for UQ

https://gerrit.wikimedia.org/r/1226964

The difficult part is done

Screenshot 2026-01-16 at 23.14.35.png (770×470 px, 52 KB)

we now just need to add det to the operator list

Physikerwelt lowered the priority of this task from High to Medium.Jan 16 2026, 10:16 PM

Change #1227956 had a related patch set uploaded (by Physikerwelt; author: Physikerwelt):

[mediawiki/extensions/Math@master] Handle \nolimits for latex_function_names

https://gerrit.wikimedia.org/r/1227956

Change #1227956 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Handle \nolimits for latex_function_names

https://gerrit.wikimedia.org/r/1227956

Hello @Physikerwelt ,

In the article Signatursatz von Hirzebruch on the German Wikipedia (https://de.wikipedia.org/w/index.php?title=Signatursatz_von_Hirzebruch&oldid=262928291) the exponent of the det operator is now correct. Thank you! However, the lower limit of the integral is still rendered incorrectly. The M should not be placed beyond the integral. Wasn’t this part of the ticket?

image.png (2,035×999 px, 260 KB)

@chistian1985 it was T414122... anyhow, I'll file a new ticket.