Difference between revisions of "Math Symbols Help"

From RobotX
Jump to navigation Jump to search
m (Replaced content with "https://en.wikipedia.org/wiki/Help:Displaying_a_formula")
Tag: Replaced
Line 1: Line 1:
=Mathematics Publishing=
+
https://en.wikipedia.org/wiki/Help:Displaying_a_formula
The engineering focus of this wiki is centered on information sharing which includes publishing a voluminous amount of mathematics related to Robonation Projects that the Engineering Club engages.
 
 
 
==Math code Display==
 
The Math library installed in this wiki provides support for Mathematics Notation.
 
Attribute display with the two options "inline" and "block".
 
=== Inline ===
 
If the the value of the display attribute is inline the render will render math in inline mode, i.e. there will be no new paragraph for the equation and the operators will be rendered consuming only little vertical space.
 
 
 
==== Example ====
 
The sum <math display="inline">\sum_{i=0}^\infty 2^{-i}</math> converges to 2.
 
 
 
The next line-width is not disturbed by large operators.
 
 
 
The code for the math example reads:
 
:<code><nowiki><math display="inline">\sum_{i=0}^\infty 2^{-i}</math></nowiki></code>
 
 
 
 
 
=== Block ===
 
In block-style the equation is rendered in its own paragraph and the operator are rendered consuming less horizontal space.
 
 
 
==== Example ====
 
The equation
 
<math display="block">\text{geometric series:}\quad\sum_{i=0}^\infty 2^{-i}=2</math>
 
is used in a joke about mathematicians entering a bar and ordering beer.
 
 
 
== Functions, symbols, special characters ==
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title = Accents/diacritics
 
|group1 = <source lang="text" enclose="none">\dot{a}, \ddot{a}, \acute{a}, \grave{a} </source>
 
|list1 = <math>\dot{a}, \ddot{a}, \acute{a}, \grave{a} \!</math>
 
|group2 = <source lang="text" enclose="none">\check{a}, \breve{a}, \tilde{a}, \bar{a} </source>
 
|list2 = <math>\check{a}, \breve{a}, \tilde{a}, \bar{a} \!</math>
 
|group3 = <source lang="text" enclose="none">\hat{a}, \widehat{a}, \vec{a} </source>
 
|list3 = <math>\hat{a}, \widehat{a}, \vec{a} \!</math>
 
}}
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title = Standard numerical functions
 
|group1 = <source lang="latex" enclose="none">\exp_a b = a^b, \exp b = e^b, 10^m </source>
 
|list1 = <math>\exp_a b = a^b, \exp b = e^b, 10^m \!</math>
 
|group2 = <source lang="latex" enclose="none">\ln c, \lg d = \log e, \log_{10} f </source>
 
|list2 <math>\ln c, \lg d = \log e, \log_{10} f \!</math>
 
|group3 = <source lang="latex" enclose="none">\sin a, \cos b, \tan c, \cot d, \sec e, \csc f</source>
 
|list3 = <math>\sin a, \cos b, \tan c, \cot d, \sec e, \csc f\!</math>
 
|group4 = <source lang="latex" enclose="none">\arcsin h, \arccos i, \arctan j </source>
 
|list4 = <math>\arcsin h, \arccos i, \arctan j \!</math>
 
|group5 = <source lang="latex" enclose="none">\sinh k, \cosh l, \tanh m, \coth n </source>
 
|list5 = <math>\sinh k, \cosh l, \tanh m, \coth n \!</math>
 
|group6 = <source lang="text" enclose="none">\operatorname{sh}\,k, \operatorname{ch}\,l, \operatorname{th}\,m, \operatorname{coth}\,n </source>
 
|list6 = <math>\operatorname{sh}\,k, \operatorname{ch}\,l, \operatorname{th}\,m, \operatorname{coth}\,n \!</math>
 
|group7 = <source lang="text" enclose="none">\operatorname{argsh}\,o, \operatorname{argch}\,p, \operatorname{argth}\,q </source>
 
|list7 = <math>\operatorname{argsh}\,o, \operatorname{argch}\,p, \operatorname{argth}\,q \!</math>
 
|group8 = <source lang="latex" enclose="none">\sgn r, \left\vert s \right\vert </source>
 
|list8 = <math>\sgn r, \left\vert s \right\vert \!</math>
 
|group9 = <source lang="latex" enclose="none">\min(x,y), \max(x,y) </source>
 
|list9 = <math>\min(x,y), \max(x,y) \!</math>
 
}}
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Bounds
 
|group1 = <source lang="latex" enclose="none">\min x, \max y, \inf s, \sup t </source>
 
|list1 = <math>\min x, \max y, \inf s, \sup t </math>
 
|group2 = <source lang="latex" enclose="none">\lim u, \liminf v, \limsup w </source>
 
|list2 = <math>\lim u, \liminf v, \limsup w </math>
 
|group3 = <source lang="latex" enclose="none">\dim p, \deg q, \det m, \ker\phi </source>
 
|list3 = <math>\dim p, \deg q, \det m, \ker\phi </math>
 
}}
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title = Projections
 
|group1 = <source lang="latex" enclose="none">\Pr j, \hom l, \lVert z \rVert, \arg z </source>
 
|list1 = <source lang="latex" enclose="none">\Pr j, \hom l, \lVert z \rVert, \arg z </source>
 
}}
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Differentials and derivatives
 
|group1 = <source lang="latex" enclose="none">dt, \operatorname{d}\!t, \partial t, \nabla\psi</source>
 
|list1 = <math>dt, \operatorname{d}\!t, \partial t, \nabla\psi</math>
 
|group2 = <source lang="text" enclose="none">dy/dx, \operatorname{d}\!y/\operatorname{d}\!x, {dy \over dx}, {\operatorname{d}\!y\over\operatorname{d}\!x}, {\partial^2\over\partial x_1\partial x_2}y </source>
 
|list2 = <math>dy/dx, \operatorname{d}\!y/\operatorname{d}\!x, {dy \over dx}, {\operatorname{d}\!y\over\operatorname{d}\!x}, {\partial^2\over\partial x_1\partial x_2}y </math>
 
|group3 = <source lang="latex" enclose="none">\prime, \backprime, f^\prime, f', f'', f^{(3)}, \dot y, \ddot y </source>
 
|list3 = <math>\prime, \backprime, f^\prime, f', f'', f^{(3)}, \dot y, \ddot y </math>
 
}}
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Letter-like symbols or constants
 
|group1 = <source lang="latex" enclose="none">\infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar </source>
 
|list1 = <source lang="latex" enclose="none">\infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar </source>
 
|group2 = <source lang="latex" enclose="none">\Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS </source>
 
|list2 = <source lang="latex" enclose="none">\Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS </source>
 
}}
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Modular arithmetic
 
|group1 = <source lang="latex" enclose="none">s_k \equiv 0 \pmod{m} </source>
 
|list1 = <source lang="latex" enclose="none">s_k \equiv 0 \pmod{m} </source>
 
|group2 = <source lang="latex" enclose="none">a\,\bmod\,b </source>
 
|list2 = <source lang="latex" enclose="none">a\,\bmod\,b </source>
 
|group3 = <source lang="latex" enclose="none">\gcd(m, n), \operatorname{lcm}(m, n)</source>
 
|list3 = <source lang="latex" enclose="none">\gcd(m, n), \operatorname{lcm}(m, n)</source>
 
|group4 = <source lang="latex" enclose="none">\mid, \nmid, \shortmid, \nshortmid </source>
 
|list4 = <source lang="latex" enclose="none">\mid, \nmid, \shortmid, \nshortmid </source>
 
}}
 
 
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Radicals
 
|group1 = <source lang="text" enclose="none">\surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{x^3+y^3 \over 2} </source>
 
|list1 = <source lang="text" enclose="none">\surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{x^3+y^3 \over 2} </source>
 
}}
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Operators
 
|group1 = <source lang="latex" enclose="none">+, -, \pm, \mp, \dotplus </source>
 
|list1 = <source lang="latex" enclose="none">+, -, \pm, \mp, \dotplus </source>
 
|group2 = <source lang="latex" enclose="none">\times, \div, \divideontimes, /, \backslash </source>
 
|list2 = <source lang="latex" enclose="none">\times, \div, \divideontimes, /, \backslash </source>
 
|group3 = <source lang="latex" enclose="none">\cdot, * \ast, \star, \circ, \bullet </source>
 
|list3 = <source lang="latex" enclose="none">\cdot, * \ast, \star, \circ, \bullet </source>
 
