Page MenuHomePhabricator

MathJax rendering of binomial coefficients not correct
Closed, DuplicatePublicBUG REPORT

Assigned To
Authored By
Christian1985
Feb 23 2026, 3:21 PM
Project Tags
Referenced Files
F72474205: Screenshot 2026-03-02 at 15.24.43.png
Mar 2 2026, 2:27 PM
F72303096: Screenshot 2026-02-24 at 07.01.43.png
Feb 24 2026, 6:03 AM
F72302861: Screenshot 2026-02-24 at 06.42.24.png
Feb 24 2026, 5:43 AM
F72302544: Screenshot 2026-02-24 at 06.19.55.png
Feb 24 2026, 5:20 AM
F72293447: image.png
Feb 23 2026, 3:21 PM

Description

I'm using Ubuntu 24.04, Chrome and Wikimedia 1.46.0-alpha (7462adb) 15:11, 23. Feb. 2026 mit MathJax rendering.

The table shows five variants of the binomial coefficient. Each variant contains an error.
In the first row, the MathJax rendering of the coefficient is too small.
In the second row, the rendering of the coefficient is okay, but the rest of the formula is too small.
In the third row, the parentheses are too small for the coefficient.
In the fourth row, everything is too small.
And in the fifth row, the parentheses are even smaller than in the third row.

image.png (1,376×508 px, 121 KB)

Event Timeline

Physikerwelt triaged this task as Medium priority.

Without MathJax it looks even smaller

Screenshot 2026-02-24 at 06.19.55.png (1,932×1,134 px, 336 KB)

The \choose is easy to fix

Screenshot 2026-02-24 at 06.42.24.png (1,958×1,062 px, 318 KB)

here the effect of the smaller inner text is an effect of T418073

Screenshot 2026-02-24 at 07.01.43.png (1,932×1,056 px, 343 KB)

that is with the english Wikipedia css setting of math font size 118% and mtable math-style:inherit

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

[mediawiki/extensions/Math@master] Improve rendering of \choose and \binom

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

Change #1242770 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Improve rendering of \choose and \binom

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