Page MenuHomePhabricator

MathJax rendering of small oint is wrong
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
Christian1985
Jan 8 2026, 7:43 PM
Referenced Files
F71888844: Screenshot 2026-02-12 at 12.16.29.png
Feb 12 2026, 11:16 AM
F71823484: Screenshot 2026-02-11 at 21.20.21.png
Feb 11 2026, 8:20 PM
F71797836: Screenshot 2026-02-10 at 17.40.47.png
Feb 10 2026, 4:41 PM
F71797683: Screenshot 2026-02-10 at 17.29.10.png
Feb 10 2026, 4:40 PM
F71470882: Screenshot From 2026-01-08 21-16-49.png
Jan 8 2026, 8:17 PM
F71470562: image.png
Jan 8 2026, 7:43 PM

Description

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

The math code

"Dabei bezeichnet <math>\textstyle \oint \int</math> ein [[Umlaufintegral]]"

will not be rendert correctly. It will be rendert es

image.png (381×64 px, 8 KB)

So the symbol of the line integral is much to big in textstyle.

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

Event Timeline

Aklapper closed this task as Invalid.EditedJan 8 2026, 8:17 PM

Cannot reproduce with https://de.wikipedia.org/w/index.php?title=Riemannsche_Vermutung&oldid=263126707 in Firefox 146 on Fedora Linux:

Screenshot From 2026-01-08 21-16-49.png (1,139×412 px, 100 KB)

No problem in Chromium 143.0.7499.192 either.

Please report broken fonts in Ubuntu to Ubuntu.

Hello @Aklapper ,
if the intended standard display mode of math code in Wikipedia is not consistent in the most widely used browser on a heavily used operating system such as Android, then in my opinion that is also a problem for Wikipedia.

I don't know where to report broken fonts in Ubuntu or other distributions, and I won't be following up on this.

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

Confirmed

Screenshot 2026-02-10 at 17.29.10.png (1,218×508 px, 116 KB)

mathoid generates

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block" alttext="\textstyle \oint ">
<semantics>
  <mstyle displaystyle="false" scriptlevel="0">
    <mo>∮<!-- ∮ --></mo>
  </mstyle>
  <annotation encoding="application/x-tex">\textstyle \oint</annotation>
</semantics>
</math>

vs native rendering

<math xmlns="http://www.w3.org/1998/Math/MathML" class="mwe-math-element mwe-math-element-inline">
<mrow data-mjx-texclass="ORD">
  <mstyle displaystyle="true" scriptlevel="0">
    <mstyle displaystyle="false" scriptlevel="0">
      <mstyle displaystyle="true">
        <mo>∮</mo></mstyle></mstyle></mstyle></mrow></math>
Physikerwelt changed the task status from Open to In Progress.EditedFeb 10 2026, 4:41 PM
Physikerwelt triaged this task as Medium priority.
Physikerwelt moved this task from Inbox to Ready to implement on the Math board.

removing the inner mstyle (with display=true) resolves the problem

Screenshot 2026-02-10 at 17.40.47.png (546×218 px, 36 KB)

Screenshot 2026-02-11 at 21.20.21.png (366×290 px, 17 KB)
I just removed the additional (hard-coded) mstyle

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

[mediawiki/extensions/Math@master] Remove hardcoded displaystyle around \oint

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

Change #1238818 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Remove hardcoded displaystyle around \oint

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