Difference between revisions of "Math Symbols Help"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<tvar|(.*)>" to "")
Line 9: Line 9:
  
 
==== Example ====
 
==== Example ====
The sum <math display="inline">\sum_{i=0}^\infty 2^{-i}</math> converges to 2.
+
converges to 2.
  
 
The next line-width is not disturbed by large operators.
 
The next line-width is not disturbed by large operators.
  
 
The code for the math example reads:
 
The code for the math example reads:
:<code><nowiki><math display="inline">\sum_{i=0}^\infty 2^{-i}</math></nowiki></code>
+
 
  
  
Line 22: Line 22:
 
==== Example ====
 
==== Example ====
 
The equation  
 
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.
 
is used in a joke about mathematicians entering a bar and ordering beer.
  
 
== Functions, symbols, special characters ==
 
== Functions, symbols, special characters ==
<!-- Eight symbols per line seems to be optimal -->
+
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 34: Line 34:
 
=== Accents/diacritics ===
 
=== Accents/diacritics ===
 
|-
 
|-
| <source lang="text" enclose="none">\dot{a}, \ddot{a}, \acute{a}, \grave{a} </source>
+
 
| <math>\dot{a}, \ddot{a}, \acute{a}, \grave{a} \!</math>
+
 
 
|-
 
|-
| <source lang="text" enclose="none">\check{a}, \breve{a}, \tilde{a}, \bar{a} </source>
+
 
| <math>\check{a}, \breve{a}, \tilde{a}, \bar{a} \!</math>
+
 
 
|-
 
|-
| <source lang="text" enclose="none">\hat{a}, \widehat{a}, \vec{a} </source>
+
 
| <math>\hat{a}, \widehat{a}, \vec{a} \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 47: Line 47:
 
=== Standard numerical functions ===
 
=== Standard numerical functions ===
 
|-
 
|-
| <source lang="latex" enclose="none">\exp_a b = a^b, \exp b = e^b, 10^m </source>
+
 
| <math>\exp_a b = a^b, \exp b = e^b, 10^m \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\ln c, \lg d = \log e, \log_{10} f </source>
+
 
| <math>\ln c, \lg d = \log e, \log_{10} f \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\sin a, \cos b, \tan c, \cot d, \sec e, \csc f</source>
+
 
| <math>\sin a, \cos b, \tan c, \cot d, \sec e, \csc f\!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\arcsin h, \arccos i, \arctan j </source>
+
 
| <math>\arcsin h, \arccos i, \arctan j \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\sinh k, \cosh l, \tanh m, \coth n </source>
+
 
| <math>\sinh k, \cosh l, \tanh m, \coth n \!</math>
+
 
 
|-
 
|-
| <source lang="text" enclose="none">\operatorname{sh}\,k, \operatorname{ch}\,l, \operatorname{th}\,m, \operatorname{coth}\,n </source>
+
 
| <math>\operatorname{sh}\,k, \operatorname{ch}\,l, \operatorname{th}\,m, \operatorname{coth}\,n \!</math>
+
 
 
|-
 
|-
| <source lang="text" enclose="none">\operatorname{argsh}\,o, \operatorname{argch}\,p, \operatorname{argth}\,q </source>
+
 
| <math>\operatorname{argsh}\,o, \operatorname{argch}\,p, \operatorname{argth}\,q \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\sgn r, \left\vert s \right\vert </source>
+
 
| <math>\sgn r, \left\vert s \right\vert \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\min(x,y), \max(x,y) </source>
+
 
| <math>\min(x,y), \max(x,y) \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 78: Line 78:
 
=== Bounds ===
 
=== Bounds ===
 
|-
 
|-
| <source lang="latex" enclose="none">\min x, \max y, \inf s, \sup t </source>
+
 
| <math>\min x, \max y, \inf s, \sup t \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\lim u, \liminf v, \limsup w </source>
+
 
| <math>\lim u, \liminf v, \limsup w \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\dim p, \deg q, \det m, \ker\phi </source>
+
 
| <math>\dim p, \deg q, \det m, \ker\phi \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 91: Line 91:
 
=== Projections ===
 
=== Projections ===
 
|-
 
|-
| <source lang="latex" enclose="none">\Pr j, \hom l, \lVert z \rVert, \arg z </source>
+
 
| <math>\Pr j, \hom l, \lVert z \rVert, \arg z \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 98: Line 98:
 
=== Differentials and derivatives ===
 
=== Differentials and derivatives ===
 
|-
 
|-
| <source lang="latex" enclose="none">dt, \operatorname{d}\!t, \partial t, \nabla\psi</source>
+
 
| <math>dt, \operatorname{d}\!t, \partial t, \nabla\psi\!</math>
+
 
 
|-
 
|-
| <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>
+
 
| <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>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\prime, \backprime, f^\prime, f', f'', f^{(3)}, \dot y, \ddot y </source>
+
 
| <math>\prime, \backprime, f^\prime, f', f'', f^{(3)} \!, \dot y, \ddot y</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 111: Line 111:
 
=== Letter-like symbols or constants ===
 
=== Letter-like symbols or constants ===
 
|-
 
|-
| <source lang="latex" enclose="none">\infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar </source>
+
 
| <math>\infty, \aleph, \complement, \backepsilon, \eth, \Finv, \hbar \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS </source>
+
 
| <math>\Im, \imath, \jmath, \Bbbk, \ell, \mho, \wp, \Re, \circledS \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 121: Line 121:
 
