Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
base | MathJax: Full | KaTeX: Full | XeTeX: Full |
textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full |
Syntax#
\textnormalm:T{a}text contentArgspec m:T — one mandatory argument. Same argspec in base and textmacros. Reading argspecs
Examples#
Package variants#
| Package | Signature | Allowed mode | Notes |
|---|---|---|---|
base | m:T | math | Resetting inserted text to the surrounding normal text style inside math expressions. |
textmacros | m:T | text | Used to switch a short span of text to the normal/roman text style inside MathJax text mode. |
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Expands to (textmacros)#
\textnormal{#1} {\rm #1}MathJax textmacros implements this identically to \textrm and \textup, which is a simplification of full LaTeX semantics.
Equivalent forms#
\text{#1}exactIn MathJax base, both map directly to BaseMethods.HBox with no extra style or font arguments.
\textrm{#1}exactIn MathJax textmacros, both commands map to {
\rm#1}.\textup{#1}exactIn MathJax textmacros, both commands map to {
\rm#1}.
See also#
\bmodbase\bmqtyphysics\boxedams\brabraket\Brabraket\flatfracphysics\hboxbase\iffbase\imathbbbboldx\imathbfbbbboldx\impliedbyams\impliesams\itextbbbboldx\itextbfbbbboldx\jmathbbbboldx\jmathbfbbbboldx\jtextbbbboldx\jtextbfbbbboldx\ketbraket\Ketbraket\ketbrabraket\Ketbrabraket\LaTeXbase\mathstrutbase\matrixdeterminantphysics\mboxbase\mdetphysics\modbase\pmbbase\pmodbase\pmqtyphysics\Pmqtyphysics\podbase\qcphysics\qcommaphysics\Residuephysics\sbmqtyphysics\skewbase\smdetphysics\spmqtyphysics\sPmqtyphysics\stackbinbase\stackrelbase\substackams\svmqtyphysics\TeXbase\textbase\textbfbase\textitbase\textrmbase\textsfbase\textttbase\textupbase\varinjlimams\varliminfams\varlimsupams\varprojlimams\vmqtyphysics\zeromatrixphysics\zmatphysics
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\textnormal{a} | Positive · baseline | Pass | Pass | Pass |
\textnormal a | Positive · bare[0] | Pass | Pass | Pass |
\textnormal{a^2} | Negative · neg:T[0] | Pass | Fail | Fail |
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\textnormal{a} | Positive · baseline | Pass | Pass | Pass |
\textnormal a | Positive · bare[0] | Pass | Pass | Pass |
\textnormal{a^2} | Negative · neg:T[0] | Fail | Fail | Fail |