The third line shows that the heading should be centered in the box (c) and
should span across the next two cells (s s). The fourth line says that the heading of each cell
should be centered (c | c | c) and the fifth line indicates that the data cells that follow should
be left justified (l | l | l).
There must be a period at the end of the table definition line. In this example, it is after
the l | l | l. line. If the period is not there, tbl tries to interpret the text as part of
the table definition, fails, and stops processing the table; the table does not print.
The rest of the information in the table is the data. Note that the tab separators are colon characters
(:). End the table with a .TE macro. If the table were in a memo called memotbl.mm, the tbl
command could preprocess the memo and then send it to the printer using the following command:
$ groff -Tps -l -mm -t memotbl.mm
Data between .TS and .TE macros are interpreted as tables. Figure 21-8 displays the output from
this example.
CAUTION
568
Running Applications Part IV
FIGURE 21-8
Set how text is justified and put in columns with the use of the tbl command??™s .TS and .TE macros.
The PIC macros (.PS and .PE) enable you to create simple diagrams and flow charts to use in Groff.
PIC is really qualified to create only simple boxes, circles, ellipses, lines, arcs, splines, and some
text.
Pages:
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078