Wikipedia:WikiProject Mathematics/MathFormattingBugs
This page lists bugs and glitches with the mathematical formatting system using the math extension, with different preferences (server-side svg/client side svg/client side mathml). See Help:Displaying a formula.
To view all three modes visit Special:Preferences § mw-prefsection-rendering and change the Math setting to SVG (MathML can be enabled via browser plugin). See #Formatting notes, below, for how to add entries.
| Number | LaTex | server-side svg | client side svg | client side mathml | Notes |
|---|---|---|---|---|---|
| 9 open | \tbinom{n}{k} \binom{n}{k} {n \choose k} |
Text style binomial coefficient uses parentheses that are too big | |||
| T434477 new task | \textstyle \sum_{k=0}^{n-1} \frac{ \binom {n+1}k }{\binom n{k+1} } |
Binomial coefficients get hilariously wrongly sized when used from inside a text-style fraction | |||
| 1 open T434428 | \Gamma \Delta \Theta \Xi \Omicron \Pi \Sigma \Upsilon \Phi \Chi \Psi \Omega |
uses the wrong symbol – shouldn't be italicized. See mw:Extension:Math/T434428 for full set of typefaces | |||
| 2 open | x\pm y |
\pm" has the wrong vertical position (the minus part is below the baseline) – perhaps uses the wrong font | |||
| 3 open | 1 \backslash 2 / 3 |
"\backslash" is the wrong shape and size, doesn't match "/" – again, perhaps the wrong font | |||
| 4 (maybe T417248?) | x' |
prime is horizontally too far from the letter in client-side SVG mode | |||
| 5 T434607 new task | \ddot {x} |
derivative dots in are too small, hard to read | |||
| 6 open | \overbrace{ 1+2+\cdots+100 }^{5050} |
spacing around + signs with an overbrace is completely wrong, | |||
| 7 open | \frac{\sum_{k=1}^N k^2}{a} |
Sum in a fraction uses the wrong format (should be inline style) | |||
| 8 open | \int_{a}^{b} x \ dx |
Lower limits of integrals are too far from the integral sign | |||
| 17 open | \tfrac12,\, \tfrac{123}{456},\, \tfrac{a}{b},\, \tfrac{\sqrt2 x}{5y} |
Text-style fractions have vertical spacing that is much too tight | |||
S_0 \subset S_1\subset \dots\subset S_r |
Ellipses made with | ||||
S_0 \subset S_1\subset \cdots\subset S_r |
Using | ||||
\left / \frac{a}{b} \right \backslash |
Automatically sized ( | ||||
\|x\| |
Poor font used for norm: The two vertical lines are too close together, which compromises legibility. | ||||
| T434456 new task | \left(a\right)' |
Missing prime symbol after lage right hand bracket. Main space example at Derivative#Rules for combined functions for quotient rule | |||
\bigl( () \bigr) |
Manually sized | ||||
{\sin}\bigl(\tfrac14\pi\bigr) |
Slightly too much horizontal whitespace inside big parens | ||||
\mbox{if}\ n\ \mbox{is even} |
Too much space between \mbox and mathematical symbol. The space in the \mbox also looks a bit big. | ||||
| 15 open | <math>f(x) = {}</math><math>x^2</math>
|
There's not enough space after the equals sign in f(x) = {} which means that a long inline equation broken up into multiple math tags to allow line breaks will have incorrect space between parts.
| |||
let <math>f(x) = {}</math><math>x^2</math>
|
let | let | let | Two <math> tags in a row have inconsistent baselines and neither one matches the adjacent text baseline. Bizarrely, the inconsistency is different than without the text (see preceding example).
| |
C'^{*\!}, C' |
Inexplicably inconsistent prime symbols | ||||
| T434504 (this tracker issue currently doesn't address this bug) | \overline{\operatorname{gd} z},\, \operatorname{gd} z |
Not enough space between function and argument under overline: The spacing should be the same with or without the overline. | |||
\sqrt{t} \sqrt{x \vphantom{t} } |
Square root symbol is too high, which is especially ugly when trying to equalize the position of multiple square roots | ||||
\textstyle {F_n}^{\!2} |
Superscript too far away, even after negative space | ||||
\begin{align} &\Q\bigl(\sqrt5\bigr) \\ &\Q\bigl(\sqrt5~\!\bigr) \end{align} |
Workaround to add a tiny amount of space ( | ||||
\begin{align} &\sqrt{x} \big/ \sqrt{y} \\ &\sqrt{x} \big/ ~\!\!\sqrt{y} \\ &\sqrt{x} \big/ \!\sqrt{y} \end{align} |
Workaround to remove a tiny amount of space ( | ||||
\begin{align} &xy \\ &x\,y \\ &x~y \\ &x\;y \\ &x\ y \end{align} |
| ||||
| T434504 (this tracker issue currently doesn't address this bug) | \mathrm{N}(\overline\alpha) |
Overline too close to the letter, and not properly horizontally aligned | |||
| T434504 | \bar x \bar m \bar{ABC} |
| |||
a \equiv b \pmod{m} |
| ||||
x ^ {x ^ {568 + xyz + il\ell e c + \rho p} } |
Super-superscript font is illegibly small and thin in "Client-side SVG" mode. Even the superscript font is pretty hard to read for readers with excellent displays and eyesight. (We don't currently seem to do it in any mode, but ideally we'd use a dedicated superscript font with increased weight and slightly changed letter shapes; see optical size. Computer Modern, implemented with Metafont, was designed such that TeX documents made with it would have slightly different letter shapes for every common text size, not just one shape for each symbol scaled up or down.) | ||||
\sum_0^{\frac12 X } |
Vertical fraction in a summation limit is illegibly small | ||||
(kx)^2,\, \sqrt{(kx)^2,\, \left(kx\right)^2} |
Superscript after | ||||
\C \setminus \{0\},\, \C \smallsetminus \{0\} |
| ||||
\square ABCD,\, \triangle ABC |
Square symbol is too small, doesn't match size of letters or triangle symbol | ||||
| 9 open | \bigl[ \begin{smallmatrix} 1 & 1 \\ 1 & 0 \end{smallmatrix} \bigr] |
Small matrix is ugly with poor spacing and alignment | |||
\left(\frac{1+x}{2}\right),\, \left(\frac{1+x}{2}\right)^n |
Inclusion of a superscript outside of parentheses breaks the spacing around + sign in a fraction |
| Number | LaTex | server-side svg | client side svg | client side mathml | Notes |
|---|---|---|---|---|---|
| 10 open | \begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0 \end{bmatrix} |
all types of ellipsis use the wrong font – the dots are spaced much too closely together | |||
| 11 open | \begin{bmatrix} x & y \\ z & v \end{bmatrix} |
There's not enough horizontal whitespace space between the contents of a matrix and the brackets surrounding it | |||
| 12 open | f(n) = \begin{cases} n/2, & \text{if }n\text{ is even} \\ 3n+1, & \text{if }n\text{ is odd} \end{cases} |
There's not enough horizontal whitespace after the brace in the 'cases' environment | |||
| 13 open | \begin{align} f(x) & = (a+b)^2 \\ & = a^2+2ab+b^2 \\ \end{align} |
The "align" environment has moderately broken whitespace, | |||
| 14 open | \begin{alignat}{2} f(x) & = (a-b)^2 \\ & = a^2-2ab+b^2 \\ \end{alignat} |
and "alignat" is completely broken. | |||
| 14 open T434424 | \begin{alignat}{3} f(a,b) & = (a+b)^2 && = (a+b)(a+b) \\ & = a^2+ab+ba+b^2 && = a^2+2ab+b^2 \\ \end{alignat} |
Too much space in alignat in MathMl and Client SVG | |||
{{box|<math>\begin{align} x &= 1, \\ y &= 2.\end{align}</math>}} {{box|<math>\begin{align} x &= 1, \\ y &= 2. \\ \end{align}</math>}}
|
Adding \\ at the end of the align environment causes pointless extra space at the bottom. Output should be identical with or without the trailing \\.
| ||||
\begin{align} \frac{\pi}{4} &= \sum_{n=0}^{\infty} \left(\frac{1}{4n+1}-\frac{1}{4n+3}\right) \\[6px] &= \sum_{n=0}^{\infty} \frac{2}{(4n+1)(4n+3)} \end{align} |
In "align" extra vertical spacing instructions at line breaks written in terms of 'px' units are visibly rendered instead of changing the spacing | ||||
\begin{align} f(x) &= 2(x + 2) \\[20mu] &= 2x + 4 \\[8pt] &= 2x + 2^2 \end{align} |
In "align" extra vertical spacing instructions at line breaks written in terms of 'mu' and 'pt' units do not properly change the spacing | ||||
| 16 reopened T377167 | \begin{array}{|c|c|c|} a & b & S \\
\hline
0 & 0 & 1 \\
0 & 1 & 1 \\
1 & 0 & 1 \\
1 & 1 & 0 \\
\end{array}
|
Lines between cells in the 'array' environment are not rendered at all. T377167 now reopened. | |||
\begin{align}x = b_0 + \dfrac{a_1}{b_1} {{}\atop+} \\[28mu]\ \end{align} \! \begin{align} \dfrac{a_2}{b_2} {{}\atop+} \\[2mu] \ \end{align} \! \begin{align}\dfrac{a_3}{b_3} {{}\atop+}\end{align} \! \begin{align}\\[2mu] \dfrac{a_4}{b_4} +\, \cdots. \end{align} |
Workaround used to render Leibniz's continued fraction notation is broken. (Such workarounds are necessary because Mediawiki's LaTeX implementation doesn't support the usual LaTeX commands for positioning elements.) | ||||
\cfrac{a_1}{1+a_2-\cfrac{a_2a_3} {1+a_3+a_4-\cfrac{a_4a_5} {1+a_5+a_6- \ddots } } } |
Incorrect vertical spacing in cfrac | ||||
\operatorname{gd} ({\pm \pi i} + \bar z) = \begin{cases} \pi - \overline{\operatorname{gd} z} \quad &\mbox{if }\ \ \operatorname{Re} z \geq 0, \\[5mu] -\pi - \overline{\operatorname{gd} z} \quad &\mbox{if }\ \ \operatorname{Re} z < 0, \end{cases} |
Inconsistent overline thickness | ||||
\bigl\{ {\textstyle \sum_{i=1}^n \alpha_i\beta_i} \mathrel{\big|} n \in \N,\, a_i \in \mathfrak{a},\, b_i \in \mathfrak{b} \bigr\} |
Vertical line explicitly set to use relation spacing ( |
| Number | LaTex | server-side svg | client side svg | client side mathml | Notes |
|---|---|---|---|---|---|
x : y : z |
Lack of space before colon | ||||
| T410843 | p(a|b) |
Pipe introduces spurious spacing in Firefox | |||
\|pq\| = \|p\| \|q\| |
Norm introduces spurious spacing in Firefox | ||||
\begin{align} \sqrt5 \end{align} |
| ||||
a \xrightarrow{\cong} b |
The ≅ symbol above the arrow is not clipped (as in server-side SVG render, which took a workaround to avoid) but in MathML mode is positioned too far to the right. |
Formatting notes
To add and example, use a line like
|-
|| {{phab|T1234}} status || {{/RowFormat| 1= \tbinom{n}{k} }} || Description
In one of the tables. This will automatically add four columns with the latex code,
There are some restrictions on the characters that you can use in parameters to the {{/RowFormat}} template. The character | is treated as a separator between template characters so can't be use directly, instead use the {{!}} special template that is converted to a pipe character in the template transclusion process. Double curly bracket either {{ or }} signify the start or end of a template to transclude. Here simply add a space between then, latex ignore the extra space.
| Number | LaTex | server-side svg | client side svg | client side mathml | Notes |
|---|---|---|---|---|---|
| 1 | \left| \frac 1 2 \right| |
Produced with: {{/RowFormat| 1= \left{{!}} \frac 1 2 \right{{!}} }}
| |||
| 2 | \overline{\frac{top}{bottom} } |
Produced with: {{/RowFormat| 1= \overline{\frac{top}{bottom} } }}
{{/RowFormat| 1= \overline{\frac{top}{bottom}} }}
which causes errors. | |||
| 3 | <math>\left|\overline{\frac{a}{b}}\right|</math>
|
Manual entry without using the RowFormat template. See souce code for format. |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.