1tbl(1)                           User Commands                          tbl(1)
2
3
4

NAME

6       tbl - format tables for nroff or troff
7

SYNOPSIS

9       tbl [-me] [-mm] [-ms] [filename]...
10
11

DESCRIPTION

13       tbl  is  a preprocessor for formatting tables for nroff(1) or troff(1).
14       The input filenames are copied to  the  standard  output,  except  that
15       lines  between .TS and .TE command lines are assumed to describe tables
16       and are reformatted.
17
18
19       If no arguments are given, tbl reads the standard input, so tbl may  be
20       used  as  a filter.  When tbl is used with eqn(1) or neqn, the tbl com‐
21       mand should be first, to minimize the volume  of  data  passed  through
22       pipes.
23

OPTIONS

25       -me     Copy the -me macro package to the front of the output file.
26
27
28       -mm     Copy the -mm macro package to the front of the output file.
29
30
31       -ms     Copy the -ms macro package to the front of the output file.
32
33

EXAMPLES

35       Example 1 Using tbl
36
37
38       As  an  example, letting `@' (at-sign) represent a TAB, which should be
39       typed as an actual TAB character in the input file
40
41
42         .TS
43         c s s
44         c c s
45         c c c
46         l n n.
47         Household Population
48         Town@Households
49         @Number@Size
50         Bedminster@789@3.26
51         Bernards Twp.@3087@3.74
52         Bernardsville@2018@3.30
53         Bound Brook@3425@3.04
54         Branchburg@1644@3.49
55         .TE
56
57
58
59
60       yields
61
62
63
64
65
66
67       Household Population
68       Town                   Households
69                              Number               Size
70       Bedminster             789                  3.26
71       Bernards Twp.          3087                 3.74
72       Bernardsville          2018                 3.30
73       Bound Brook            3425                 3.04
74       Branchburg             1644                 3.49
75
76

FILES

78       /usr/share/lib/tmac/e     -me macros
79
80
81       /usr/share/lib/tmac/m     -mm macros
82
83
84       /usr/share/lib/tmac/s     -ms macros
85
86

ATTRIBUTES

88       See attributes(5) for descriptions of the following attributes:
89
90
91
92
93       ┌─────────────────────────────┬─────────────────────────────┐
94       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
95       ├─────────────────────────────┼─────────────────────────────┤
96       │Availability                 │SUNWdoc                      │
97       └─────────────────────────────┴─────────────────────────────┘
98

SEE ALSO

100       eqn(1), nroff(1), troff(1), attributes(5)
101
102
103
104SunOS 5.11                        2 Aug 1994                            tbl(1)
Impressum