(printable view)

A complement to \smash, \llap, and \rlap

TUGboat Cover Alexander R. Perlis.
A complement to \smash, \llap, and \rlap.
TUGboat 22 (2001), 350–352.

In both plain TeX and LaTeX, most local alignment issues are addressed using \smash, \phantom, \vphantom, \hphantom, \llap, and \rlap. (LaTeX also provides \makebox. All these macros are reviewed in this article.) However, conspicuously missing is a horizontal version of \smash, which is necessary, for example, to eliminate the excessive whitespace surrounding some large operators. Another snag: whereas \smash and \phantom behave as expected in both horizontal mode and math mode, \llap, \rlap, and \makebox are not suited for use in math mode. This article introduces the macro \clap (simultaneously a centered version of \llap/\rlap and a horizontal version of \smash), and the three macros \mathllap, \mathrlap, and \mathclap (versions of \llap, \rlap, and \clap designed for math mode). Examples involving large operators, polynomial long division, and commutative diagrams are given.


Downloads:

Image of page 1 A complement to \smash, \llap, and \rlap.
Last change: 24 June 2003.
DVI30K
PDF140K
PS178K

Since authors of TUGboat articles retain copyright to their own work, I may post the article here.