Layout and breaks\rlap

\rlapCommand

Used to place material flush-right in zero width so it overlaps neighboring math without contributing horizontal width, typically for manual annotations or adjusted symbol placement.

\rlap{ab}
Available in
base, textmacros
Kind
prefix
Allowed mode
math, text
Frequency
<0.01% of corpus formulasrank 176 of 263
Commonality
low
Tags
spacing
Renderer support
PackageMathJaxKaTeXXeTeX
baseMathJax: FullKaTeX: FullXeTeX: Full
textmacrosMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\rlapm{a}math content

Argspec m — one mandatory argument. In base. Reading argspecs

\rlapm:T{a}text content

Argspec m:T — one mandatory argument. In textmacros. Reading argspecs

Examples#

textmacros

\text{\rlap{a}}

Package variants#

PackageSignatureAllowed modeNotes
basemmathUsed to place material flush-right in zero width so it overlaps neighboring math without contributing horizontal width, typically for manual annotations or adjusted symbol placement.
textmacrosm:TtextUsed in text-mode material to place content in a zero-width box that protrudes to the right, so it overlaps surrounding text without taking horizontal space.

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

See also#

Test cases#

base
InputCaseMathJaxKaTeXXeTeX
\rlap{a}Positive · baselinePassPassPass
\rlap aPositive · bare[0]PassPassPass
textmacros
InputCaseMathJaxKaTeXXeTeX
\rlap{a}Positive · baselinePassPassPass
\rlap aPositive · bare[0]PassPassPass
\rlap{a^2}Negative · neg:T[0]FailFailFail
All 24 in Layout and breaks