Layout and breaks\Rule

\RuleCommand

Used to insert a solid rectangular rule with explicit width, height, and depth in mathematical material.

\Rule{1em} 2pt {3pt}
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
Not measured
Commonality
low
Tags
spacing, mathjax-extension
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: NoneXeTeX: None
textmacrosMathJax: FullKaTeX: NoneXeTeX: None
About the test scope

Syntax#

\Rulem:L{1em}dimensionm:L{1em}dimensionm:L{1em}dimension

Argspec m:L m:L m:L — three mandatory arguments. Same argspec in base and textmacros. Reading argspecs

Examples#

textmacros

\text{\Rule{1em}{.5em}{.25em}}

textmacros

\text{\Rule 1em .5em .25em}

Package variants#

PackageSignatureAllowed modeNotes
basem:L m:L m:LmathUsed to insert a solid rectangular rule with explicit width, height, and depth in mathematical material.
textmacrosm:L m:L m:LtextUsed 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#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\Rule{1pt}{1pt}{1pt}Positive · baselinePassFailFail
\Rule 1pt{1pt}{1pt}Positive · bare[0]PassFailFail
\Rule{1pt}1pt{1pt}Positive · bare[1]PassFailFail
\Rule{1pt}{1pt}1ptPositive · bare[2]PassFailFail
\Rule{a}{1pt}{1pt}Negative · neg:L[0]FailFailFail
\Rule{1pt}{a}{1pt}Negative · neg:L[1]FailFailFail
\Rule{1pt}{1pt}{a}Negative · neg:L[2]FailFailFail
textmacros
InputCaseMathJaxKaTeXXeTeX
\Rule{1pt}{1pt}{1pt}Positive · baselinePassFailFail
\Rule 1pt{1pt}{1pt}Positive · bare[0]PassFailFail
\Rule{1pt}1pt{1pt}Positive · bare[1]PassFailFail
\Rule{1pt}{1pt}1ptPositive · bare[2]PassFailFail
\Rule{a}{1pt}{1pt}Negative · neg:L[0]FailFailFail
\Rule{1pt}{a}{1pt}Negative · neg:L[1]FailFailFail
\Rule{1pt}{1pt}{a}Negative · neg:L[2]FailFailFail
All 24 in Layout and breaks