Renderer support
| Package | MathJax | KaTeX | XeTeX |
|---|---|---|---|
base | MathJax: Full | KaTeX: Full | XeTeX: Full |
textmacros | MathJax: Full | KaTeX: Full | XeTeX: Full |
Syntax#
\rlapm{a}math contentArgspec m — one mandatory argument. In base. Reading argspecs
\rlapm:T{a}text contentArgspec m:T — one mandatory argument. In textmacros. Reading argspecs
Examples#
Package variants#
| Package | Signature | Allowed mode | Notes |
|---|---|---|---|
base | m | math | 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. |
textmacros | m:T | text | Used 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#
\llapbase
Test cases#
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\rlap{a} | Positive · baseline | Pass | Pass | Pass |
\rlap a | Positive · bare[0] | Pass | Pass | Pass |
| Input | Case | MathJax | KaTeX | XeTeX |
|---|---|---|---|---|
\rlap{a} | Positive · baseline | Pass | Pass | Pass |
\rlap a | Positive · bare[0] | Pass | Pass | Pass |
\rlap{a^2} | Negative · neg:T[0] | Fail | Fail | Fail |