blob: e34179520bf8d52c021944efc9f5bfd89c135f37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
+-----------------------------------------------------------------------------+
| leader |
+-----------------------------------------------------------------------------+
Abbreviation: ã|noneã%
Parameters: ã|noneã%
ã|Description:ã%
The \leader markup is most often used in the \tableofcontentsformat in
conjunction with a page number. It produces dot leadering. You can also
use \leader in an \halign.
ã|Example:ã%
This example using leaders also illustrates the use of \indent in \halign.
The average annual costs of owning buildings in terms of
{\it taxes, insurance, maintenance,} and
{\it depreciation} are:
\halign{\indent\indent\hbox to 13pc {#\leader}&
\rt{#}\ \%\cr
Taxes&1.00\cr
Insurance&.75\cr
Maintenance repairs&2.00\cr
Depreciation&4.00\cr
Miscellaneous&.25\cr
\indent\bd Total&8.00\cr}
Will print:
+-----------------------------------------------------------------------------+
| |
| The average annual costs of owning buildings in terms of taxes, |
| insurance, maintenance, and depreciation are: |
| Taxes . .... .. .....1.00 % |
| Insurance ... . ... ..75 % |
| Maintenance repairs . 2.00 % |
| Depreciation. . . ... 4.00 % |
| Miscellaneous. . .... .25 % |
| Total ... . ... 8.00 % |
| |
+-----------------------------------------------------------------------------+
ã|Notes:ã%
Notice in the last line the the ampersand (&) acted as a font delimiter for
the \bd which printed "Total".
|