|group4 = <source lang="latex" enclose="none">\boxplus, \boxminus, \boxtimes, \boxdot </source>
 
|list4 = <source lang="latex" enclose="none">\boxplus, \boxminus, \boxtimes, \boxdot </source>
 
|group5 = <source lang="latex" enclose="none">\oplus, \ominus, \otimes, \oslash, \odot</source>
 
|list5 = <source lang="latex" enclose="none">\oplus, \ominus, \otimes, \oslash, \odot</source>
 
|group6 = <source lang="latex" enclose="none">\circleddash, \circledcirc, \circledast </source>
 
|list6 = <source lang="latex" enclose="none">\circleddash, \circledcirc, \circledast </source>
 
|group7 = <source lang="latex" enclose="none">\bigoplus, \bigotimes, \bigodot </source>
 
|list7 = <source lang="latex" enclose="none">\bigoplus, \bigotimes, \bigodot </source>
 
}}
 
 
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Sets
 
|group1 = <source lang="text" enclose="none">\{ \}, \O \empty \emptyset, \varnothing </source>
 
|list1 = <source lang="text" enclose="none">\{ \}, \O \empty \emptyset, \varnothing </source>
 
|group2 = <source lang="latex" enclose="none">\in, \notin \not\in, \ni, \not\ni </source>
 
|list2 = <source lang="latex" enclose="none">\in, \notin \not\in, \ni, \not\ni </source>
 
|group3 = <source lang="latex" enclose="none">\cap, \Cap, \sqcap, \bigcap </source>
 
|list3 = <source lang="latex" enclose="none">\cap, \Cap, \sqcap, \bigcap </source>
 
|group4 = <source lang="latex" enclose="none">\cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus </source>
 
|list4 = <source lang="latex" enclose="none">\cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus </source>
 
|group5 = <source lang="latex" enclose="none">\setminus, \smallsetminus, \times </source>
 
|list5 = <source lang="latex" enclose="none">\setminus, \smallsetminus, \times </source>
 
|group6 = <source lang="latex" enclose="none">\subset, \Subset, \sqsubset </source>
 
|list6 = <source lang="latex" enclose="none">\subset, \Subset, \sqsubset </source>
 
|group7 = <source lang="latex" enclose="none">\supset, \Supset, \sqsupset </source>
 
|list7 = <source lang="latex" enclose="none">\supset, \Supset, \sqsupset </source>
 
|group8 = <source lang="latex" enclose="none">\subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq </source>
 
|list8 = <source lang="latex" enclose="none">\subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq </source>
 
|group9 = <source lang="latex" enclose="none">\supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq </source>
 
|list9 = <source lang="latex" enclose="none">\supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq </source>
 
|group10 = <source lang="latex" enclose="none">\subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq </source>
 
|list10 = <source lang="latex" enclose="none">\subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq </source>
 
|group11 = <source lang="latex" enclose="none">\supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq </source>
 
|list11 = <source lang="latex" enclose="none">\supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq </source>
 
}}
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Relations
 
|group1 = <source lang="latex" enclose="none">=, \ne, \neq, \equiv, \not\equiv </source>
 
|list1 = <source lang="latex" enclose="none">=, \ne, \neq, \equiv, \not\equiv </source>
 
|group2 = <source lang="latex" enclose="none">\doteq, \doteqdot,</source> <source lang="text" enclose="none">\overset{\underset{\mathrm{def}}{}}{=},</source> <source lang="latex" enclose="none">:=</source>
 
|list2 = <source lang="latex" enclose="none">\doteq, \doteqdot,</source> <source lang="text" enclose="none">\overset{\underset{\mathrm{def}}{}}{=},</source> <source lang="latex" enclose="none">:=</source>
 
|group3 = <source lang="latex" enclose="none">\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong </source>
 
|list3 = <source lang="latex" enclose="none">\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong </source>
 
|group4 = <source lang="latex" enclose="none">\approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto </source>
 
|list4 = <source lang="latex" enclose="none">\approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto </source>
 
|group5 = <source lang="latex" enclose="none"><, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot </source>
 
|list5 = <source lang="latex" enclose="none"><, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot </source>
 
|group6 = <source lang="latex" enclose="none">>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot </source>
 
|list6 = <source lang="latex" enclose="none">>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot </source>
 
|group7 = <source lang="latex" enclose="none">\le, \leq, \lneq, \leqq, \nleq, \nleqq, \lneqq, \lvertneqq </source>
 
|list7 = <source lang="latex" enclose="none">\le, \leq, \lneq, \leqq, \nleq, \nleqq, \lneqq, \lvertneqq </source>
 
|group8 = <source lang="latex" enclose="none">\ge, \geq, \gneq, \geqq, \ngeq, \ngeqq, \gneqq, \gvertneqq </source>
 
|list8 = <source lang="latex" enclose="none">\ge, \geq, \gneq, \geqq, \ngeq, \ngeqq, \gneqq, \gvertneqq </source>
 
|group9 = <source lang="latex" enclose="none">\lessgtr, \lesseqgtr, \lesseqqgtr, \gtrless, \gtreqless, \gtreqqless </source>
 
|list9 = <source lang="latex" enclose="none">\lessgtr, \lesseqgtr, \lesseqqgtr, \gtrless, \gtreqless, \gtreqqless </source>
 
|group10 = <source lang="latex" enclose="none">\leqslant, \nleqslant, \eqslantless </source>
 
|list10 = <source lang="latex" enclose="none">\leqslant, \nleqslant, \eqslantless </source>
 
|group11 = <source lang="latex" enclose="none">\geqslant, \ngeqslant, \eqslantgtr </source>
 
|list11 = <source lang="latex" enclose="none">\geqslant, \ngeqslant, \eqslantgtr </source>
 
|group12 = <source lang="latex" enclose="none">\lesssim, \lnsim, \lessapprox, \lnapprox </source>
 
|list12 = <source lang="latex" enclose="none">\lesssim, \lnsim, \lessapprox, \lnapprox </source>
 
|group13 = <source lang="latex" enclose="none">\gtrsim, \gnsim, \gtrapprox, \gnapprox </source>
 
|list13 = <source lang="latex" enclose="none">\gtrsim, \gnsim, \gtrapprox, \gnapprox </source>
 
|group14 = <source lang="latex" enclose="none">\prec, \nprec, \preceq, \npreceq, \precneqq </source>
 
|list14 = <source lang="latex" enclose="none">\prec, \nprec, \preceq, \npreceq, \precneqq </source>
 
|group15 = <source lang="latex" enclose="none">\succ, \nsucc, \succeq, \nsucceq, \succneqq </source>
 
|list15 = <source lang="latex" enclose="none">\succ, \nsucc, \succeq, \nsucceq, \succneqq </source>
 
|group16 = <source lang="latex" enclose="none">\preccurlyeq, \curlyeqprec </source>
 
|list16 = <source lang="latex" enclose="none">\preccurlyeq, \curlyeqprec </source>
 
|group17 = <source lang="latex" enclose="none">\succcurlyeq, \curlyeqsucc </source>
 
|list17 = <source lang="latex" enclose="none">\succcurlyeq, \curlyeqsucc </source>
 
|group18 = <source lang="latex" enclose="none">\precsim, \precnsim, \precapprox, \precnapprox </source>
 
|list18 = <source lang="latex" enclose="none">\precsim, \precnsim, \precapprox, \precnapprox </source>
 
|group19 = <source lang="latex" enclose="none">\succsim, \succnsim, \succapprox, \succnapprox </source>
 
|list19 = <source lang="latex" enclose="none">\succsim, \succnsim, \succapprox, \succnapprox </source>
 
}}
 
 
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Geometric
 
|group1 = <source lang="latex" enclose="none">\parallel, \nparallel, \shortparallel, \nshortparallel </source>
 
|list1 = <source lang="latex" enclose="none">\parallel, \nparallel, \shortparallel, \nshortparallel </source>
 
|group2 = <source lang="latex" enclose="none">\perp, \angle, \sphericalangle, \measuredangle, 45^\circ </source>
 
|list2 = <source lang="latex" enclose="none">\perp, \angle, \sphericalangle, \measuredangle, 45^\circ </source>
 
|group3 = <source lang="latex" enclose="none">\Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar </source>
 
|list3 = <source lang="latex" enclose="none">\Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar </source>
 
|group4 = <source lang="latex" enclose="none">\bigcirc, \triangle \bigtriangleup, \bigtriangledown </source>
 
|list4 = <source lang="latex" enclose="none">\bigcirc, \triangle \bigtriangleup, \bigtriangledown </source>
 
