Physics: quantities\abs

\absCommand

Used for absolute values in the physics package, with a required brace-delimited expression and optional starred plain fences.

\abs{a}
Available in
physics
Kind
prefix
Allowed mode
math
Frequency
Not measured
Commonality
medium
Renderer support
PackageMathJaxKaTeXXeTeX
physicsMathJax: FullKaTeX: NoneXeTeX: Full
About the test scope

Syntax#

\abss*starm{}{a}math content

Argspec s m{} — one optional and one mandatory argument. Reading argspecs

Examples#

\abs*{a}

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

Expands to#

\abs{#1} \left| #1 \right|

With a leading star, the reparsed form uses plain fences | #1 |; with an adjacent sizing control sequence \big, \Big, \bigg, or \Bigg before the brace, it reparses to the corresponding sized fence form.

Equivalent forms#

  • \absolutevalue{#1}exact

    MathJax maps both names to the same parse method with the same parameters, including star and sized-prefix behavior.

See also#

Test cases#

physics
InputCaseMathJaxKaTeXXeTeX
\abs{a}Positive · baselinePassFailPass
\abs*{a}Positive · vary:s[0]PassFailPass
All 28 in Physics: quantities