From Wikipedia, the free encyclopedia
This template wraps a math expression written in TeX code between <math>...</math>
tags using the {{#tag:}}
parser function magic word.
It further helps to avoid wrapping points at either end of expression that normally occurs with <math>...</math>
, so avoiding being split from punctuation as would be normal for text.
Neither display="inline"
nor TeX math mode \textstyle
is set by this template. Where inline formatting is desired, use {{tmath|\textstyle ...}}
.
{{tmath|expression}}
The template is intended to be used for short LaTeX mathematical expressions like variables, and is useful for limiting awkward wrapping points. It is more cumbersome to use for equations or other expressions containing special signs that must be escaped or replaced, like the equal sign =
with {{=}}
and the vertical pipe |
with \vert
, \mid
or {{!}}
, and \|
with \Vert
:
See the difference? The punctuation stays. The block of math itself is still not amenable to line break, that we can't fix.
Use braces { and } with cautionApart from using the {{(}}
and {{)}}
templates to get {
and }
, you may use the braces {
and }
as long as {
is not preceded or followed by another {
, and }
is not preceded or followed by another }
, e.g.
When converting between <math>...</math>
and {{tmath|...}}
, first adjusting the expression to be compatible with both can help. A guideline for such formatting is:
{{=}}
, {{!}}
, {{(}}
, etc.|
by \vert
or \mid
, and \|
by \Vert
.{{
by { {
and }}
by } }
}
will adjoin the closing braces of the {{tmath|...}}
display="inline"
parameter with a leading \textstyle
.<math>...</math>
and a template {{tmath|1=...}}
. Note the use of the parameter number 1=
to avoid a problem with an equals sign in the expression. Any text, such as punctuation, that does not naturally form part of the expression should be moved out of the {{tmath|...}}
.Math templates
Conversions
convert many units (see: list) cvt abbreviated {{convert}} convinfobox {{convert}} for infoboxes bbl to t barrels of oil to tonnes long ton long hundredweights, quarters and pounds to kilograms;Notation and
formatting bigmath bigger font to match TeX \displaystyle (standalone formulas only) math short text-based formulas mathcal [mathematical] calligraphic font; alternative to LaTeX \mathcal{...} tombstone symbol indicating the end of a proof mvar individual italicized maths variables in normal text val measurement values, uncertainties and units a line set above/below a sequence of characters vec various overarrows, underarrows, etc. abs absolute values (paired vertical lines){{sfrac}}
instead) sfrac "standing" or upright fractions 3/5 (use in maths/science articles instead of{{fraction}}
) intmath integral symbols
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4