Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
textmacros | MathJax: None | KaTeX: Full | XeTeX: Full |
Syntax#
\emphm:T{a}text contentArgspec m:T — one mandatory argument. Reading argspecs
Examples#
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Equivalent forms#
\textit{#1}approximate\textitapplies italics unconditionally, whereas\emphtoggles between italic and upright based on context.
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\emph{a} | Positive · baseline | Fail | Pass | Pass |
\emph a | Positive · bare[0] | Fail | Pass | Pass |
\emph{a^2} | Negative · neg:T[0] | Fail | Fail | Fail |