=== Modular arithmetic ===
 
=== Modular arithmetic ===
 
|-
 
|-
| <source lang="latex" enclose="none">s_k \equiv 0 \pmod{m} </source>
+
 
| <math>s_k \equiv 0 \pmod{m} \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">a\,\bmod\,b </source>
+
 
| <math>a\,\bmod\,b \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\gcd(m, n), \operatorname{lcm}(m, n)</source>
+
 
| <math>\gcd(m, n), \operatorname{lcm}(m, n)</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\mid, \nmid, \shortmid, \nshortmid </source>
+
 
| <math>\mid, \nmid, \shortmid, \nshortmid \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 137: Line 137:
 
=== Radicals ===
 
=== Radicals ===
 
|-
 
|-
| <source lang="text" enclose="none">\surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{x^3+y^3 \over 2} </source>
+
 
| <math>\surd, \sqrt{2}, \sqrt[n]{}, \sqrt[3]{x^3+y^3 \over 2} \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 144: Line 144:
 
=== Operators ===
 
=== Operators ===
 
|-
 
|-
| <source lang="latex" enclose="none">+, -, \pm, \mp, \dotplus </source>
+
 
| <math>+, -, \pm, \mp, \dotplus \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\times, \div, \divideontimes, /, \backslash </source>
+
 
| <math>\times, \div, \divideontimes, /, \backslash \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\cdot, * \ast, \star, \circ, \bullet </source>
+
 
| <math>\cdot, * \ast, \star, \circ, \bullet \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\boxplus, \boxminus, \boxtimes, \boxdot </source>
+
 
| <math>\boxplus, \boxminus, \boxtimes, \boxdot \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\oplus, \ominus, \otimes, \oslash, \odot</source>
+
 
| <math>\oplus, \ominus, \otimes, \oslash, \odot\!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\circleddash, \circledcirc, \circledast </source>
+
 
| <math>\circleddash, \circledcirc, \circledast \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\bigoplus, \bigotimes, \bigodot </source>
+
 
| <math>\bigoplus, \bigotimes, \bigodot \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 169: Line 169:
 
=== Sets ===
 
=== Sets ===
 
|-
 
|-
| <source lang="text" enclose="none">\{ \}, \O \empty \emptyset, \varnothing </source>
+
 
| <math>\{ \}, \O \empty \emptyset, \varnothing \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\in, \notin \not\in, \ni, \not\ni </source>
+
 
| <math>\in, \notin \not\in, \ni, \not\ni \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\cap, \Cap, \sqcap, \bigcap </source>
+
 
| <math>\cap, \Cap, \sqcap, \bigcap \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus </source>
+
 
| <math>\cup, \Cup, \sqcup, \bigcup, \bigsqcup, \uplus, \biguplus \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\setminus, \smallsetminus, \times </source>
+
 
| <math>\setminus, \smallsetminus, \times \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\subset, \Subset, \sqsubset </source>
+
 
| <math>\subset, \Subset, \sqsubset \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\supset, \Supset, \sqsupset </source>
+
 
| <math>\supset, \Supset, \sqsupset \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq </source>
+
 
| <math>\subseteq, \nsubseteq, \subsetneq, \varsubsetneq, \sqsubseteq \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq </source>
+
 
| <math>\supseteq, \nsupseteq, \supsetneq, \varsupsetneq, \sqsupseteq \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq </source>
+
 
| <math>\subseteqq, \nsubseteqq, \subsetneqq, \varsubsetneqq \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq </source>
+
 
| <math>\supseteqq, \nsupseteqq, \supsetneqq, \varsupsetneqq \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 206: Line 206:
 
=== Relations ===
 
=== Relations ===
 
|-
 
|-
| <source lang="latex" enclose="none">=, \ne, \neq, \equiv, \not\equiv </source>
+
 
| <math>=, \ne, \neq, \equiv, \not\equiv \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\doteq, \doteqdot,</source> <source lang="text" enclose="none">\overset{\underset{\mathrm{def}}{}}{=},</source> <source lang="latex" enclose="none">:=</source>
+
 
| <math>\doteq, \doteqdot, \overset{\underset{\mathrm{def}}{}}{=}, := \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong </source>
+
 
| <math>\sim, \nsim, \backsim, \thicksim, \simeq, \backsimeq, \eqsim, \cong, \ncong \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto </source>
+
 
| <math>\approx, \thickapprox, \approxeq, \asymp, \propto, \varpropto \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none"><, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot </source>
+
 
| <math><, \nless, \ll, \not\ll, \lll, \not\lll, \lessdot \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot </source>
+
 
| <math>>, \ngtr, \gg, \not\gg, \ggg, \not\ggg, \gtrdot \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\le, \leq, \lneq, \leqq, \nleq, \nleqq, \lneqq, \lvertneqq </source>
+
 
| <math>\le, \leq, \lneq, \leqq, \nleq, \nleqq, \lneqq, \lvertneqq \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\ge, \geq, \gneq, \geqq, \ngeq, \ngeqq, \gneqq, \gvertneqq </source>
+
 
| <math>\ge, \geq, \gneq, \geqq, \ngeq, \ngeqq, \gneqq, \gvertneqq \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\lessgtr, \lesseqgtr, \lesseqqgtr, \gtrless, \gtreqless, \gtreqqless </source>
+
 
