A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.wikipedia.org/wiki/Template:Tmath below:

Template:Tmath - Wikipedia

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

Usage

{{tmath|expression}}

Examples

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:

Wrapping behavior

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 caution

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

Uniform compatible formatting guideline

When converting between <math>...</math> and {{tmath|...}}, first adjusting the expression to be compatible with both can help. A guideline for such formatting is:

See also

Math templates

Functions Numeral systems

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;
long tons and hundredweights to pounds and metric tons miles-chains miles and chains to kilometres linking "chains" decdeg degrees, minutes, and seconds to decimal degrees deg2dms decimal degrees to degrees, minutes, and seconds deg2hms decimal degrees to hour angle (in hours, minutes, and seconds) hms2deg hour angle (in hours, minutes, and seconds) to decimal degrees inflation calculate inflation of Consumer Price Index-related prices pop density population density in an area track gauge railway track gauges

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)
  • langle
  • rangle
  • angbr
  • angular brackets
  • bra-ket
  • braket
  • bra
  • ket
  • bra–ket notation
  • ldelim
  • rdelim
  • multiline delimiters (2–5 lines inclusive) ceil, floor calculations :mw:Help:#expr; formatting indicators 3.14, 3.14 (no calculation performed) pars parentheses that can be resized () fraction slant fractions 35 (not for maths/science articles; use standing or upright fractions {{sfrac}} instead) sfrac "standing" or upright fractions 3/5 (use in maths/science articles instead of{{fraction}}) intmath integral symbols
  • sub
  • sup
  • su
  • subscripts and superscripts
  • overset
  • underset
  • arbitrary characters/diacritics set above/below one another     tmath Wrap TeX in <math> tags

  • Boxes
  • Tags
  • Notices
  • Boxes Tags

    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