From Wikipedia, the free encyclopedia
Usage
Use this template to embed stand-alone formulae in wikitext. The mathematical capabilities of this template are very limited; use tables with class="texhtml"
for formulae requiring non-linear layout.
Examples
Using the following code as the variable N
{{ sfrac | ∂² < var > f</ var >| ∂ < var > r</ var > ² }} + {{ sfrac | ∂ < var > f</ var >|< var > r</ var > ∂ < var > r</ var >}} + {{ sfrac | ∂² < var > f</ var >|< var > r</ var > ²∂² < var > θ </ var >}}
...in the {{ math }}
template, e.g. {{ math | N {{ = }} 0}}
, produces:
∂²f / ∂r ² + ∂f / r ∂r + ∂²f / r ²∂²θ = 0
...in the {{ bigmath }}
template, e.g. {{ bigmath | N {{ = }} 0}}
, produces:
∂²f / ∂r ² + ∂f / r ∂r + ∂²f / r ²∂²θ = 0
Use prefix "1=" to allow simple equals-signs
Italicize letters by double-tic (''f''
):
{{ bigmath | 1 = {{ sfrac | ∂² ''f'' | ∂ ''r'' ² }} + {{ sfrac | ∂ ''f'' | ''r'' ∂ ''r'' }} = 0}}
...produces:
∂² f / ∂r ² + ∂f / r ∂r = 0
Note that any extra spaces placed in the template will appear in the output. A long line can be split before any vertical-bar pipe ('|').
In contrast, there is <math display=block>\frac { \part ^ 2 f}{ \part r^ 2} + \frac { \part f}{ \part r} = 0</math>
which produces:
∂
2
f
∂
r
2
+
∂
f
∂
r
=
0.
{\displaystyle {\frac {\partial ^{2}f}{\partial r^{2}}}+{\frac {\partial f}{\partial r}}=0.}
This might be an alternative for more complex examples. If that's still too small, leave a comment on
https://phabricator.wikimedia.org/T135419 please.
See also
Math templates
Functions
Numeral systems
mvar individual italicized maths variables in normal text
overline
underline a line set above/below a sequence of characters
overarc an arc set above a sequence of characters
overset
underset arbitrary characters/diacritics set above/below one another
pars parentheses that can be resized ( ∑ )
sfrac "standing" or upright fractions 3 / 5 (use in maths/science articles instead of{{
fraction }}
)
sub
sup
su subscripts and superscripts
tmath Wrap
TeX in <math> tags
tombstone symbol indicating the
end of a proof
val measurement values, uncertainties and units
vec various overarrows, underarrows, etc.