Extension:Math/Native MathML/Reported Cases

Some reported cases. Vesion on Beta https://en.wikipedia.beta.wmflabs.org/wiki/Extension:Math/Native_MathML/Reported_Cases

Cases

edit
Reported Phabricator bugs
Number LaTex Rendering Notes
1a \text{let}\ {n \to +\infty}
letn+  
task T377057 spaces needed here
1b \lim_{n\to +\infty}\left(1+\frac 1n\right)^n
limn+(1+1n)n  
task T377057 Too much space around operators when used in limits in MathML mode
2 \lim_{n \to +\infty}\frac{\sqrt{2\pi n} }{n!}\left(\frac{n}{e}\right)^n = 1
limn+2πnn!(ne)n=1  
task T375935 The factorial symbol ! should be upright, it is sloping in Clients-side mathjax mode.
3 \det(A)=\sum_{\sigma\in S_n} e(\sigma)\prod_{i=1}^n a_{i,\sigma_i}
det(A)=σSne(σ)i=1nai,σi  
task T375907 \sum_condition puts condition in the in wrong position in MathML and client-side MathJax modes
4a \textstyle \int\limits_{-N}^{N} e^x dx
NNexdx  
task T375349 \int_a^b limits in incorrect position in MathML mode.
4b \textstyle \int_{-N}^{N} e^x dx
NNexdx  
4c \displaystyle \int\limits_{-N}^{N} e^x dx
NNexdx  
4d \displaystyle \int_{-N}^{N} e^x dx
NNexdx  
4e \int\limits_{1}^{3}\frac{e^3/x}{x^2}\, dx
13e3/xx2dx  
4f \int_{1}^{3}\frac{e^3/x}{x^2}\, dx
13e3/xx2dx  
4h \int\limits_{1}^{3}\frac{\frac{e^3}{x} }{\frac{x^2}{5} }\, dx
13e3xx25dx  
4i \int_{1}^{3}\frac{\frac{e^3}{x} }{\frac{x^2}{5} }\, dx
13e3xx25dx  
5a \begin{align} \frac{dy}{du} &= f'(u) = e^u, \\ \frac{du}{dv} &= g'(v) = \cos v, \\ \frac{dv}{dx} &= h'(x) = 2x. \end{align}
dydu=f(u)=eu,dudv=g(v)=cosv,dvdx=h(x)=2x.  
task T375317 \align aligns fields in the centre rather that on the left in MathML mode
5b \begin{align} z & = a \\ f(x,y,z) & = x + y + z \end{align}
z=af(x,y,z)=x+y+z  
5c f(n) = \begin{cases} n/2, & \text{if }n\text{ is even} \\ 3n+1, & \text{if }n\text{ is odd} \end{cases}
f(n)={n/2,if n is even3n+1,if n is odd  
5d \begin{align} a&=b & c&=d & e&=f\\ aa&=bb & cc&=dd & ee&=ff\\ aaa&=bbb & ccc&=ddd & eee&=fff \end{align}
a=bc=de=faa=bbcc=ddee=ffaaa=bbbccc=dddeee=fff  
5e \begin{align} x&=y & X&=Y & a&=b+c\\ x'&=y' & X'&=Y' & a'&=b\\ x+x'&=y+y' & X+X'&=Y+Y' & a'b&=c'b \end{align}
x=yX=Ya=b+cx=yX=Ya=bx+x=y+yX+X=Y+Yab=cb  
6a   Done \begin{align} \frac{dy}{du} &= f'(u) = e^u, \\[6pt] \frac{du}{dv} &= g'(v) = \cos v, \\[6pt] \frac{dv}{dx} &= h'(x) = 2x. \end{align}
dydu=f(u)=eu,dudv=g(v)=cosv,dvdx=h(x)=2x.  
task T375295 \begin{align} with font sizes specified show font size annotation [6pt] in MathML mode
6b \begin{align} \varpi &= [2,1,1,1,1,1,4,1,2,\ldots], \\[8mu] 2\varpi &= [5,4,10,2,1,2,3,29,\ldots], \\[5mu] \frac{\varpi}{2} &= [1,3,4,1,1,1,5,2,\ldots], \\[2mu] \frac{\varpi}{\pi} &= [0,1,5,21,3,4,14,\ldots]. \end{align}
ϖ=[2,1,1,1,1,1,4,1,2,],2ϖ=[5,4,10,2,1,2,3,29,],ϖ2=[1,3,4,1,1,1,5,2,],ϖπ=[0,1,5,21,3,4,14,].  
7a a\operatorname{sn}b
asnb  
task T375861 a\operatorname{sn}b rendered with no spaces before and after operator in MathML mode
7b a(\operatorname{sn}(b)), a[\operatorname{sn}[b]], a\{\operatorname{sn}\{b\}\}
a(sn(b)),a[sn[b]],a{sn{b}}  
no space need here
7c \operatorname{G}(V, g)
G(V,g)  
no space need here
8a \displaystyle\sum_{n\in\mathbb{Z} }
n  
task T375907 \sum_condition puts condition in the in wrong position in MathML and client-side MathJax modes
8b \displaystyle\prod_{n\in\mathbb{Z} }
n  
8b \displaystyle\prod_{n\in\mathbb{Z} }^{n\ne 5}
nn5  
with superscript rendered below
8c \sum_{n>k} R \quad \prod_{n>k} P \quad \coprod_{n>k} RR
n>kRn>kPn>kRR  
8d \bigcup_{n>k} J \quad \biguplus_{n>k} L \quad \bigcap_{n>k} N
n>kJn>kLn>kN  
8e \bigoplus_{n>k} W \quad \bigotimes_{n>k} V \quad \bigodot_{n>k} F
n>kWn>kVn>kF  
8f \bigvee_{n>k} V \quad \bigwedge_{n>k} W \quad \bigsqcup_{n>k} S
n>kVn>kWn>kS  
8g \int_{n>k} U \quad \oint_{n>k} T \quad \iint_{n>k} S
n>kUn>kTn>kS  
Default for integrals is to the side
9a   Done \arccot(x), \arccsc(x), \arcsec(x), \sen(x), \sgn(x)
arccot(x),arccsc(x),arcsec(x),sen(x),sgn(x)  
task T375274

mediawiki_function_names math functions eat the following paren in native MML mode

9b \arcsin(x), \sin(x)
arcsin(x),sin(x)  
9c \operatorname{arccot}(x), \operatorname{arcsin}(x), \operatorname{sgn}(x), \operatorname{sin}(x)
arccot(x),arcsin(x),sgn(x),sin(x)  
10a B^b |\psi\rangle
Bb|ψ  
10a \langle \psi | B^b \quad \lbrace \psi | B^b \quad \lbrack \psi | B^b
ψ|Bb{ψ|Bb[ψ|Bb  
task T375959 Use stretchy="false" for \langle and \rangle in MathML mode
10b B^b |\psi\rangle \quad B^b | \psi \rbrace \quad B^b | \psi \rbrack \quad B^b \vert\psi\rangle
Bb|ψBb|ψ}Bb|ψ]Bb|ψ  
10c B^b \left|\psi\right\rangle \quad \psi \left|B^b\right\rangle
Bb|ψψ|Bb  
Explicitly specifying \left and \right work
11a   Partially done \updownarrow \big\updownarrow \Big\updownarrow \bigg\updownarrow \Bigg\updownarrow \dots \Bigg\Updownarrow \bigg\Updownarrow \Big\Updownarrow \big\Updownarrow \Updownarrow
 
task T375960 \Big/ and \Big\backslash etc are too small in MathML mode.
11b / \big/ \Big/ \bigg/ \Bigg/ \dots \Bigg\backslash \bigg\backslash \Big\backslash \big\backslash \backslash
/////\\\\  
Partially works in Firefox, upstream problems in chrome, some have almost zero use case
12a f:X\to Y
f:XY  
task T375974 Colon in f : X \to Y should be an operator in MathML mode.
12b D \And E
D&E  
Has more space in LaTeX
12c A \smile B \frown B
ABB  
12d A \therefore B \because B
ABB  
12e B \overset{\underset{\mathrm{def} }{} }{=} B
B=defB  
12f A \ulcorner B \urcorner B \llcorner B \lrcorner C
ABBBC  
12g A \blacktriangle B \blacktriangledown B
ABB  
12h \forall(\ulcorner\phi\urcorner\in\Sigma^0_n\cup\Pi^0_n) \implies\mathrm{Tr}_n(\ulcorner\phi(y_0,\ldots,y_n)^*\urcorner))
(ϕΣn0Πn0)Trn(ϕ(y0,,yn)*))  
en:Reflection principle
13   Done \|A\|, D(p\|q)
A,D(pq)  
task T376546