| <math>\lessgtr, \lesseqgtr, \lesseqqgtr, \gtrless, \gtreqless, \gtreqqless \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\leqslant, \nleqslant, \eqslantless </source>
+
 
| <math>\leqslant, \nleqslant, \eqslantless \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\geqslant, \ngeqslant, \eqslantgtr </source>
+
 
| <math>\geqslant, \ngeqslant, \eqslantgtr \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\lesssim, \lnsim, \lessapprox, \lnapprox </source>
+
 
| <math>\lesssim, \lnsim, \lessapprox, \lnapprox \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\gtrsim, \gnsim, \gtrapprox, \gnapprox </source>
+
 
| <math>\gtrsim, \gnsim, \gtrapprox, \gnapprox \,</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\prec, \nprec, \preceq, \npreceq, \precneqq </source>
+
 
| <math>\prec, \nprec, \preceq, \npreceq, \precneqq \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\succ, \nsucc, \succeq, \nsucceq, \succneqq </source>
+
 
| <math>\succ, \nsucc, \succeq, \nsucceq, \succneqq \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\preccurlyeq, \curlyeqprec </source>
+
 
| <math>\preccurlyeq, \curlyeqprec \,</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\succcurlyeq, \curlyeqsucc </source>
+
 
| <math>\succcurlyeq, \curlyeqsucc \,</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\precsim, \precnsim, \precapprox, \precnapprox </source>
+
 
| <math>\precsim, \precnsim, \precapprox, \precnapprox \,</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\succsim, \succnsim, \succapprox, \succnapprox </source>
+
 
| <math>\succsim, \succnsim, \succapprox, \succnapprox \,</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 267: Line 267:
 
=== Geometric ===
 
=== Geometric ===
 
|-
 
|-
| <source lang="latex" enclose="none">\parallel, \nparallel, \shortparallel, \nshortparallel </source>
+
 
| <math>\parallel, \nparallel, \shortparallel, \nshortparallel \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\perp, \angle, \sphericalangle, \measuredangle, 45^\circ </source>
+
 
| <math>\perp, \angle, \sphericalangle, \measuredangle, 45^\circ \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar </source>
+
 
| <math>\Box, \blacksquare, \diamond, \Diamond \lozenge, \blacklozenge, \bigstar \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\bigcirc, \triangle \bigtriangleup, \bigtriangledown </source>
+
 
| <math>\bigcirc, \triangle \bigtriangleup, \bigtriangledown \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\vartriangle, \triangledown </source>
+
 
| <math>\vartriangle, \triangledown\!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright </source>
+
 
| <math>\blacktriangle, \blacktriangledown, \blacktriangleleft, \blacktriangleright \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 289: Line 289:
 
=== Logic ===
 
=== Logic ===
 
|-
 
|-
| <source lang="latex" enclose="none">\forall, \exists, \nexists </source>
+
 
| <math>\forall, \exists, \nexists \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\therefore, \because, \And </source>
+
 
| <math>\therefore, \because, \And \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\or \lor \vee, \curlyvee, \bigvee </source>
+
 
| <math>\or \lor \vee, \curlyvee, \bigvee \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\and \land \wedge, \curlywedge, \bigwedge </source>
+
 
| <math>\and \land \wedge, \curlywedge, \bigwedge \!</math>
+
 
 
|-
 
|-
| <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>
+
 
| <math>\bar{q}, \bar{abc}, \overline{q}, \overline{abc}, \!</math><br />
+
 
<math>\lnot \neg, \not\operatorname{R}, \bot, \top \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\vdash \dashv, \vDash, \Vdash, \models </source>
+
 
| <math>\vdash \dashv, \vDash, \Vdash, \models \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\Vvdash \nvdash \nVdash \nvDash \nVDash </source>
+
 
| <math>\Vvdash \nvdash \nVdash \nvDash \nVDash \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\ulcorner \urcorner \llcorner \lrcorner </source>
+
 
| <math>\ulcorner \urcorner \llcorner \lrcorner \,</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 319: Line 319:
 
=== Arrows ===
 
=== Arrows ===
 
|-
 
|-
| <source lang="latex" enclose="none">\Rrightarrow, \Lleftarrow </source>
+
 
| <math>\Rrightarrow, \Lleftarrow \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\Rightarrow, \nRightarrow, \Longrightarrow \implies </source>
+
 
| <math>\Rightarrow, \nRightarrow, \Longrightarrow \implies\!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\Leftarrow, \nLeftarrow, \Longleftarrow </source>
+
 
| <math>\Leftarrow, \nLeftarrow, \Longleftarrow \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff </source>
+
 
| <math>\Leftrightarrow, \nLeftrightarrow, \Longleftrightarrow \iff \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\Uparrow, \Downarrow, \Updownarrow </source>
+
 
| <math>\Uparrow, \Downarrow, \Updownarrow \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\rightarrow \to, \nrightarrow, \longrightarrow </source>
+
 
| <math>\rightarrow \to, \nrightarrow, \longrightarrow\!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\leftarrow \gets, \nleftarrow, \longleftarrow </source>
+
 
| <math>\leftarrow \gets, \nleftarrow, \longleftarrow\!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\leftrightarrow, \nleftrightarrow, \longleftrightarrow </source>
+
 
| <math>\leftrightarrow, \nleftrightarrow, \longleftrightarrow \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\uparrow, \downarrow, \updownarrow </source>
+
 
| <math>\uparrow, \downarrow, \updownarrow \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\nearrow, \swarrow, \nwarrow, \searrow </source>
+
 
