Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
color | MathJax: Full | KaTeX: Partial | XeTeX: Full |
Syntax#
\fcolorboxo:N[\cs]optional control sequencem:N{\cs}control sequenceo:N[\cs]optional control sequencem:N{\cs}control sequencem:T{a}text contentArgspec o:N m:N o:N m:N m:T — two optional and three 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 |
|---|---|---|---|---|
\fcolorbox{red}{yellow}{a} | Positive · baseline | Pass | Pass | Pass |
\fcolorbox[rgb]{1,0,0}{1,1,0}{a} | Positive · vary:o[0] | Pass | Fail | Pass |
\fcolorbox{red}[gray]{0.85}{a} | Positive · vary:o[2] | Pass | Fail | Pass |
\fcolorbox[rgb]{1,0,0}[gray]{0.85}{a} | Positive · maximal | Pass | Fail | Pass |
\fcolorbox{red}{yellow}a | Positive · bare[4] | Pass | Pass | Pass |
\fcolorbox[\alpha]{1,0,0}{1,1,0}{a} | Negative · neg:N[0] | Fail | Fail | Fail |
\fcolorbox{\alpha}{yellow}{a} | Negative · neg:N[1] | Pass | Fail | Fail |
\fcolorbox{red}[\alpha]{0.85}{a} | Negative · neg:N[2] | Fail | Fail | Fail |
\fcolorbox{red}{\alpha}{a} | Negative · neg:N[3] | Pass | Fail | Fail |
\fcolorbox{red}{yellow}{a^2} | Negative · neg:T[4] | Pass | Fail | Fail |