\| should render as a double pipe || rather than a single one |. In MathML and Client-side MathJax modes.

14   Done q(v)=|v|^2\quad q(v)=\|v\|^2 \quad q(v)=\|v\|_A
q(v)=|v|2q(v)=v2q(v)=vA  
task T376558

Vertical alignment of pipes with superscripts wrong in mathml mode

15 \cancel{y}
y  
task T376829

\cancel{y} the strike is not visable in native mathml mode

16   Done \begin{array}{lcr} z & = & a \\ f(x,y,z) & = & x + y + z \end{array}
z=af(x,y,z)=x+y+z  
task T376838

\begin{array}{lcr} does not respect the optional alignment argument in MathML mode

17 \frac{x}{x}\quad\frac{x}{y}\quad\frac{x}{l}\quad\frac{x}{2}\quad\frac{x}{x}\quad\frac{y}x\quad\frac{l}x\quad\frac{2}x
xxxyxlx2xxyxlx2x  
task T376883

Bad spacing for fractions with Safari in MathML mode

18
<math>\cfrac{x}{1 + \cfrac{\cancel{y}}{\cancel{y}}} = \cfrac{x}{2}</math>

<math>\begin{array}{lcr}
 z & = & a \\
 f(x,y,z) & = & x + y + z
\end{array}</math>

