Layout and breaks\mmlToken

\mmlTokenCommand

Advanced MathJax-specific construction of raw MathML token elements, typically inside macro substitutions or specialized extensions that need to emit a particular token node with optional attributes.

\mmlToken{mi}{x}
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
Not measured
Commonality
low
Tags
mathjax-extension
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: NoneXeTeX: None
textmacrosMathJax: FullKaTeX: NoneXeTeX: None
About the test scope

Syntax#

\mmlTokenm:N{\cs}control sequenceo:K[k=v]optional key–value listm:T{a}text content

Argspec m:N o:K m:T — one optional and two mandatory arguments. Same argspec in base and textmacros. Reading argspecs

Examples#

base

\mmlToken{mi}[mathvariant='bold']{x}

textmacros

\text{\mmlToken{mi}{x}}

textmacros

\text{\mmlToken{mi}[mathvariant=bold]{x}}

Package variants#

PackageSignatureAllowed modeNotes
basem:N o:K m:TmathAdvanced MathJax-specific construction of raw MathML token elements, typically inside macro substitutions or specialized extensions that need to emit a particular token node with optional attributes.
textmacrosm:N o:K m:TtextUsed in MathJax-specific macros or text-mode TeX input to construct an explicit MathML token element such as mi or mo, optionally with MathML attributes.

In TeXForm#

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

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\mmlToken{mi}{x}Positive · ctx:mathml-tokenPassFailFail
textmacros
InputCaseMathJaxKaTeXXeTeX
\mmlToken{mi}{x}Positive · ctx:text-mathml-tokenPassFailFail
All 24 in Layout and breaks