|group5 = <source lang="latex" enclose="none">\vartriangle, \triangledown </source>
 
|list5 = <source lang="latex" enclose="none">\vartriangle, \triangledown </source>
 
|group6 = <source lang="latex" enclose="none">\blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright </source>
 
|list6 = <source lang="latex" enclose="none">\blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright </source>
 
}}
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Logic
 
|group1 = <source lang="latex" enclose="none">\forall, \exists, \nexists </source>
 
|list1 = <source lang="latex" enclose="none">\forall, \exists, \nexists </source>
 
|group2 = <source lang="latex" enclose="none">\therefore, \because, \And </source>
 
|list2 = <source lang="latex" enclose="none">\therefore, \because, \And </source>
 
|group3 = <source lang="latex" enclose="none">\or \lor \vee, \curlyvee, \bigvee </source>
 
|list3 = <source lang="latex" enclose="none">\or \lor \vee, \curlyvee, \bigvee </source>
 
|group4 = <source lang="latex" enclose="none">\and \land \wedge, \curlywedge, \bigwedge </source>
 
|list4 = <source lang="latex" enclose="none">\and \land \wedge, \curlywedge, \bigwedge </source>
 
|group5 = <source lang="text" enclose="none">\bar{q}, \bar{abc}, \overline{q}, \overline{abc}, </source><br />
 
<source lang="latex" enclose="none">\lnot \neg, \not\operatorname{R}, \bot, \top</source>
 
list5 = <source lang="text" enclose="none">\bar{q}, \bar{abc}, \overline{q}, \overline{abc}, </source><br />
 
<math>\lnot \neg, \not\operatorname{R}, \bot, \top \!</math>
 
|group6 = <source lang="latex" enclose="none">\vdash \dashv, \vDash, \Vdash, \models </source>
 
|list6 = <source lang="latex" enclose="none">\vdash \dashv, \vDash, \Vdash, \models </source>
 
|group7 = <source lang="latex" enclose="none">\Vvdash \nvdash \nVdash \nvDash \nVDash </source>
 
|list7 = <source lang="latex" enclose="none">\Vvdash \nvdash \nVdash \nvDash \nVDash </source>
 
|group8 = <source lang="latex" enclose="none">\ulcorner \urcorner \llcorner \lrcorner </source>
 
|list8 = <source lang="latex" enclose="none">\ulcorner \urcorner \llcorner \lrcorner </source>
 
}}
 
 
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Arrows
 
|group1 = <source lang="latex" enclose="none">\Rrightarrow, \Lleftarrow </source>
 
|list1 = <source lang="latex" enclose="none">\Rrightarrow, \Lleftarrow </source>
 
|group2 = <source lang="latex" enclose="none">\Rightarrow, \nRightarrow, \Longrightarrow \implies </source>
 
|list2 = <source lang="latex" enclose="none">\Rightarrow, \nRightarrow, \Longrightarrow \implies </source>
 
|group3 = <source lang="latex" enclose="none">\Leftarrow, \nLeftarrow, \Longleftarrow </source>
 
|list3 = <source lang="latex" enclose="none">\Leftarrow, \nLeftarrow, \Longleftarrow </source>
 
|group4 = <source lang="latex" enclose="none">\Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff </source>
 
|list4 = <source lang="latex" enclose="none">\Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff </source>
 
|group5 = <source lang="latex" enclose="none">\Uparrow, \Downarrow, \Updownarrow </source>
 
|list5 = <source lang="latex" enclose="none">\Uparrow, \Downarrow, \Updownarrow </source>
 
|group6 = <source lang="latex" enclose="none">\rightarrow \to, \nrightarrow, \longrightarrow </source>
 
|list6 = <source lang="latex" enclose="none">\rightarrow \to, \nrightarrow, \longrightarrow </source>
 
|group7 = <source lang="latex" enclose="none">\leftarrow \gets, \nleftarrow, \longleftarrow </source>
 
|list7 = <source lang="latex" enclose="none">\leftarrow \gets, \nleftarrow, \longleftarrow </source>
 
|group8 = <source lang="latex" enclose="none">\leftrightarrow, \nleftrightarrow, \longleftrightarrow </source>
 
|list8 = <source lang="latex" enclose="none">\leftrightarrow, \nleftrightarrow, \longleftrightarrow </source>
 
|group9 = <source lang="latex" enclose="none">\uparrow, \downarrow, \updownarrow </source>
 
|list9 = <source lang="latex" enclose="none">\uparrow, \downarrow, \updownarrow </source>
 
|group10 = <source lang="latex" enclose="none">\nearrow, \swarrow, \nwarrow, \searrow </source>
 
|list10 = <source lang="latex" enclose="none">\nearrow, \swarrow, \nwarrow, \searrow </source>
 
|group11 = <source lang="latex" enclose="none">\mapsto, \longmapsto </source>
 
|list11 = <source lang="latex" enclose="none">\mapsto, \longmapsto </source>
 
|group12 = <source lang="latex" enclose="none">\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons</source>
 
|list12 = <source lang="latex" enclose="none">\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons</source>
 
|group13 = <source lang="latex" enclose="none">\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright</source>
 
|list13 = <source lang="latex" enclose="none">\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright</source>
 
|group14 = <source lang="latex" enclose="none">\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft</source>
 
|list14 = <source lang="latex" enclose="none">\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft</source>
 
|group15 = <source lang="latex" enclose="none">\hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow </source>
 
|list15 = <source lang="latex" enclose="none">\hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow </source>
 
}}
 
 
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Special
 
|group1 = <source lang="latex" enclose="none">\amalg \P \S \% \dagger \ddagger \ldots \cdots </source>
 
|list1 = <source lang="latex" enclose="none">\amalg \P \S \% \dagger \ddagger \ldots \cdots </source>
 
|group2 = <source lang="latex" enclose="none">\smile \frown \wr \triangleleft \triangleright</source>
 
|list2 = <source lang="latex" enclose="none">\smile \frown \wr \triangleleft \triangleright</source>
 
|group3 = <source lang="latex" enclose="none">\diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp </source>
 
|list3 = <source lang="latex" enclose="none">\diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp </source>
 
}}
 
{{Navbox
 
|name = Navbox/doc
 
|state = uncollapsed
 
|title =  Unsorted (new stuff)
 
|group1 = <source lang="latex" enclose="none">\diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes </source>
 
|list1 = <source lang="latex" enclose="none">\diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes </source>
 
|group2 = <source lang="latex" enclose="none">\eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq </source>
 
|list2 = <source lang="latex" enclose="none">\eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq </source>
 
|group3 = <source lang="latex" enclose="none">\intercal \barwedge \veebar \doublebarwedge \between \pitchfork </source>
 
|list3 = <source lang="latex" enclose="none">\intercal \barwedge \veebar \doublebarwedge \between \pitchfork </source>
 
|group4 = <source lang="latex" enclose="none">\vartriangleleft \ntriangleleft \vartriangleright \ntriangleright </source>
 
|list4 = <source lang="latex" enclose="none">\vartriangleleft \ntriangleleft \vartriangleright \ntriangleright </source>
 
|group5 = <source lang="latex" enclose="none">\trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq </source>
 
list5 = <source lang="latex" enclose="none">\trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq </source>
 
}}
 
 
 
== Larger expressions ==
 
 
 
=== Subscripts, superscripts, integrals ===
 
 
 