MediaWiki MathML:
x1+yy=x2

z=af(x,y,z)=x+y+z

MathJax SVG:
 

 

task T376887

Formula in separate paragraphs displayed on the same line in Safari on Mac OS in MathML mode

19a \lim_{n\to +\infty}\left(1+\frac 1n\right)^n
limn+(1+1n)n  
task T377057

Too much space around operators when used in limits in MathML mode

19b \text{let}\ {n \to +\infty}
letn+  
More space used when not in a script

Operators

edit
Reported Operators
12c A + B - C \pm D \mp E \dotplus F
A+BC±DEF  
12d A \times B \div C \divideontimes D / E \backslash F
A×B÷CD/EF  
12e A\cdot B * C \ast D \star E \circ F \bullet G
AB*CDEFG  
12f A \boxplus B \boxminus C \boxtimes D \boxdot E
ABCDE  
12g A \oplus B \ominus C \otimes D \oslash E \odot F
ABCDEF  
12h A \circleddash B \circledcirc C \circledast D
ABCD  
12i A \in B \notin A \not\in B \ni B \not\ni C
ABA∉BB∌C  
12j A \cap B \Cap B \sqcap B \bigcap C
ABBBC  
12k A \cup B \Cup B \sqcup B \bigcup B \bigsqcup B \uplus B \biguplus C
ABBBBBBC  
12l A \setminus B \smallsetminus B \times C
ABB×C  
12m A \subset B \Subset B \sqsubset C
ABBC  
12n A \supset B \Supset B \sqsupset C
ABBC  
12o A \subseteq B \nsubseteq B \subsetneq B \varsubsetneq B \sqsubseteq C
ABBBBC  
12p A \supseteq B \nsupseteq B \supsetneq B \varsupsetneq B \sqsupseteq C
ABBBBC  
12q A \subseteqq B \nsubseteqq B \subsetneqq B \varsubsetneqq C
ABBBC  
12r A \supseteqq B \nsupseteqq B \supsetneqq B \varsupsetneqq C
ABBBC  
12s A = B \ne B \neq B \equiv B \not\equiv C
A=BBBB≢C  
12t A \doteq B \doteqdot B \overset{\underset{\mathrm{def} }{} }{=} B := C
ABB=defB:=C  
12u A \sim B \nsim B \backsim B \thicksim B \simeq B \backsimeq B \eqsim B \cong B \ncong C
ABBBBBBBBC  
12v A \approx B \thickapprox B \approxeq B \asymp B \propto B \varpropto C
ABBBBBC  
12w A < B \nless B \ll B \not\ll B \lll B \not\lll B \lessdot C
A<BBB≪̸BB⋘̸BC  
12x A > B \ngtr B \gg B \not\gg B \ggg B \not\ggg B \gtrdot C
A>BBB≫̸BB⋙̸BC  
12y A \le B \leq B \lneq B \leqq B \nleq B \nleqq B \lneqq B \lvertneqq C
ABBBBBBBC  
12z A \ge B \geq B \gneq B \geqq B \ngeq B \ngeqq B \gneqq B \gvertneqq C
ABBBBBBBC  
12aa A \lessgtr B \lesseqgtr B \lesseqqgtr B \gtrless B \gtreqless B \gtreqqless C
ABBBBBC  
12ab A \leqslant B \nleqslant B \eqslantless C
ABBC  
12ac A \geqslant B \ngeqslant B \eqslantgtr C
ABBC  
12ad A \lesssim B \lnsim B \lessapprox B \lnapprox C
ABBBC  
12ae A \gtrsim B \gnsim B \gtrapprox B \gnapprox C
ABBBC  
12af A \prec B \nprec B \preceq B \npreceq B \precneqq C
ABBBBC  
12ag A \succ B \nsucc B \succeq B \nsucceq B \succneqq C
ABBBBC  
12ah A \preccurlyeq B \curlyeqprec C
ABC  
12ai A \succcurlyeq B \curlyeqsucc C
ABC  
12aj A \precsim B \precnsim B \precapprox B \precnapprox C
ABBBC  
12ak A \succsim B \succnsim B \succapprox B \succnapprox C
ABBBC  
12al A \parallel B \nparallel B \shortparallel B \nshortparallel C
ABBBC  
12am A \perp B \angle B \sphericalangle B \measuredangle B 45^\circ C
ABBBB45C  
12an A \Box B \square B \blacksquare B \diamond B \Diamond B \lozenge B \blacklozenge B \bigstar C
ABBBBBBBC  
12ao A \bigcirc B \triangle B \bigtriangleup B \bigtriangledown C
ABBBC  
12ap A \vartriangle B \triangledown C
ABC  
12aq A \blacktriangle B \blacktriangledown B \blacktriangleleft B \blacktriangleright C
ABBBC  
12ar A \forall B \exists B \nexists C
ABBC  
12as A \therefore B \because B \And C
ABB&C  
12at A \lor B \vee B \curlyvee B \bigvee C
ABBBC  
12au A \land B \wedge B \curlywedge B \bigwedge C
ABBBC  
12av A \lnot B \neg B \not\operatorname{R} B \bot B \top C
A¬B¬BRBBC  
12aw A \vdash B \dashv B \vDash B \Vdash B \models C
ABBBBC  
12ax A \Vvdash B \nvdash B \nVdash B \nvDash B \nVDash C
ABBBBC  
12ay A \ulcorner B \urcorner B \llcorner B \lrcorner C
ABBBC  
12az A \Rrightarrow B \Lleftarrow C
ABC  
12ba A \Rightarrow B \nRightarrow B \Longrightarrow B \implies C
ABBBC  
12bb A \Leftarrow B \nLeftarrow B \Longleftarrow C
ABBC  
12bc A \Leftrightarrow B \nLeftrightarrow B \Longleftrightarrow B \iff C
ABBBC  
12bd A \Uparrow B \Downarrow B \Updownarrow C
ABBC  
12be A \rightarrow B \to B \nrightarrow B \longrightarrow C
ABBBC  
12bf A \leftarrow B \gets B \nleftarrow B \longleftarrow C
ABBBC  
12bg A \leftrightarrow B \nleftrightarrow B \longleftrightarrow C
ABBC  
12bh A \uparrow B \downarrow B \updownarrow C
ABBC  
12bi A \nearrow B \swarrow B \nwarrow B \searrow C
ABBBC  
12bj A \mapsto B \longmapsto C
ABC  
12bk A \rightharpoonup B \rightharpoondown B \leftharpoonup B \leftharpoondown B \upharpoonleft B \upharpoonright C \downharpoonleft C |- C
ABBBBBCC|C  
12bl A \downharpoonright B \rightleftharpoons B \leftrightharpoons C
ABBC  
12bm A \curvearrowleft B \circlearrowleft B \Lsh B \upuparrows B \rightrightarrows B \rightleftarrows B \rightarrowtail B \looparrowright C
ABBBBBBBC  
12bn A \curvearrowright B \circlearrowright B \Rsh B \downdownarrows B \leftleftarrows B \leftrightarrows B \leftarrowtail B \looparrowleft C
ABBBBBBBC  
12bo A \hookrightarrow B \hookleftarrow B \multimap B \leftrightsquigarrow B \rightsquigarrow B \twoheadrightarrow B \twoheadleftarrow C
ABBBBBBC  
12bp A \amalg B \P B \S B \% B \dagger B \ddagger B \ldots B \cdots B \vdots B \ddots C
A⨿BB§B%BBBBBBC  
12bq A \smile B \frown B \wr B \triangleleft B \triangleright C
ABBBBC  
12br A \diamondsuit B \heartsuit B \clubsuit B \spadesuit B \Game B \flat B \natural B \sharp C
ABBBBBBBC  
12bs A \diagup B \diagdown B \centerdot B \ltimes B \rtimes B \leftthreetimes B \rightthreetimes C
ABBBBBBC  
12bt A \eqcirc B \circeq B \triangleq B \bumpeq B \Bumpeq B \doteqdot B \risingdotseq B \fallingdotseq C
ABBBBBBBC  
12bu A \intercal B \barwedge B \veebar B \doublebarwedge B \between B \pitchfork C
ABBBBBC  
12bv A \vartriangleleft B \ntriangleleft B \vartriangleright B \ntriangleright C
ABBBC  
12bw A \trianglelefteq B \ntrianglelefteq B \trianglerighteq B \ntrianglerighteq C
ABBBC  
12c A \mid B \smile C \frown D \in E \ni F \vdash G \dashv H \models J \propto K
ABCDEFGHJK  
Other binary relations