Page MenuHomePhabricator

native: \tbinom{n}{k} is broken
Closed, ResolvedPublic

Description

Most things seem fine, although with a lighter weight, and font size for equations a little less than standard font for surronding text. A couple of things are broken
\tbinom{n}{k}

I'm not sure where the issues lie, is it the conversion of latex to mathml, or Chrome's rendering of the mathml.

Event Timeline

Thanks for your feedback. Just checked this case, in Chromium and Firefox. In Chrome this looks like this{F41502250}. Could you specify what exactly is the issue here @SalixAlba

This is from https://test.wikipedia.org/wiki/Help:Displaying_a_formula rendered in Google Chrome

image.png (155×1 px, 18 KB)

Bracket placement clearly too low. Or actually here the <mfrac> is too high.

Change 975592 had a related patch set uploaded (by Stegmujo; author: Stegmujo):

[mediawiki/extensions/Math@master] Fix tbinom bracket sizes

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

Ok, verified in Chrome on Windows. On Chromium on Linux it seems to be correct.

Created an example with several affected cases (functions with brackets parsed by genFrac function)

.
The problem which causes the display issues in Chrome is that maxsize is defined too small, or at all. Mathjax creates similar outputs as TexVC currently and also produces such issue cases. A solution would be to remove maxsize or set it bigger so the brackets can stretch correctly.

Change 975592 merged by jenkins-bot:

[mediawiki/extensions/Math@master] Fix genFrac bracket sizes

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