{| class="wikitable" border="1" cellspacing="0" cellpadding="4" style="border-collapse:collapse"
 
|-
 
! Feature !! Syntax !! How it looks rendered
 
|-
 
| Superscript
 
| <source lang="text" enclose="none">a^2</source> || <math>a^2</math>
 
|-
 
| Subscript
 
| <source lang="text" enclose="none">a_2</source> || <math>a_2</math>
 
|-
 
| rowspan="2"| Grouping
 
| <source lang="text" enclose="none">10^{30} a^{2+2}</source> || <math>10^{30} a^{2+2}</math>
 
|-
 
| <source lang="text" enclose="none">a_{i,j} b_{f'}</source> || <math>a_{i,j} b_{f'}</math>
 
|-
 
| rowspan="2"| Combining sub & super without and with horizontal separation
 
| <source lang="text" enclose="none">x_2^3</source> || <math>x_2^3</math>
 
|-
 
| <source lang="text" enclose="none">{x_2}^3</source> || <math>{x_2}^3 \,\!</math>
 
|-
 
| Super super
 
| <source lang="text" enclose="none">10^{10^{8}}</source> || <math>10^{10^{8}}</math>
 
|-
 
| rowspan="2"| Preceding and/or additional sub & super
 
| <source lang="text" enclose="none">\sideset{_1^2}{_3^4}\prod_a^b</source> || <math>\sideset{_1^2}{_3^4}\prod_a^b</math>
 
|-
 
| <source lang="text" enclose="none">{}_1^2\!\Omega_3^4</source> || <math>{}_1^2\!\Omega_3^4</math>
 
|-
 
| rowspan="4"| Stacking
 
| <source lang="text" enclose="none">\overset{\alpha}{\omega}</source> || <math>\overset{\alpha}{\omega}</math>
 
|-
 
| <source lang="text" enclose="none">\underset{\alpha}{\omega}</source> || <math>\underset{\alpha}{\omega}</math>
 
|-
 
| <source lang="text" enclose="none">\overset{\alpha}{\underset{\gamma}{\omega}}</source> || <math>\overset{\alpha}{\underset{\gamma}{\omega}}</math>
 
|-
 
| <source lang="text" enclose="none">\stackrel{\alpha}{\omega}</source> || <math>\stackrel{\alpha}{\omega}</math>
 
|-
 
| rowspan="2"| Derivatives
 
| <source lang="text" enclose="none">x', y'', f', f''</source> || <math>x', y'', f', f''</math>
 
|-
 
| <source lang="text" enclose="none">x^\prime, y^{\prime\prime}</source> || <math>x^\prime, y^{\prime\prime}</math>
 
|-
 
| Derivative dots
 
| <source lang="text" enclose="none">\dot{x}, \ddot{x}</source> || <math>\dot{x}, \ddot{x}</math>
 
|-
 
| rowspan="3"| Underlines, overlines, vectors
 
| <source lang="text" enclose="none">\hat a \ \bar b \ \vec c</source> || <math> \hat a \ \bar b \ \vec c</math>
 
|-
 
| <source lang="text" enclose="none">\overrightarrow{a b} \ \overleftarrow{c d} \ \widehat{d e f}</source> || <math> \overrightarrow{a b} \ \overleftarrow{c d} \ \widehat{d e f}</math>
 
|-
 
| <source lang="text" enclose="none">\overline{g h i} \ \underline{j k l}</source> || <math> \overline{g h i} \ \underline{j k l}</math>
 
|-
 
| Arc (workaround)
 
| <source lang="text" enclose="none">\overset{\frown} {AB}</source> || <math>\overset{\frown} {AB}</math>
 
|-
 
| Arrows
 
| <source lang="text" enclose="none"> A \xleftarrow{n+\mu-1} B \xrightarrow[T]{n\pm i-1} C</source> || <math> A \xleftarrow{n+\mu-1} B \xrightarrow[T]{n\pm i-1} C</math>
 
|-
 
| Overbraces
 
| <source lang="text" enclose="none">\overbrace{ 1+2+\cdots+100 }^{5050}</source> || <math>\overbrace{ 1+2+\cdots+100 }^{5050}</math>
 
|-
 
| Underbraces
 
| <source lang="text" enclose="none">\underbrace{ a+b+\cdots+z }_{26}</source> || <math>\underbrace{ a+b+\cdots+z }_{26}</math>
 
|-
 
| Sum
 
| <source lang="text" enclose="none">\sum_{k=1}^N k^2</source> || <math>\sum_{k=1}^N k^2</math>
 
|-
 
| Sum (force&nbsp;<source lang="text" enclose="none">\textstyle</source>)
 
| <source lang="text" enclose="none">\textstyle \sum_{k=1}^N k^2 </source> || <math>\textstyle \sum_{k=1}^N k^2</math>
 
|-
 
| Sum in a fraction (default <source lang="text" enclose="none">\textstyle</source>)
 
| <source lang="text" enclose="none">\frac{\sum_{k=1}^N k^2}{a}</source> || <math>\frac{\sum_{k=1}^N k^2}{a}</math>
 
|-
 
| Sum in a fraction (force <source lang="text" enclose="none">\displaystyle</source>)
 
| <source lang="text" enclose="none">\frac{\displaystyle \sum_{k=1}^N k^2}{a}</source> || <math>\frac{\displaystyle \sum_{k=1}^N k^2}{a}</math>
 
|-
 
| Sum in a fraction (alternative limits style)
 
| <source lang="text" enclose="none">\frac{\sum\limits^{^N}_{k=1} k^2}{a}</source> || <math>\frac{\sum\limits^{^N}_{k=1} k^2}{a}</math>
 
|-
 
| Product
 
| <source lang="text" enclose="none">\prod_{i=1}^N x_i</source> || <math>\prod_{i=1}^N x_i</math>
 
|-
 
| Product (force&nbsp;<source lang="text" enclose="none">\textstyle</source>)
 
| <source lang="text" enclose="none">\textstyle \prod_{i=1}^N x_i</source> || <math>\textstyle \prod_{i=1}^N x_i</math>
 
|-
 
| Coproduct
 
| <source lang="text" enclose="none">\coprod_{i=1}^N x_i</source> || <math>\coprod_{i=1}^N x_i</math>
 
|-
 
| Coproduct (force&nbsp;<source lang="text" enclose="none">\textstyle</source>)
 
| <source lang="text" enclose="none">\textstyle \coprod_{i=1}^N x_i</source> || <math>\textstyle \coprod_{i=1}^N x_i</math>
 
|-
 
| Limit
 
| <source lang="text" enclose="none">\lim_{n \to \infty}x_n</source> || <math>\lim_{n \to \infty}x_n</math>
 
|-
 
| Limit (force&nbsp;<source lang="text" enclose="none">\textstyle</source>)
 
| <source lang="text" enclose="none">\textstyle \lim_{n \to \infty}x_n</source> || <math>\textstyle \lim_{n \to \infty}x_n</math>
 
|-
 
| Integral
 
| <source lang="text" enclose="none">\int\limits_{1}^{3}\frac{e^3/x}{x^2}\, dx</source> || <math>\int\limits_{1}^{3}\frac{e^3/x}{x^2}\, dx</math>
 
|-
 
| Integral (alternative limits style)
 
| <source lang="text" enclose="none">\int_{1}^{3}\frac{e^3/x}{x^2}\, dx</source> || <math>\int_{1}^{3}\frac{e^3/x}{x^2}\, dx</math>
 
|-
 
| Integral (force&nbsp;<source lang="text" enclose="none">\textstyle</source>)
 
| <source lang="text" enclose="none">\textstyle \int\limits_{-N}^{N} e^x\, dx</source> || <math>\textstyle \int\limits_{-N}^{N} e^x\, dx</math>
 
|-
 
| Integral (force&nbsp;<source lang="text" enclose="none">\textstyle</source>, alternative limits style)
 
| <source lang="text" enclose="none">\textstyle \int_{-N}^{N} e^x\, dx</source> || <math>\textstyle \int_{-N}^{N} e^x\, dx</math>
 
|-
 
| Double integral
 
| <source lang="text" enclose="none">\iint\limits_D \, dx\,dy</source> || <math>\iint\limits_D \, dx\,dy</math>
 
|-
 
| Triple integral
 
| <source lang="text" enclose="none">\iiint\limits_E \, dx\,dy\,dz</source> || <math>\iiint\limits_E \, dx\,dy\,dz</math>
 
|-
 
| Quadruple integral
 
| <source lang="text" enclose="none">\iiiint\limits_F \, dx\,dy\,dz\,dt</source> || <math>\iiiint\limits_F \, dx\,dy\,dz\,dt</math>
 
|-
 
| Line or path integral
 
| <source lang="text" enclose="none">\int_{(x,y)\in C} x^3\, dx + 4y^2\, dy</source> || <math>\int_{(x,y)\in C} x^3\, dx + 4y^2\, dy</math>
 
|-
 
| Closed line or path integral
 
| <source lang="text" enclose="none">\oint_{(x,y)\in C} x^3\, dx + 4y^2\, dy</source> || <math>\oint_{(x,y)\in C} x^3\, dx + 4y^2\, dy</math>
 
|-
 
| Intersections
 
| <source lang="text" enclose="none">\bigcap_{i=_1}^n E_i</source> || <math>\bigcap_{i=_1}^n E_i</math>
 
|-
 
| Unions
 
| <source lang="text" enclose="none">\bigcup_{i=_1}^n E_i</source> || <math>\bigcup_{i=_1}^n E_i</math>
 
|}
 
 
 
=== Fractions, matrices, multilines ===
 
 
 