| <math>\nearrow, \swarrow, \nwarrow, \searrow \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\mapsto, \longmapsto </source>
+
 
| <math>\mapsto, \longmapsto \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons</source>
+
 
| <math>\rightharpoonup \rightharpoondown \leftharpoonup \leftharpoondown \upharpoonleft \upharpoonright \downharpoonleft \downharpoonright \rightleftharpoons \leftrightharpoons \,\!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright</source>
+
 
| <math>\curvearrowleft \circlearrowleft \Lsh \upuparrows \rightrightarrows \rightleftarrows \rightarrowtail \looparrowright \,\!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft</source>
+
 
| <math>\curvearrowright \circlearrowright \Rsh \downdownarrows \leftleftarrows \leftrightarrows \leftarrowtail \looparrowleft \,\!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow </source>
+
 
| <math>\hookrightarrow \hookleftarrow \multimap \leftrightsquigarrow \rightsquigarrow \twoheadrightarrow \twoheadleftarrow \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 368: Line 368:
 
=== Special ===
 
=== Special ===
 
|-
 
|-
| <source lang="latex" enclose="none">\amalg \P \S \% \dagger \ddagger \ldots \cdots </source>
+
 
| <math>\amalg \P \S \% \dagger \ddagger \ldots \cdots \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\smile \frown \wr \triangleleft \triangleright</source>
+
 
| <math>\smile \frown \wr \triangleleft \triangleright\!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp </source>
+
 
| <math>\diamondsuit, \heartsuit, \clubsuit, \spadesuit, \Game, \flat, \natural, \sharp \!</math>
+
 
 
|-
 
|-
 
!colspan="2"|
 
!colspan="2"|
Line 381: Line 381:
 
=== Unsorted (new stuff) ===
 
=== Unsorted (new stuff) ===
 
|-
 
|-
| <source lang="latex" enclose="none">\diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes </source>
+
 
| <math>\diagup \diagdown \centerdot \ltimes \rtimes \leftthreetimes \rightthreetimes \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq </source>
+
 
| <math>\eqcirc \circeq \triangleq \bumpeq \Bumpeq \doteqdot \risingdotseq \fallingdotseq \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\intercal \barwedge \veebar \doublebarwedge \between \pitchfork </source>
+
 
| <math>\intercal \barwedge \veebar \doublebarwedge \between \pitchfork \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\vartriangleleft \ntriangleleft \vartriangleright \ntriangleright </source>
+
 
| <math>\vartriangleleft \ntriangleleft \vartriangleright \ntriangleright \!</math>
+
 
 
|-
 
|-
| <source lang="latex" enclose="none">\trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq </source>
+
 
| <math>\trianglelefteq \ntrianglelefteq \trianglerighteq \ntrianglerighteq \!</math>
+
 
 
|}
 
|}
  
Line 408: Line 408:
 
|-
 
|-
 
| Superscript
 
| Superscript
| <source lang="text" enclose="none">a^2</source> || <math>a^2</math>
+
 
 
|-
 
|-
 
| Subscript
 
| Subscript
| <source lang="text" enclose="none">a_2</source> || <math>a_2</math>
+
 
 
|-
 
|-
 
| rowspan="2"| Grouping
 
| 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
 
| 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
 
| Super super
| <source lang="text" enclose="none">10^{10^{8}}</source> || <math>10^{10^{8}}</math>
+
 
 
|-
 
|-
 
| rowspan="2"| Preceding and/or additional sub & super
 
| 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
 
| 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
 
| 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
 
| Derivative dots
| <source lang="text" enclose="none">\dot{x}, \ddot{x}</source> || <math>\dot{x}, \ddot{x}</math>
+
 
 
|-
 
|-
 
| rowspan="3"| Underlines, overlines, vectors
 
| 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)
 
| Arc (workaround)
| <source lang="text" enclose="none">\overset{\frown} {AB}</source> || <math>\overset{\frown} {AB}</math>
+
 
 
|-
 
|-
 
| Arrows
 
| 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
 
| Overbraces
| <source lang="text" enclose="none">\overbrace{ 1+2+\cdots+100 }^{5050}</source> || <math>\overbrace{ 1+2+\cdots+100 }^{5050}</math>
+
 
 
|-
 
|-
 
| Underbraces
 
| Underbraces
| <source lang="text" enclose="none">\underbrace{ a+b+\cdots+z }_{26}</source> || <math>\underbrace{ a+b+\cdots+z }_{26}</math>
+
 
 
|-
 
|-
 
| Sum
 
| 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)
 
| 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
 
| 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
 
| 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
 
| 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
 
| 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)
 
| 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)
+
, 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
 
| Double integral
| <source lang="text" enclose="none">\iint\limits_D \, dx\,dy</source> || <math>\iint\limits_D \, dx\,dy</math>
+
 
 
|-
 
|-
 
| Triple integral
 
| Triple integral
| <source lang="text" enclose="none">\iiint\limits_E \, dx\,dy\,dz</source> || <math>\iiint\limits_E \, dx\,dy\,dz</math>
+
 
 
|-
 
|-
 
| Quadruple integral
 
| 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
 
| 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
 
| 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
 
| Intersections
| <source lang="text" enclose="none">\bigcap_{i=_1}^n E_i</source> || <math>\bigcap_{i=_1}^n E_i</math>
+
 
 
|-
 
