### TeX: Reference and Examples


:fam0  3
:tbi0  +224, 225--226, @357, @374
:tbi1  224
:bi    1
:use
:ld Leaders are used to fill space with a box or a rule. Normally,
copies of a box will not completely fill a specified space. So, in
boxes in the space. The first is |\cleaders|. It packs boxes tightly
together and centers them in the specified space. The second is
|\xleaders|. It breaks the leftover space into equal pieces and puts
one piece between each box and on the left and right ends of the
boxes. The result is a {\it sbsb\ \char144\ sbs} pattern where {\it s}
stands for one of the pieces of space and {\it b} for one of the boxes
\tr{224}.
:lne
:exam \def\sampletocA#1#2%
{
\setbox0=\hbox to 25pt{\vrule height 0.4pt
depth 0pt width 25pt}
\setbox1=\hbox to 25pt{\vrule\hfil #2}
\vbox
{
\hsize=224pt
}
}
\sampletocA{\noindent}{100}
\sampletocA{Strangers and Brothers}{116}
\sampletocA{The Age of Reason}{178}
:examc The |\vrule| on line 9 prevents the |\leaders| for page 100
from beginning at the left margin.

If the three |\vtop|'s made by the three |\sampletocA| calls appear
too close together, they are. One way to avoid this problem is to use
struts \tr{82}.   

Description:

Example:

     1. \def\sampletocA#1#2%
2. {
3.     \setbox0=\hbox to 25pt{\vrule height 0.4pt
4.                    depth 0pt width 25pt}
5.     \setbox1=\hbox to 25pt{\vrule\hfil #2}
6.     \vbox
7.     {
8.          \hsize=224pt
12.     }
13. }
14. \sampletocA{\noindent}{100}
15. \sampletocA{Strangers and Brothers}{116}
16. \sampletocA{The Age of Reason}{178}

Produces: Not yet implemented.

• The \vrule on line 9 prevents the \leaders for page 100 from beginning at the left margin.
• If the three \vtop's made by the three \sampletocA calls appear too close together, they are. One way to avoid this problem is to use struts [82].
TeXbook References: 224. Also: 224, 225-226, 357, 374

\def\CScs{cleaders}%
\def\CSfamily{Box}%
\def\CStbrb{224, 225--226, 357, 374}%
\def\CStbra{224}%
\def\CStype{Command}%
\setbox\CSuse=\hbox{\\}%
\setbox\CSldesc=\vbox{\dropcap{-5pt}{L}EADERS are used to fill space
with a box or a rule. Normally, copies of a box will not completely
two additional ways to put boxes in the space. The first is
|\cleaders|. It packs boxes tightly together and centers them in the
specified space. The second is |\xleaders|. It breaks the leftover
space into equal pieces and puts one piece between each box and on the
left and right ends of the boxes. The result is a {\it sbsb\ \char144\
sbs} pattern where {\it s} stands for one of the pieces of space and
{\it b} for one of the boxes \tr{224}.}%
the |\leaders| for page 100 from beginning at the left margin.

If the three |\vtop|'s made by the three |\sampletocA| calls appear
too close together, they are. One way to avoid this problem is to use
struts \tr{82}.\par\endgroup}%
\setbox\CSptval=\hbox{}%
\setbox\CSexample=\vbox{\autolinenumber

\beginverbatim
\def\sampletocA#1#2%
{
\setbox0=\hbox to 25pt{\vrule height 0.4pt
depth 0pt width 25pt}
\setbox1=\hbox to 25pt{\vrule\hfil #2}
\vbox
{
\hsize=224pt
}
}
\sampletocA{\noindent}{100}
\sampletocA{Strangers and Brothers}{116}
\sampletocA{The Age of Reason}{178}
\endverbatim
}%
\setbox\CSproduces=\vbox{\def\sampletocA#1#2%
{
\setbox0=\hbox to 25pt{\vrule height 0.4pt
depth 0pt width 25pt}
\setbox1=\hbox to 25pt{\vrule\hfil #2}
\vbox
{
\hsize=224pt