{| class="wikitable"
 
! Feature
 
! Syntax
 
! How it looks rendered
 
|-
 
| Fractions
 
| <source lang="text" enclose="none">\frac{2}{4}=0.5</source> or <source lang="text" enclose="none">{2 \over 4}=0.5</source>
 
| <math>\frac{2}{4}=0.5</math>
 
|-
 
| Small fractions
 
| <source lang="text" enclose="none">\tfrac{2}{4} = 0.5</source>
 
| <math>\tfrac{2}{4} = 0.5</math>
 
|-
 
| Large (normal) fractions
 
| <source lang="text" enclose="none">\dfrac{2}{4} = 0.5 \qquad \dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a </source>
 
| <math>\dfrac{2}{4} = 0.5 \qquad \dfrac{2}{c + \dfrac{2}{d + \dfrac{2}{4}}} = a</math>
 
|-
 
| Large (nested) fractions
 
| <source lang="text" enclose="none">\cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a</source>
 
| <math>\cfrac{2}{c + \cfrac{2}{d + \cfrac{2}{4}}} = a</math>
 
|-
 
| Cancellations in fractions<br>Note does not work with MathJax
 
| <source lang="text" enclose="none">\cfrac{x}{1 + \cfrac{\cancel{y}}{\cancel{y}}} = \cfrac{x}{2}</source>
 
| <math>\cfrac{x}{1 + \cfrac{\cancel{y}}{\cancel{y}}} = \cfrac{x}{2}</math>
 
|-
 
| Binomial coefficients
 
| <source lang="text" enclose="none">\binom{n}{k}</source>
 
| <math>\binom{n}{k}</math>
 
|-
 
| Small binomial coefficients
 
| <source lang="text" enclose="none">\tbinom{n}{k}</source>
 
| <math>\tbinom{n}{k}</math>
 
|-
 
| Large (normal) binomial coefficients
 
| <source lang="text" enclose="none">\dbinom{n}{k}</source>
 
| <math>\dbinom{n}{k}</math>
 
|-
 
| rowspan="7" | Matrices
 
| <source lang="latex">\begin{matrix}
 
x & y \\
 
z & v
 
\end{matrix}</source>
 
| <math>\begin{matrix}
 
x & y \\
 
z & v
 
\end{matrix}</math>
 
|-
 
| <source lang="latex">\begin{vmatrix}
 
x & y \\
 
z & v
 
\end{vmatrix}</source>
 
| <math>\begin{vmatrix}
 
x & y \\
 
z & v
 
\end{vmatrix}</math>
 
|-
 
| <source lang="latex">\begin{Vmatrix}
 
x & y \\
 
z & v
 
\end{Vmatrix}</source>
 
| <math>\begin{Vmatrix}
 
x & y \\
 
z & v
 
\end{Vmatrix}</math>
 
|-
 
| <source lang="latex">\begin{bmatrix}
 
0 & \cdots & 0 \\
 
\vdots & \ddots & \vdots \\
 
0 & \cdots & 0
 
\end{bmatrix}</source>
 
| <math>\begin{bmatrix}
 
0 & \cdots & 0 \\
 
\vdots & \ddots & \vdots \\
 
0 & \cdots & 0
 
\end{bmatrix} </math>
 
|-
 
| <source lang="latex">\begin{Bmatrix}
 
x & y \\
 
z & v
 
\end{Bmatrix}</source>
 
| <math>\begin{Bmatrix}
 
x & y \\
 
z & v
 
\end{Bmatrix}</math>
 
|-
 
| <source lang="latex">\begin{pmatrix}
 
x & y \\
 
z & v
 
\end{pmatrix}</source>
 
| <math>\begin{pmatrix}
 
x & y \\
 
z & v
 
\end{pmatrix}</math>
 
|-
 
| <source lang="latex">
 
\bigl( \begin{smallmatrix}
 
a&b\\ c&d
 
\end{smallmatrix} \bigr)
 
</source>
 
| <math>
 
\bigl( \begin{smallmatrix}
 
a&b\\ c&d
 
\end{smallmatrix} \bigr)
 
</math>
 
|-
 
| Case distinctions
 
| <source lang="latex">
 
f(n) =
 
\begin{cases}
 
n/2, & \text{if }n\text{ is even} \\
 
3n+1, & \text{if }n\text{ is odd}
 
\end{cases}</source>
 
| <math>f(n) =
 
\begin{cases}
 
n/2, & \text{if }n\text{ is even} \\
 
3n+1, & \text{if }n\text{ is odd}
 
\end{cases}</math>
 
|-
 
| rowspan="2" | Multiline equations
 
| <source lang="latex">
 
\begin{align}
 
f(x) & = (a+b)^2 \\
 
& = a^2+2ab+b^2 \\
 
\end{align}
 
</source>
 
| <math>
 
\begin{align}
 
f(x) & = (a+b)^2 \\
 
& = a^2+2ab+b^2 \\
 
\end{align}
 
</math>
 
|-
 
| <source lang="latex">
 
\begin{alignat}{2}
 
f(x) & = (a-b)^2 \\
 
& = a^2-2ab+b^2 \\
 
\end{alignat}
 
</source>
 
| <math>
 
\begin{alignat}{2}
 
f(x) & = (a-b)^2 \\
 
& = a^2-2ab+b^2 \\
 
\end{alignat}
 
</math>
 
|-
 
| Multiline equations <small>(must define number of columns used ({lcr}) (should not be used unless needed)</small>
 
| <source lang="latex">
 
\begin{array}{lcl}
 
z & = & a \\
 
f(x,y,z) & = & x + y + z
 
\end{array}</source>
 
| <math>\begin{array}{lcl}
 
z & = & a \\
 
f(x,y,z) & = & x + y + z
 
\end{array}</math>
 
|-
 
| Multiline equations (more)
 
| <source lang="latex">
 
\begin{array}{lcr}
 
z & = & a \\
 
f(x,y,z) & = & x + y + z
 
\end{array}</source>
 
| <math>\begin{array}{lcr}
 
z & = & a \\
 
f(x,y,z) & = & x + y + z
 
\end{array}</math>
 
|-
 
| Breaking up a long expression so that it wraps when necessary, at the expense of destroying correct spacing
 
| <source lang="latex">
 
f(x) =
 
\sum_{n=0}^\infty a_n x^n =
 
a_0+a_1x+a_2x^2+\cdots
 
</source>
 
| <math>f(x) =
 
\sum_{n=0}^\infty a_n x^n =
 
a_0 +a_1x+a_2x^2+\cdots</math>
 
|-
 
| Simultaneous equations
 
| <source lang="latex">\begin{cases}
 
3x + 5y + z \\
 
7x - 2y + 4z \\
 
-6x + 3y + 2z
 
\end{cases}</source>
 
| <math>\begin{cases}
 
3x + 5y + z \\
 
7x - 2y + 4z \\
 
-6x + 3y + 2z
 
\end{cases}</math>
 
|-
 
| Arrays
 
| <source lang="latex">
 
\begin{array}{|c|c||c|} a & b & S \\
 
\hline
 
0&0&1\\
 
0&1&1\\
 
1&0&1\\
 
1&1&0\\
 
\end{array}
 
</source>
 
| <math>
 
\begin{array}{|c|c||c|} a & b & S \\
 
\hline
 
0&0&1\\
 
0&1&1\\
 
1&0&1\\
 
1&1&0\\
 
\end{array}
 
</math>
 
|}
 
 
 
=== Parenthesizing big expressions, brackets, bars ===
 
 
 
{| class="wikitable"
 
! Feature !! Syntax !! How it looks rendered
 
|-
 
| Bad
 
| <source lang="text" enclose="none">( \frac{1}{2} )</source>
 
| <math>( \frac{1}{2} )</math>
 
|-
 
| Good
 
| <source lang="text" enclose="none">\left ( \frac{1}{2} \right )</source>
 
| <math>\left ( \frac{1}{2} \right )</math>
 
|}
 
 
 
You can use various delimiters with \left and \right:
 
 
 
{| class="wikitable"
 
! Feature
 
! Syntax
 
! How it looks rendered
 
|-
 
| Parentheses
 
| <source lang="text" enclose="none">\left ( \frac{a}{b} \right )</source>
 
| <math>\left ( \frac{a}{b} \right )</math>
 
|-
 
| Brackets
 
| <source lang="text" enclose="none">\left [ \frac{a}{b} \right ] \quad</source><br/> <source lang="text" enclose="none">\left \lbrack \frac{a}{b} \right \rbrack</source>
 
| <math>\left [ \frac{a}{b} \right ] \quad \left \lbrack \frac{a}{b} \right \rbrack</math>
 
|-
 
| Braces
 
| <source lang="text" enclose="none">\left \{ \frac{a}{b} \right \} \quad</source><br/> <source lang="text" enclose="none">\left \lbrace \frac{a}{b} \right \rbrace</source>
 
| <math>\left \{ \frac{a}{b} \right \} \quad \left \lbrace \frac{a}{b} \right \rbrace</math>
 
|-
 
| Angle brackets
 
| <source lang="text" enclose="none">\left \langle \frac{a}{b} \right \rangle</source>
 
| <math>\left \langle \frac{a}{b} \right \rangle</math>
 
|-
 
| Bars and double bars
 
| <source lang="text" enclose="none">\left | \frac{a}{b} \right \vert \quad</source><br/> <source lang="text" enclose="none">\left \Vert \frac{c}{d} \right \|</source>
 
| <math>\left | \frac{a}{b} \right \vert \quad \left \Vert \frac{c}{d} \right \|</math>
 
|-
 
| Floor and ceiling functions:
 
| <source lang="text" enclose="none">\left \lfloor \frac{a}{b} \right \rfloor \quad</source><br/> <source lang="text" enclose="none">\left \lceil \frac{c}{d} \right \rceil</source>
 
| <math>\left \lfloor \frac{a}{b} \right \rfloor \quad \left \lceil \frac{c}{d} \right \rceil</math>
 
|-
 
| Slashes and backslashes
 
| <source lang="text" enclose="none">\left / \frac{a}{b} \right \backslash</source>
 
| <math>\left / \frac{a}{b} \right \backslash</math>
 
|-
 
| Up, down, and up-down arrows
 
| <source lang="text" enclose="none">\left \uparrow \frac{a}{b} \right \downarrow \quad</source><br/> <source lang="text" enclose="none">\left \Uparrow \frac{a}{b} \right \Downarrow \quad</source><br/> <source lang="text" enclose="none">\left \updownarrow \frac{a}{b} \right \Updownarrow</source>
 
| <math>\left \uparrow \frac{a}{b} \right \downarrow \quad \left \Uparrow \frac{a}{b} \right \Downarrow \quad \left \updownarrow \frac{a}{b} \right \Updownarrow</math>
 
|-
 
| Delimiters can be mixed,<br>as long as \left and \right match
 
| <source lang="latex" enclose="none">\left [ 0,1 \right )</source><br/> <source lang="latex" enclose="none">\left \langle \psi \right |</source>
 
| <math>\left [ 0,1 \right )</math><br/> <math>\left \langle \psi \right |</math>
 
|-
 
| Use \left. and \right. if you<br/> do not want a delimiter to appear
 
| <source lang="text" enclose="none">\left . \frac{A}{B} \right \} \to X</source>
 
| <math>\left . \frac{A}{B} \right \} \to X</math>
 