|-
 
| Unions
 
| Unions
| <source lang="text" enclose="none">\bigcup_{i=_1}^n E_i</source> || <math>\bigcup_{i=_1}^n E_i</math>
+
 
 
|}
 
|}
  
Line 542: Line 542:
 
|-
 
|-
 
| Fractions
 
| 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
 
| Small fractions
| <source lang="text" enclose="none">\tfrac{2}{4} = 0.5</source>
+
 
| <math>\tfrac{2}{4} = 0.5</math>
+
 
 
|-
 
|-
 
| Large (normal) fractions
 
| 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
 
| 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
+
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
 
| Binomial coefficients
| <source lang="text" enclose="none">\binom{n}{k}</source>
+
 
| <math>\binom{n}{k}</math>
+
 
 
|-
 
|-
 
| Small binomial coefficients
 
| Small binomial coefficients
| <source lang="text" enclose="none">\tbinom{n}{k}</source>
+
 
| <math>\tbinom{n}{k}</math>
+
 
 
|-
 
|-
 
| Large (normal) binomial coefficients
 
| Large (normal) binomial coefficients
| <source lang="text" enclose="none">\dbinom{n}{k}</source>
+
 
| <math>\dbinom{n}{k}</math>
+
 
 
|-
 
|-
 
| rowspan="7" | Matrices
 
| rowspan="7" | Matrices
| <source lang="latex">\begin{matrix}
+
\begin{matrix}
 
x & y \\
 
x & y \\
 
z & v
 
z & v
\end{matrix}</source>
+
 
| <math>\begin{matrix}
+
\begin{matrix}
 
x & y \\
 
x & y \\
 
z & v
 
z & v
\end{matrix}</math>
+
 
 
|-
 
|-
| <source lang="latex">\begin{vmatrix}
+
\begin{vmatrix}
 
x & y \\
 
x & y \\
 
z & v
 
z & v
\end{vmatrix}</source>
+
 
| <math>\begin{vmatrix}
+
\begin{vmatrix}
 
x & y \\
 
x & y \\
 
z & v
 
z & v
\end{vmatrix}</math>
+
 
 
|-
 
|-
| <source lang="latex">\begin{Vmatrix}
+
\begin{Vmatrix}
 
x & y \\
 
x & y \\
 
z & v
 
z & v
\end{Vmatrix}</source>
+
 
| <math>\begin{Vmatrix}
+
\begin{Vmatrix}
 
x & y \\
 
x & y \\
 
z & v
 
z & v
\end{Vmatrix}</math>
+
 
 
|-
 
|-
| <source lang="latex">\begin{bmatrix}
+
\begin{bmatrix}
 
0 & \cdots & 0 \\
 
0 & \cdots & 0 \\
 
\vdots & \ddots & \vdots \\
 
\vdots & \ddots & \vdots \\
 
0 & \cdots & 0
 
0 & \cdots & 0
\end{bmatrix}</source>
+
 
| <math>\begin{bmatrix}
+
\begin{bmatrix}
 
0 & \cdots & 0 \\
 
0 & \cdots & 0 \\
 
\vdots & \ddots & \vdots \\
 
\vdots & \ddots & \vdots \\
 
0 & \cdots & 0
 
0 & \cdots & 0
\end{bmatrix} </math>
+
 
 
|-
 
|-
| <source lang="latex">\begin{Bmatrix}
+
\begin{Bmatrix}
 
x & y \\
 
x & y \\
 
z & v
 
z & v
\end{Bmatrix}</source>
+
 
| <math>\begin{Bmatrix}
+
\begin{Bmatrix}
 
x & y \\
 
x & y \\
 
z & v
 
z & v
\end{Bmatrix}</math>
+
 
 
|-
 
|-
| <source lang="latex">\begin{pmatrix}
+
\begin{pmatrix}
 
x & y \\
 
x & y \\
 
z & v
 
z & v
\end{pmatrix}</source>
+
 
| <math>\begin{pmatrix}
+
\begin{pmatrix}
 
x & y \\
 
x & y \\
 
z & v
 
z & v
\end{pmatrix}</math>
+
 
 
|-
 
|-
| <source lang="latex">
+
 
 
\bigl( \begin{smallmatrix}
 
\bigl( \begin{smallmatrix}
 
a&b\\ c&d
 
a&b\\ c&d
 
\end{smallmatrix} \bigr)
 
\end{smallmatrix} \bigr)
</source>
+
 
| <math>
+
 
 
\bigl( \begin{smallmatrix}
 
\bigl( \begin{smallmatrix}
 
a&b\\ c&d
 
a&b\\ c&d
 
\end{smallmatrix} \bigr)
 
\end{smallmatrix} \bigr)
</math>
+
 
 
|-
 
|-
 
| Case distinctions
 
| Case distinctions
| <source lang="latex">
+
 
 
f(n) =
 
f(n) =
 
\begin{cases}
 
\begin{cases}
 
n/2, & \text{if }n\text{ is even} \\
 
n/2, & \text{if }n\text{ is even} \\
 
3n+1, & \text{if }n\text{ is odd}
 
3n+1, & \text{if }n\text{ is odd}
\end{cases}</source>
+
 
| <math>f(n) =
+
f(n) =
 
\begin{cases}
 
\begin{cases}
 
n/2, & \text{if }n\text{ is even} \\
 
n/2, & \text{if }n\text{ is even} \\
 
3n+1, & \text{if }n\text{ is odd}
 
