Syntax#
\mboxm:T{a}text contentArgspec m:T — one mandatory argument. Reading argspecs
Common tasks#
How to insert a short text label in math#
Legacy box; \text is the LaTeX replacement and scales in subscripts.
How to write a subscript word that should not shrink#
Examples#
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Equivalent forms#
\hbox{#1}exactIn MathJax base, both map to BaseMethods.HBox with style 0.
See also#
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\mbox{a} | Positive · baseline | Pass | Fail | Pass |
\mbox a | Positive · bare[0] | Pass | Fail | Pass |
\mbox{a^2} | Negative · neg:T[0] | Pass | Fail | Fail |