Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
base | MathJax: Full | KaTeX: None | XeTeX: None |
textmacros | MathJax: Full | KaTeX: None | XeTeX: None |
Syntax#
\Rulem:L{1em}dimensionm:L{1em}dimensionm:L{1em}dimensionArgspec m:L m:L m:L — three mandatory arguments. Same argspec in base and textmacros. Reading argspecs
Examples#
Package variants#
| Package | Signature | Allowed mode | Notes |
|---|---|---|---|
base | m:L m:L m:L | math | Used to insert a solid rectangular rule with explicit width, height, and depth in mathematical material. |
textmacros | m:L m:L m:L | text | Used to insert a solid rectangular rule with explicit width, height, and depth in text fragments or legacy MathJax TeX input. |
In TeXForm#
TeXForm parses this entry as prefix syntax; the package determines its argument specification.
See also#
\Spacebase
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\Rule{1pt}{1pt}{1pt} | Positive · baseline | Pass | Fail | Fail |
\Rule 1pt{1pt}{1pt} | Positive · bare[0] | Pass | Fail | Fail |
\Rule{1pt}1pt{1pt} | Positive · bare[1] | Pass | Fail | Fail |
\Rule{1pt}{1pt}1pt | Positive · bare[2] | Pass | Fail | Fail |
\Rule{a}{1pt}{1pt} | Negative · neg:L[0] | Fail | Fail | Fail |
\Rule{1pt}{a}{1pt} | Negative · neg:L[1] | Fail | Fail | Fail |
\Rule{1pt}{1pt}{a} | Negative · neg:L[2] | Fail | Fail | Fail |
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\Rule{1pt}{1pt}{1pt} | Positive · baseline | Pass | Fail | Fail |
\Rule 1pt{1pt}{1pt} | Positive · bare[0] | Pass | Fail | Fail |
\Rule{1pt}1pt{1pt} | Positive · bare[1] | Pass | Fail | Fail |
\Rule{1pt}{1pt}1pt | Positive · bare[2] | Pass | Fail | Fail |
\Rule{a}{1pt}{1pt} | Negative · neg:L[0] | Fail | Fail | Fail |
\Rule{1pt}{a}{1pt} | Negative · neg:L[1] | Fail | Fail | Fail |
\Rule{1pt}{1pt}{a} | Negative · neg:L[2] | Fail | Fail | Fail |