3n+1, & \text{if }n\text{ is odd}
\end{cases}</math>
+
 
 
|-
 
|-
 
| rowspan="2" | Multiline equations
 
| rowspan="2" | Multiline equations
| <source lang="latex">
+
 
 
\begin{align}
 
\begin{align}
 
f(x) & = (a+b)^2 \\
 
f(x) & = (a+b)^2 \\
 
& = a^2+2ab+b^2 \\
 
& = a^2+2ab+b^2 \\
 
\end{align}
 
\end{align}
</source>
+
 
| <math>
+
 
 
\begin{align}
 
\begin{align}
 
f(x) & = (a+b)^2 \\
 
f(x) & = (a+b)^2 \\
 
& = a^2+2ab+b^2 \\
 
& = a^2+2ab+b^2 \\
 
\end{align}
 
\end{align}
</math>
+
 
 
|-
 
|-
| <source lang="latex">
+
 
 
\begin{alignat}{2}
 
\begin{alignat}{2}
 
f(x) & = (a-b)^2 \\
 
f(x) & = (a-b)^2 \\
 
& = a^2-2ab+b^2 \\
 
& = a^2-2ab+b^2 \\
 
\end{alignat}
 
\end{alignat}
</source>
+
 
| <math>
+
 
 
\begin{alignat}{2}
 
\begin{alignat}{2}
 
f(x) & = (a-b)^2 \\
 
f(x) & = (a-b)^2 \\
 
& = a^2-2ab+b^2 \\
 
& = a^2-2ab+b^2 \\
 
\end{alignat}
 
\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}
 
\begin{array}{lcl}
 
z & = & a \\
 
z & = & a \\
 
f(x,y,z) & = & x + y + z
 
f(x,y,z) & = & x + y + z
\end{array}</source>
+
 
| <math>\begin{array}{lcl}
+
\begin{array}{lcl}
 
z & = & a \\
 
z & = & a \\
 
f(x,y,z) & = & x + y + z
 
f(x,y,z) & = & x + y + z
\end{array}</math>
+
 
 
|-
 
|-
 
| Multiline equations (more)
 
| Multiline equations (more)
| <source lang="latex">
+
 
 
\begin{array}{lcr}
 
\begin{array}{lcr}
 
z & = & a \\
 
z & = & a \\
 
f(x,y,z) & = & x + y + z
 
f(x,y,z) & = & x + y + z
\end{array}</source>
+
 
| <math>\begin{array}{lcr}
+
\begin{array}{lcr}
 
z & = & a \\
 
z & = & a \\
 
f(x,y,z) & = & x + y + z
 
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
 
| Breaking up a long expression so that it wraps when necessary, at the expense of destroying correct spacing
| <source lang="latex">
+
 
 
f(x) =
 
f(x) =
 
\sum_{n=0}^\infty a_n x^n =
 
\sum_{n=0}^\infty a_n x^n =
 
a_0+a_1x+a_2x^2+\cdots
 
a_0+a_1x+a_2x^2+\cdots
</source>
+
 
| <math>f(x) =
+
f(x) =
 
\sum_{n=0}^\infty a_n x^n =
 
\sum_{n=0}^\infty a_n x^n =
a_0 +a_1x+a_2x^2+\cdots</math>
+
 
 
|-
 
|-
 
| Simultaneous equations
 
| Simultaneous equations
| <source lang="latex">\begin{cases}
+
\begin{cases}
 
3x + 5y + z \\
 
3x + 5y + z \\
 
7x - 2y + 4z \\
 
7x - 2y + 4z \\
 
-6x + 3y + 2z
 
-6x + 3y + 2z
\end{cases}</source>
+
 
| <math>\begin{cases}
+
\begin{cases}
 
3x + 5y + z \\
 
3x + 5y + z \\
 
7x - 2y + 4z \\
 
7x - 2y + 4z \\
 
-6x + 3y + 2z
 
-6x + 3y + 2z
\end{cases}</math>
+
 
 
|-
 
|-
 
| Arrays
 
| Arrays
| <source lang="latex">
+
 
 
\begin{array}{|c|c||c|} a & b & S \\
 
\begin{array}{|c|c||c|} a & b & S \\
 
\hline
 
\hline
Line 734: Line 734:
 
1&1&0\\
 
1&1&0\\
 
\end{array}
 
\end{array}
</source>
+
 
| <math>
+
 
 
\begin{array}{|c|c||c|} a & b & S \\
 
\begin{array}{|c|c||c|} a & b & S \\
 
\hline
 
\hline
Line 743: Line 743:
 
1&1&0\\
 
1&1&0\\
 
\end{array}
 
\end{array}
</math>
+
 
 
|}
 
|}
  
Line 752: Line 752:
 
|-
 
|-
 
| Bad
 
| Bad
| <source lang="text" enclose="none">( \frac{1}{2} )</source>
+
 
| <math>( \frac{1}{2} )</math>
+
 
 
|-
 
|-
 
| Good
 
| Good
| <source lang="text" enclose="none">\left ( \frac{1}{2} \right )</source>
+
 
| <math>\left ( \frac{1}{2} \right )</math>
+
 
 
|}
 
|}
  
Line 768: Line 768:
 
|-
 
|-
 
| Parentheses
 
| Parentheses
| <source lang="text" enclose="none">\left ( \frac{a}{b} \right )</source>
+
 
