• Home
  • Random
  • Log in
  • Settings
  • About English Wikipedia @ Freddythechick
English Wikipedia @ Freddythechick

Template:Overset

  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]

This template is for oversetting symbols in HTML, compatible with {{math}}, as an alternative to \overset in LaTeX.

Contents

  • 1 Syntax
  • 2 Examples
    • 2.1 Without {{math}}
    • 2.2 With {{math}}
  • 3 See also

Syntax

The syntax is:

{{overset|over|base}}

where the first parameter over is overset centrally atop the second parameter base. over has a font size of 70% that of base.

An optional named parameter allows vertical offset adjustment:

{{overset|lh=offset|over|base}}

where offset is the elevation of the overset (centreline difference).

This template can behave poorly when combined directly with {{underset}}, with symbols not aligning; use {{overunderset}} in preference.

Examples

Without {{math}}

A vector formula inline sits on the baseline, →a + →b = →c, and another equation with all sorts of twiddles is similar, ~a + ∧n = •c.

Random characters and diacritics
~a, ↔Ԁ, →D, ←q, ··z, ·n, ^Ω, ^ε, —N, ∧H, ︿J, ﹇Φ
Offset control
~o, ~o, ~o, ~o
Overset letters
n + mA + = √6B
Rotating reference frame
⁠d→A′/dt⁠ = ⁠d→A/dt⁠ − →ω × →A
Vorticity
→ω = →∇ × →u
Acceleration
··r = ⁠d·r/dt⁠ = ⁠d2r/dt2⁠

With {{math}}

A vector formula in line sits on the baseline, →a + →b = →c, and another equation with all sorts of twiddles is similar, ~a + ∧n = •c.

Random characters and diacritics
~a, ↔Ԁ, →D, ←q, ··z, ·n, ^Ω, ^ε, —N, ∧H, ︿J, ﹇Φ
Offset control
~o, ~o, ~o, ~o
Overset letters
n + mA + = √6B
Rotating reference frame
⁠d→A′/dt⁠ = ⁠d→A/dt⁠ − →ω × →A
Vorticity
→ω = →∇ × →u
Acceleration
··r = ⁠d·r/dt⁠ = ⁠d2r/dt2⁠

See also

  • For a template specifically for vectors, see {{vec}}.
  • Wikipedia:Rendering math
  • Help:Displaying a formula § Reaction arrows
  • {{ruby}}
  • {{ruby line}}
  • v
  • t
  • e
Math templates
  • Functions
  • Numeral systems
Functions
  • elementary arithmetic
  • precision
  • val (value formatting)
  • percentage
Numeral systems
  • {{#invoke:BaseConvert|XtoY}}
  • binary
  • decimal2Base
  • hex2dec
  • hexadecimal
  • octal
  • quaternary
  • rn
  • roman
  • ternary
  • vigesimal
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)
  • bra-ket
  • braket
  • bra
  • ket
bra–ket notation
ceil, floor calculations :mw:Help:#expr; formatting indicators ⌈3.14⌉, ⌊3.14⌋ (no calculation performed)
fraction slant fractions 3⁄5 (not for maths/science articles; use standing or upright fractions {{sfrac}} instead)
intmath integral symbols
  • langle
  • rangle
  • angbr
  • angular brackets
  • ldelim
  • rdelim
  • multiline delimiters (2–5 lines inclusive)
    abs absolute values (paired vertical lines)
    math short text-based formulas
    mathcal [mathematical] calligraphic font; alternative to LaTeX \mathcal{...}
    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.
  • Boxes
  • Tags
  • Notices
  • BoxesTags
    • arithmetic operations
    • calculus
    • Infobox mathematical function
    • functions
    • metricate
    • undue precision
    • units attention
    • Category
    • Module:Math
    The above documentation is transcluded from Template:Overset/doc. (edit | history)
    Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
    Add categories to the /doc subpage. Subpages of this template.
    Retrieved from "https://enwiki.freddythechick.net/index.php?title=Template:Overset&oldid=6256285"
    Last edited on 24 November 2023, at 04:07

    Languages

        This page is not available in other languages.

        English Wikipedia @ Freddythechick
        • This page was last edited on 24 November 2023, at 04:07.
        • Content is available under Creative Commons Attribution-ShareAlike 4.0 unless otherwise noted.
        • About English Wikipedia @ Freddythechick
        • Desktop