Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
color | MathJax: Full | KaTeX: Partial | XeTeX: Full |
Syntax#
\colorboxo:N[\cs]optional control sequencem:N{\cs}control sequencem:T{a}text contentArgspec o:N m:N m:T — one optional and two mandatory arguments. Reading argspecs
Examples#
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\colorbox{yellow}{a} | Positive · baseline | Pass | Pass | Pass |
\colorbox[gray]{0.85}{a} | Positive · vary:o[0] | Pass | Fail | Pass |
\colorbox{yellow}a | Positive · bare[2] | Pass | Pass | Pass |
\colorbox[\alpha]{0.85}{a} | Negative · neg:N[0] | Fail | Fail | Fail |
\colorbox{\alpha}{a} | Negative · neg:N[1] | Pass | Fail | Fail |
\colorbox{yellow}{a^2} | Negative · neg:T[2] | Pass | Fail | Fail |