|-
 
| rowspan="7" | Size of the delimiters (add "l" or "r" to indicate the side for proper spacing)
 
| <source lang="latex" enclose="none">( \bigl( \Bigl( \biggl( \Biggl( \dots \Biggr] \biggr] \Bigr] \bigr] ]</source>
 
| <math>( \bigl( \Bigl( \biggl( \Biggl( \dots \Biggr] \biggr] \Bigr] \bigr] ]</math>
 
|-
 
| <source lang="latex" enclose="none">\{ \bigl\{ \Bigl\{ \biggl\{ \Biggl\{ \dots</source><br/> <source lang="latex" enclose="none">\Biggr\rangle \biggr\rangle \Bigr\rangle \bigr\rangle \rangle</source>
 
| <math>\{ \bigl\{ \Bigl\{ \biggl\{ \Biggl\{ \dots \Biggr\rangle \biggr\rangle \Bigr\rangle \bigr\rangle \rangle</math>
 
|-
 
| <source lang="latex" enclose="none">\| \big\| \Big\| \bigg\| \Bigg\| \dots \Bigg| \bigg| \Big| \big| |</source>
 
| <math>\| \big\| \Big\| \bigg\| \Bigg\| \dots \Bigg| \bigg| \Big| \big| |</math>
 
|-
 
| <source lang="latex" enclose="none">\lfloor \bigl\lfloor \Bigl\lfloor \biggl\lfloor \Biggl\lfloor \dots</source><br/> <source lang="latex" enclose="none">\Biggr\rceil \biggr\rceil \Bigr\rceil \bigr\rceil \ceil</source>
 
| <math>\lfloor \bigl\lfloor \Bigl\lfloor \biggl\lfloor \Biggl\lfloor \dots \Biggr\rceil \biggr\rceil \Bigr\rceil \bigr\rceil \rceil</math>
 
|-
 
| <source lang="latex" enclose="none">\uparrow \big\uparrow \Big\uparrow \bigg\uparrow \Bigg\uparrow \dots</source><br/> <source lang="latex" enclose="none">\Bigg\Downarrow \bigg\Downarrow \Big\Downarrow \big\Downarrow \Downarrow</source>
 
| <math>\uparrow \big\uparrow \Big\uparrow \bigg\uparrow \Bigg\uparrow \dots \Bigg\Downarrow \bigg\Downarrow \Big\Downarrow \big\Downarrow \Downarrow</math>
 
|-
 
| <source lang="latex" enclose="none">\updownarrow \big\updownarrow \Big\updownarrow \bigg\updownarrow \Bigg\updownarrow \dots</source><br/> <source lang="latex" enclose="none">\Bigg\Updownarrow \bigg\Updownarrow \Big\Updownarrow \big\Updownarrow \Updownarrow</source>
 
| <math>\updownarrow \big\updownarrow \Big\updownarrow \bigg\updownarrow \Bigg\updownarrow \dots \Bigg\Updownarrow \bigg\Updownarrow \Big\Updownarrow \big\Updownarrow \Updownarrow</math>
 
|-
 
| <source lang="latex" enclose="none">/ \big/ \Big/ \bigg/ \Bigg/ \dots</source><br/> <source lang="latex" enclose="none">\Bigg\backslash \bigg\backslash \Big\backslash \big\backslash \backslash</source>
 
| <math>/ \big/ \Big/ \bigg/ \Bigg/ \dots \Bigg\backslash \bigg\backslash \Big\backslash \big\backslash \backslash</math>
 
|}
 
 
 
=== Equation numbering ===
 
 
 
The templates {{tl|NumBlk}} and {{tl|EquationRef}} can be used to number equations. The template {{tl|EquationNote}} can be used to refer to a numbered equation from surrounding text. For example, the following syntax:
 
 
 
: <code><nowiki>{{NumBlk|:|<math>x^2 + y^2 + z^2 = 1 \,</math>|{{EquationRef|1}}}}</nowiki></code>
 
 
 
produces the following result (note the equation number in the right margin):
 
 
 
{{NumBlk|:|<math>x^2 + y^2 + z^2 = 1 \,</math>|{{EquationRef|1}}}}
 
 
 
Later on, the text can refer to this equation by its number using syntax like this:
 
 
 
: <source lang="latex" enclose="none">As seen in equation ({{EquationNote|1}}), blah blah blah...</source>
 
 
 
The result looks like this:
 
 
 
: As seen in equation ({{EquationNote|1}}), blah blah blah...
 
 
 
Note that the equation number produced by {{tl|EquationNote}} is a link that the user can click to go immediately to the cited equation.
 
 
 
== Alphabets and typefaces ==
 
{{See also|Wikipedia:LaTeX symbols#Fonts}}
 
[[Texvc]] cannot render arbitrary [[Unicode]] characters. Those it can handle can be entered by the expressions below. For others, such as [[Cyrillic]], they can be entered as Unicode or HTML entities in running text, but cannot be used in displayed formulas.
 
 
 
{| class="wikitable"
 
|-
 
!colspan="2"| Greek alphabet
 
|-
 
| <source lang="latex" enclose="none">\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta </source>
 
| <math>\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta \!</math>
 
|-
 
| <source lang="latex" enclose="none">\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho </source>
 
| <math>\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho \!</math>
 
|-
 
| <source lang="latex" enclose="none">\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega </source>
 
| <math>\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega \!</math>
 
|-
 
| <source lang="latex" enclose="none">\alpha \beta \gamma \delta \epsilon \zeta \eta \theta </source>
 
| <math>\alpha \beta \gamma \delta \epsilon \zeta \eta \theta \!</math>
 
|-
 
| <source lang="latex" enclose="none">\iota \kappa \lambda \mu \nu \xi \pi \rho </source>
 
| <math>\iota \kappa \lambda \mu \nu \xi \pi \rho \!</math>
 
|-
 
| <source lang="latex" enclose="none">\sigma \tau \upsilon \phi \chi \psi \omega </source>
 
| <math>\sigma \tau \upsilon \phi \chi \psi \omega \!</math>
 
|-
 
| <source lang="latex" enclose="none">\varepsilon \digamma \varkappa \varpi </source>
 
| <math>\varepsilon \digamma \varkappa \varpi \!</math>
 
|-
 
| <source lang="latex" enclose="none">\varrho \varsigma \vartheta \varphi </source>
 
| <math>\varrho \varsigma \vartheta \varphi \!</math>
 
|-
 
!colspan="2"| Hebrew symbols
 
|-
 
| <source lang="latex" enclose="none">\aleph \beth \gimel \daleth </source>
 
| <math>\aleph \beth \gimel \daleth \!</math>
 
|-
 
!colspan="2"| Blackboard bold/scripts
 
|-
 
| <source lang="latex" enclose="none">\mathbb{ABCDEFGHI} </source>
 
| <math>\mathbb{ABCDEFGHI} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathbb{JKLMNOPQR} </source>
 
| <math>\mathbb{JKLMNOPQR} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathbb{STUVWXYZ} </source>
 
| <math>\mathbb{STUVWXYZ} \!</math>
 
|-
 
!colspan="2"| Boldface
 
|-
 
| <source lang="latex" enclose="none">\mathbf{ABCDEFGHI} </source>
 
| <math>\mathbf{ABCDEFGHI} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathbf{JKLMNOPQR} </source>
 
| <math>\mathbf{JKLMNOPQR} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathbf{STUVWXYZ} </source>
 
| <math>\mathbf{STUVWXYZ} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathbf{abcdefghijklm} </source>
 
| <math>\mathbf{abcdefghijklm} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathbf{nopqrstuvwxyz} </source>
 
| <math>\mathbf{nopqrstuvwxyz} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathbf{0123456789} </source>
 
| <math>\mathbf{0123456789} \!</math>
 
|-
 
!colspan="2"| Boldface (Greek)
 
|-
 
| <source lang="latex" enclose="none">\boldsymbol{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta} </source>
 
| <math>\boldsymbol{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\boldsymbol{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho} </source>
 
| <math>\boldsymbol{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\boldsymbol{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega} </source>
 
| <math>\boldsymbol{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\boldsymbol{\alpha\beta\gamma\delta\epsilon\zeta\eta\theta} </source>
 
| <math>\boldsymbol{\alpha\beta\gamma\delta\epsilon\zeta\eta\theta} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\boldsymbol{\iota\kappa\lambda\mu\nu\xi\pi\rho} </source>
 
| <math>\boldsymbol{\iota\kappa\lambda\mu\nu\xi\pi\rho} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\boldsymbol{\sigma\tau\upsilon\phi\chi\psi\omega} </source>
 
| <math>\boldsymbol{\sigma\tau\upsilon\phi\chi\psi\omega} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\boldsymbol{\varepsilon\digamma\varkappa\varpi} </source>
 
| <math>\boldsymbol{\varepsilon\digamma\varkappa\varpi} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\boldsymbol{\varrho\varsigma\vartheta\varphi} </source>
 
| <math>\boldsymbol{\varrho\varsigma\vartheta\varphi} \!</math>
 
|-
 
!colspan="2"| Italics (default for Latin alphabet)
 
|-
 
| <source lang="latex" enclose="none">\mathit{0123456789} </source>
 
| <math>\mathit{0123456789} \!</math>
 
|-
 
!colspan="2"| Greek italics (default for lowercase Greek)
 
|-
 
| <source lang="latex" enclose="none">\mathit{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta} </source>
 
| <math>\mathit{\Alpha\Beta\Gamma\Delta\Epsilon\Zeta\Eta\Theta} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathit{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho} </source>
 
| <math>\mathit{\Iota\Kappa\Lambda\Mu\Nu\Xi\Pi\Rho} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathit{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega} </source>
 
| <math>\mathit{\Sigma\Tau\Upsilon\Phi\Chi\Psi\Omega} \!</math>
 
|-
 
!colspan="2"| Roman typeface
 
|-
 
| <source lang="latex" enclose="none">\mathrm{ABCDEFGHI} </source>
 
| <math>\mathrm{ABCDEFGHI} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathrm{JKLMNOPQR} </source>
 
| <math>\mathrm{JKLMNOPQR} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathrm{STUVWXYZ} </source>
 
| <math>\mathrm{STUVWXYZ} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathrm{abcdefghijklm} </source>
 
| <math>\mathrm{abcdefghijklm} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathrm{nopqrstuvwxyz} </source>
 
| <math>\mathrm{nopqrstuvwxyz} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathrm{0123456789} </source>
 
| <math>\mathrm{0123456789} \!</math>
 
|-
 
!colspan="2"| Sans serif
 
|-
 
| <source lang="latex" enclose="none">\mathsf{ABCDEFGHI} </source>
 
| <math>\mathsf{ABCDEFGHI} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathsf{JKLMNOPQR} </source>
 
| <math>\mathsf{JKLMNOPQR} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathsf{STUVWXYZ} </source>
 
| <math>\mathsf{STUVWXYZ} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathsf{abcdefghijklm} </source>
 
| <math>\mathsf{abcdefghijklm} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathsf{nopqrstuvwxyz} </source>
 
| <math>\mathsf{nopqrstuvwxyz} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathsf{0123456789} </source>
 
| <math>\mathsf{0123456789} \!</math>
 
|-
 
!colspan="2"| Sans serif Greek (capital only)
 
|-
 
| <source lang="latex" enclose="none">\mathsf{\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta} </source>
 
| <math>\mathsf{\Alpha \Beta \Gamma \Delta \Epsilon \Zeta \Eta \Theta} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathsf{\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho} </source>
 
| <math>\mathsf{\Iota \Kappa \Lambda \Mu \Nu \Xi \Pi \Rho} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathsf{\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega}</source>
 
| <math>\mathsf{\Sigma \Tau \Upsilon \Phi \Chi \Psi \Omega}\!</math>
 
|-
 
!colspan="2"| Calligraphy/script
 
|-
 
| <source lang="latex" enclose="none">\mathcal{ABCDEFGHI} </source>
 
| <math>\mathcal{ABCDEFGHI} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathcal{JKLMNOPQR} </source>
 
| <math>\mathcal{JKLMNOPQR} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathcal{STUVWXYZ} </source>
 
| <math>\mathcal{STUVWXYZ} \!</math>
 
|-
 
!colspan="2"| Fraktur typeface
 
|-
 
| <source lang="latex" enclose="none">\mathfrak{ABCDEFGHI} </source>
 
| <math>\mathfrak{ABCDEFGHI} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathfrak{JKLMNOPQR} </source>
 
| <math>\mathfrak{JKLMNOPQR} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathfrak{STUVWXYZ} </source>
 
| <math>\mathfrak{STUVWXYZ} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathfrak{abcdefghijklm} </source>
 
| <math>\mathfrak{abcdefghijklm} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathfrak{nopqrstuvwxyz} </source>
 
| <math>\mathfrak{nopqrstuvwxyz} \!</math>
 
|-
 
| <source lang="latex" enclose="none">\mathfrak{0123456789} </source>
 
| <math>\mathfrak{0123456789} \!</math>
 
|-
 
|-
 
!colspan="2"| Small scriptstyle text
 
|-
 
| <source lang="latex" enclose="none">{\scriptstyle\text{abcdefghijklm}}</source>
 
| <math>{\scriptstyle\text{abcdefghijklm}}</math>
 
|}
 
 
 
=== Mixed text faces ===
 
 
 
{| class="wikitable"
 
|-
 
! Feature
 
! Syntax
 
! How it looks rendered
 
|-
 
| Italicised characters (spaces are ignored)
 
| <source lang="text" enclose="none">x y z</source>
 
| <math>x y z</math>
 
|-
 
| Non-italicised characters
 
| <source lang="latex" enclose="none">\text{x y z}</source>
 
| <math>\text{x y z}</math>
 
|-
 
| Mixed italics (bad)
 
| <source lang="text" enclose="none">\text{if} n \text{is even}</source>
 
| <math>\text{if} n \text{is even}</math>
 
|-
 
| Mixed italics (good)
 
| <source lang="text" enclose="none">\text{if }n\text{ is even}</source>
 
| <math>\text{if }n\text{ is even}</math>
 
|-
 
| Mixed italics (alternative: ~ or "\ " forces a space)
 
| <source lang="text" enclose="none">\text{if}~n\ \text{is even}</source>
 
| <math>\text{if}~n\ \text{is even}</math>
 
|}
 
 
 
== Color ==
 
Equations can use color with the <code>\color</code> command. The default [[Wikipedia:Texvc|Texvc]] renderer and the [[MathJax]] renderers have different syntaxes to support both use <code>{\color{Blue}{text}}</code>. For example
 
* <source lang="text" enclose="none">{\color{Blue}{x^2}}+{\color{Orange}{2x}}-{\color{LimeGreen}{1}}</source>
 
*: <math>{\color{Blue}{x^2}}+{\color{Orange}{2x}}-{\color{LimeGreen}{1}}</math>
 
* <source lang="text" enclose="none">x_{1,2}=\frac{{\color{Blue}{-b}}\pm\sqrt{\color{Red}{b^2-4ac}}}{\color{Green}{2a}}</source>
 
*: <math>x_{1,2}=\frac{{\color{Blue}{-b}}\pm\sqrt{\color{Red}{b^2-4ac}}}{\color{Green}{2a}}</math>
 
There are several alternate notations styles
 
* <source lang="text" enclose="none">{\color{Blue}x^2}+{\color{Orange}2x}-{\color{LimeGreen}1}</source> works with both texvc and MathJax
 
*: <math>{\color{Blue}x^2}+{\color{Orange}2x}-{\color{LimeGreen}1}</math>
 
* <source lang="text" enclose="none">\color{Blue}x^2\color{Black}+\color{Orange}2x\color{Black}-\color{LimeGreen}1</source> works with both texvc and MathJax
 
*: <math>\color{Blue}x^2\color{Black}+\color{Orange}2x\color{Black}-\color{LimeGreen}1</math>
 
* <source lang="text" enclose="none">\color{Blue}{x^2}+\color{Orange}{2x}-\color{LimeGreen}{1}</source> only works with MathJax
 
*: <math>\color{Blue}{x^2}+\color{Orange}{2x}-\color{LimeGreen}{1}</math>
 
 
 
Some color names are predeclared according to the following table, you can use them directly for the rendering of formulas (or for declaring the intended color of the page background).
 
 
 
{| class="wikitable"
 
|+ Colors supported
 
|-
 
| <math>\color{Blue}{\text{Blue}}</math> || <math>\color{BlueGreen}{\text{BlueGreen}}</math> || <math>\color{BlueViolet}{\text{BlueViolet}}</math> || <math>\color{BrickRed}{\text{BrickRed}}</math>
 
|-
 
| <math>\color{Brown}{\text{Brown}}</math> || <math>\color{BurntOrange}{\text{BurntOrange}}</math> || <math>\color{CadetBlue}{\text{CadetBlue}}</math> || <math>\color{CarnationPink}{\text{CarnationPink}}</math>
 
|-
 
| <math>\color{DarkOrchid}{\text{DarkOrchid}}</math> || <math>\color{Emerald}{\text{Emerald}}</math> || <math>\color{ForestGreen}{\text{ForestGreen}}</math> || <math>\color{Fuchsia}{\text{Fuchsia}}</math>
 
|-
 
| <math>\color{Mahogany}{\text{Mahogany}}</math> || <math>\color{Maroon}{\text{Maroon}}</math> || <math>\color{Melon}{\text{Melon}}</math> || <math>\color{MidnightBlue}{\text{MidnightBlue}}</math>
 
|-
 
| <math>\color{Mulberry}{\text{Mulberry}}</math> || <math>\color{NavyBlue}{\text{NavyBlue}}</math> || <math>\color{OliveGreen}{\text{OliveGreen}}</math> || <math>\color{Orange}{\text{Orange}}</math>
 
|-
 
| <math>\color{OrangeRed}{\text{OrangeRed}}</math> || <math>\color{Orchid}{\text{Orchid}}</math> || <math>\color{Peach}{\text{Peach}}</math> || <math>\color{Periwinkle}{\text{Periwinkle}}</math>
 
|-
 
| <math>\color{PineGreen}{\text{PineGreen}}</math> || <math>\color{Plum}{\text{Plum}}</math> || <math>\color{ProcessBlue}{\text{ProcessBlue}}</math> || <math>\color{Purple}{\text{Purple}}</math>
 
|-
 
| <math>\color{RawSienna}{\text{RawSienna}}</math> || <math>\color{Red}{\text{Red}}</math> || <math>\color{RedOrange}{\text{RedOrange}}</math> || <math>\color{RedViolet}{\text{RedViolet}}</math>
 
|-
 
| <math>\color{Rhodamine}{\text{Rhodamine}}</math> || <math>\color{RoyalBlue}{\text{RoyalBlue}}</math> || <math>\color{RoyalPurple}{\text{RoyalPurple}}</math> || <math>\color{RubineRed}{\text{RubineRed}}</math>
 
|-
 
| <math>\color{Salmon}{\text{Salmon}}</math> || <math>\color{SeaGreen}{\text{SeaGreen}}</math> || <math>\color{Sepia}{\text{Sepia}}</math> || <math>\color{SkyBlue}{\text{SkyBlue}}</math>
 
|}
 
 
 
Note that color should not be used as the ''only'' way to identify something, because it will become meaningless on black-and-white media or for color-blind people. See [[Wikipedia:Manual of Style (accessibility)#Color]].
 
 
 
Custom colours can be defined using
 
<syntaxhighlight lang="latex">\definecolor{myorange}{RGB}{255,165,100}\color{myorange}e^{i \pi}\color{Black} + 1 = 0</syntaxhighlight>
 
 
 
:<math>\definecolor{myorange}{RGB}{255,165,100}\color{myorange}e^{i \pi}\color{Black} + 1 = 0</math>
 
 
 
== Formatting issues ==
 
 
 
=== Spacing ===
 
 
 
Note that {{TeX}} handles most spacing automatically, but you may sometimes want manual control.
 
 
 
{| class="wikitable"
 
! Feature
 
! Syntax
 
! How it looks rendered
 
|-
 
| double quad space
 
| <source lang="latex" enclose="none">a \qquad b</source>
 
| <math>a \qquad b</math>
 
|-
 
| quad space
 
| <source lang="latex" enclose="none">a \quad b</source>
 
| <math>a \quad b</math>
 
|-
 
| text space
 
| <source lang="latex" enclose="none">a\ b</source>
 
| <math>a\ b</math>
 
|-
 
| text space without PNG conversion
 
| <source lang="latex" enclose="none">a \mbox{ } b</source>
 
| <math>a \mbox{ } b</math>
 
|-
 
| large space
 
| <source lang="latex" enclose="none">a\;b</source>
 
| <math>a\;b</math>
 
|-
 
| medium space
 
| <source lang="latex" enclose="none">a\<b</source>
 
| [not supported]
 
|-
 
| small space
 
| <source lang="latex" enclose="none">a\,b</source>
 
| <math>a\,b</math>
 
|-
 
| tiny space (use for multiplication of factors)
 
| <source lang="latex" enclose="none">ab</source>
 
| <math>ab</math>
 
|-
 
| no space (use for multi-letter variables)
 
| <source lang="latex" enclose="none">\mathit{ab}</source>
 
| <math>\mathit{ab}</math>
 
|-
 
| small negative space
 
| <source lang="latex" enclose="none">a\!b</source>
 
| <math>a\!b</math>
 
|}
 
 
 
Automatic spacing may be broken in very long expressions (because they produce an overfull hbox in {{TeX}}):
 
 
 
: <source lang="latex" enclose="none">0+1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20+\cdots</source>
 
: <math>0+1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20+\cdots</math>
 
 
 
This can be remedied by putting a pair of braces { } around the whole expression:
 
 
 
: <source lang="latex" enclose="none">{0+1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20+\cdots}</source>
 
: <math>{0+1+2+3+4+5+6+7+8+9+10+11+12+13+14+15+16+17+18+19+20+\cdots}</math>
 
 
 
=== Alignment with normal text flow ===
 
 
 
Due to the default CSS
 
 
 
<source lang="CSS">img.tex { vertical-align: middle; }</source>
 
 
 
an inline expression like <math>\int_{-N}^{N} e^x\, dx</math> should look good.
 
 
 
If you need to align it otherwise, use <code><nowiki><math style="vertical-align:-100%;">...</math></nowiki></code> and play with the <source lang="latex" enclose="none">vertical-align</source> argument until you get it right; however, how it looks may depend on the browser and the browser settings.
 
 
 
Also note that if you rely on this workaround, if/when the rendering on the server gets fixed in future releases, as a result of this extra manual offset your formulae will suddenly be aligned incorrectly. So use it sparingly, if at all.
 

Revision as of 01:11, 29 October 2020