| <math>\left ( \frac{a}{b} \right )</math>
+
 
 
|-
 
|-
 
| Brackets
 
| 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
 
| 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
 
| 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
 
| 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:
 
| 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
 
| 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
 
| 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
+
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
+
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)
 
| 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>
+
 
 
|}
 
|}
  
Line 834: Line 834:
 
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:
 
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):
 
produces the following result (note the equation number in the right margin):
  
{{NumBlk|:|<math>x^2 + y^2 + z^2 = 1 \,</math>|{{EquationRef|1}}}}
+
|{{EquationRef|1}}}}
  
 
Later on, the text can refer to this equation by its number using syntax like this:
 
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:
 
The result looks like this:
Line 858: Line 858:
 
!colspan="2"| Greek alphabet
 
!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
 
!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
 
!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
 
!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)
 
!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)
 
!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)
 
!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
 
!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
 
!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)
 
!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
 
!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
 
!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
 
!colspan="2"| Small scriptstyle text
 
|-
 
|-
| <source lang="latex" enclose="none">{\scriptstyle\text{abcdefghijklm}}</source>
+
 
| <math>{\scriptstyle\text{abcdefghijklm}}</math>
+
 
 
|}
 
|}
  
Line 1,058: Line 1,058:
 
|-
 
|-
 
| Italicised characters (spaces are ignored)
 
| Italicised characters (spaces are ignored)
| <source lang="text" enclose="none">x y z</source>
+
 
| <math>x y z</math>
+
 
 
|-
 
|-
 
| Non-italicised characters
 
| Non-italicised characters
| <source lang="latex" enclose="none">\text{x y z}</source>
+
 
| <math>\text{x y z}</math>
+
 
 
|-
 
|-
 
| Mixed italics (bad)
 
| 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)
 
| 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)
 
| 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 ==
 
== 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
+
. 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
 
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
+
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
+
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
+
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).
 
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).
Line 1,097: Line 1,097:
 
|+ Colors supported
 
|+ 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>
+
 
 
|}
 
|}
  
Line 1,121: Line 1,121:
  
 
Custom colours can be defined using
 
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 ==
 
== Formatting issues ==
Line 1,137: Line 1,137:
 
|-
 
|-
 
| double quad space
 
| double quad space
| <source lang="latex" enclose="none">a \qquad b</source>
+
 
| <math>a \qquad b</math>
+
 
 
|-
 
|-
 
| quad space
 
| quad space
| <source lang="latex" enclose="none">a \quad b</source>
+
 
| <math>a \quad b</math>
+
 
 
|-
 
|-
 
| text space
 
| text space
| <source lang="latex" enclose="none">a\ b</source>
+
 
| <math>a\ b</math>
+
 
 
|-
 
|-
 
| text space without PNG conversion
 
| text space without PNG conversion
| <source lang="latex" enclose="none">a \mbox{ } b</source>
+
 
| <math>a \mbox{ } b</math>
+
 
 
|-
 
|-
 
| large space
 
| large space
| <source lang="latex" enclose="none">a\;b</source>
+
 
| <math>a\;b</math>
+
 
 
|-
 
|-
 
| medium space
 
| medium space
| <source lang="latex" enclose="none">a\<b</source>
+
 
 
| [not supported]
 
| [not supported]
 
|-
 
|-
 
| small space
 
| small space
| <source lang="latex" enclose="none">a\,b</source>
+
 
| <math>a\,b</math>
+
 
 
|-
 
|-
 
| tiny space (use for multiplication of factors)
 
| tiny space (use for multiplication of factors)
| <source lang="latex" enclose="none">ab</source>
+
 
| <math>ab</math>
+
 
 
|-
 
|-
 
| no space (use for multi-letter variables)
 
| no space (use for multi-letter variables)
| <source lang="latex" enclose="none">\mathit{ab}</source>
+
 
| <math>\mathit{ab}</math>
+
 
 
|-
 
|-
 
| small negative space
 
| 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}}):
 
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:
 
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 ===
 
=== Alignment with normal text flow ===
Line 1,191: Line 1,191:
 
Due to the default CSS
 
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.
+
should look good.
 +
 
 +
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.
 
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 15:16, 21 December 2019

Mathematics Publishing

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

converges to 2.

The next line-width is not disturbed by large operators.

The code for the math example reads:


Block

In block-style the equation is rendered in its own paragraph and the operator are rendered consuming less horizontal space.

Example

The equation

is used in a joke about mathematicians entering a bar and ordering beer.

Functions, symbols, special characters

Accents/diacritics

Standard numerical functions

Bounds

Projections

Differentials and derivatives

Letter-like symbols or constants

Modular arithmetic

Radicals

Operators

Sets

Relations

Geometric

Logic

Arrows

Special

Unsorted (new stuff)

For a little more semantics on these symbols, see the brief TeX Cookbook.

Larger expressions

Subscripts, superscripts, integrals

) ) ) ) ) ) ) , alternative limits style)
Feature Syntax How it looks rendered
Superscript
Subscript
Grouping
Combining sub & super without and with horizontal separation
Super super
Preceding and/or additional sub & super
Stacking
Derivatives
Derivative dots
Underlines, overlines, vectors
Arc (workaround)
Arrows
Overbraces
Underbraces
Sum
Sum in a fraction (alternative limits style)
Product
Coproduct
Limit
Integral
Integral (alternative limits style)
Double integral
Triple integral
Quadruple integral
Line or path integral
Closed line or path integral
Intersections
Unions

