Physics: annotations\qqtext

\qqtextCommand

Inserts custom inline text between math expressions using the physics package's quick-quad spacing helpers.

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

Syntax#

\qqtexts*starm:T{a}text content

Argspec s m:T — one optional and one mandatory argument. Reading argspecs

Examples#

\qqtext*{if}

In TeXForm#

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

Expands to#

\qqtext{#1} \quad\text{#1}\quad

If the command is starred, the initial \quad is omitted, yielding \text{#1}\quad .

Equivalent forms#

  • \qqtext{#1} ≈ \quad\text{#1}\quadexact
  • \qqtext*{#1} ≈ \text{#1}\quadexact

See also#

Test cases#

physics
InputCaseMathJaxKaTeXXeTeX
\qqtext{a}Positive · baselinePassFailPass
\qqtext*{a}Positive · vary:s[0]PassFailPass
\qqtext aPositive · bare[1]PassFailPass
\qqtext{a^2}Negative · neg:T[1]PassFailFail
All 24 in Physics: annotations