Next: , Previous: , Up: Lengths   [Contents][Index]

14.7 \stretch



Produces a rubber length with zero natural length and number times \fill units of stretchability (see Lengths). The number can be positive or negative. This command is robust (see \protect).

It works for both vertical and horizontal spacing. In this horizontal example, LaTeX produces three tick marks, and the distance between the first and second is half again as long as the distance between the second and third.


In this vertical example, the ‘We dedicate …’ will have three times as much space under it as above it.

\newenvironment{dedication}{% in document preamble
  \vspace*{\stretch{1}} % stretchable space at top 
  \vspace{\stretch{3}}  % space at bot is 3x as at top
\begin{dedication}  % in document body
We dedicate this book to our wives.

Unofficial LaTeX2e reference manual