Fractions, matrices, multilines

Note does not work with MathJax \begin{vmatrix} x & y \\ z & v \begin{vmatrix} x & y \\ z & v \begin{Vmatrix} x & y \\ z & v \begin{Vmatrix} x & y \\ z & v \begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0 \begin{bmatrix} 0 & \cdots & 0 \\ \vdots & \ddots & \vdots \\ 0 & \cdots & 0 \begin{Bmatrix} x & y \\ z & v \begin{Bmatrix} x & y \\ z & v \begin{pmatrix} x & y \\ z & v \begin{pmatrix} x & y \\ z & v \bigl( \begin{smallmatrix} a&b\\ c&d \end{smallmatrix} \bigr) \bigl( \begin{smallmatrix} a&b\\ c&d \end{smallmatrix} \bigr) \begin{alignat}{2} f(x) & = (a-b)^2 \\ & = a^2-2ab+b^2 \\ \end{alignat} \begin{alignat}{2} f(x) & = (a-b)^2 \\ & = a^2-2ab+b^2 \\ \end{alignat} \begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x + y + z \begin{array}{lcl} z & = & a \\ f(x,y,z) & = & x + y + z
Feature Syntax How it looks rendered
Fractions


Small fractions


Large (normal) fractions


Large (nested) fractions


Binomial coefficients


Small binomial coefficients


Large (normal) binomial coefficients


Matrices

\begin{matrix} x & y \\ z & v

\begin{matrix} x & y \\ z & v

Case distinctions

f(n) = \begin{cases} n/2, & \text{if }n\text{ is even} \\ 3n+1, & \text{if }n\text{ is odd}

f(n) = \begin{cases} n/2, & \text{if }n\text{ is even} \\ 3n+1, & \text{if }n\text{ is odd}

Multiline equations

\begin{align} f(x) & = (a+b)^2 \\ & = a^2+2ab+b^2 \\ \end{align}


\begin{align} f(x) & = (a+b)^2 \\ & = a^2+2ab+b^2 \\ \end{align}

Multiline equations (more)

\begin{array}{lcr} z & = & a \\ f(x,y,z) & = & x + y + z

\begin{array}{lcr} z & = & a \\ f(x,y,z) & = & x + y + z

Breaking up a long expression so that it wraps when necessary, at the expense of destroying correct spacing

f(x) = \sum_{n=0}^\infty a_n x^n = a_0+a_1x+a_2x^2+\cdots

f(x) = \sum_{n=0}^\infty a_n x^n =

Simultaneous equations

\begin{cases} 3x + 5y + z \\ 7x - 2y + 4z \\ -6x + 3y + 2z

\begin{cases} 3x + 5y + z \\ 7x - 2y + 4z \\ -6x + 3y + 2z

Arrays

\begin{array}{|c|c||c|} a & b & S \\ \hline 0&0&1\\ 0&1&1\\ 1&0&1\\ 1&1&0\\ \end{array}


\begin{array}{|c|c||c|} a & b & S \\ \hline 0&0&1\\ 0&1&1\\ 1&0&1\\ 1&1&0\\ \end{array}

Parenthesizing big expressions, brackets, bars

Feature Syntax How it looks rendered
Bad


Good


You can use various delimiters with \left and \right:

as long as \left and \right match do not want a delimiter to appear
Feature Syntax How it looks rendered
Parentheses


Brackets


Braces


Angle brackets


Bars and double bars


Floor and ceiling functions:


Slashes and backslashes


Up, down, and up-down arrows


Size of the delimiters (add "l" or "r" to indicate the side for proper spacing)


Equation numbering

The templates {{NumBlk}} and {{EquationRef}} can be used to number equations. The template {{EquationNote}} can be used to refer to a numbered equation from surrounding text. For example, the following syntax:


produces the following result (note the equation number in the right margin):

|Template:EquationRef}}

Later on, the text can refer to this equation by its number using syntax like this:


The result looks like this:

As seen in equation (Template:EquationNote), blah blah blah...

Note that the equation number produced by {{EquationNote}} is a link that the user can click to go immediately to the cited equation.

Alphabets and typefaces

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.

Greek alphabet
Hebrew symbols
Blackboard bold/scripts
Boldface
Boldface (Greek)
Italics (default for Latin alphabet)
Greek italics (default for lowercase Greek)
Roman typeface
Sans serif
Sans serif Greek (capital only)
Calligraphy/script
Fraktur typeface
Small scriptstyle text

Mixed text faces

Feature Syntax How it looks rendered
Italicised characters (spaces are ignored)


Non-italicised characters


Mixed italics (bad)


Mixed italics (good)


Mixed italics (alternative: ~ or "\ " forces a space)


Color

. For example



There are several alternate notations styles

works with both texvc and MathJax
works with both texvc and MathJax
only works with MathJax


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).

Colors supported

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



Formatting issues

Spacing

Note that Template:TeX handles most spacing automatically, but you may sometimes want manual control.

Feature Syntax How it looks rendered
double quad space


quad space


text space


text space without PNG conversion


large space


medium space [not supported]
small space


tiny space (use for multiplication of factors)


no space (use for multi-letter variables)


small negative space


Automatic spacing may be broken in very long expressions (because they produce an overfull hbox in Template:TeX):



This can be remedied by putting a pair of braces { } around the whole expression:



Alignment with normal text flow

Due to the default CSS


should look good.
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.