Current File : //usr/man/man1/tbl.1
'\" te
.\" Copyright (c) 1994, Sun Microsystems, Inc.
.TH tbl 1 "2 Aug 1994" "SunOS 5.11" "User Commands"
.SH NAME
tbl \- format tables for nroff or troff
.SH SYNOPSIS
.LP
.nf
\fBtbl\fR [\fB-me\fR] [\fB-mm\fR] [\fB-ms\fR] [\fIfilename\fR]...
.fi

.SH DESCRIPTION
.sp
.LP
\fBtbl\fR is a preprocessor for formatting tables for \fBnroff\fR(1) or \fBtroff\fR(1). The input \fIfilename\fRs are copied to the standard output, except that lines between \fB\&.TS\fR and \fB\&.TE\fR command lines are assumed to describe tables and are reformatted.
.sp
.LP
If no arguments are given, \fBtbl\fR reads the standard input, so \fBtbl\fR may be used as a filter.  When \fBtbl\fR is used with \fBeqn\fR(1) or \fBneqn\fR, the \fBtbl\fR command should be first, to minimize the volume of data passed through pipes.
.SH OPTIONS
.sp
.ne 2
.mk
.na
\fB\fB-me\fR\fR
.ad
.RS 7n
.rt  
Copy the \fB-me\fR macro package to the front of the output file.
.RE

.sp
.ne 2
.mk
.na
\fB\fB-mm\fR\fR
.ad
.RS 7n
.rt  
Copy the \fB-mm\fR macro package to the front of the output file.
.RE

.sp
.ne 2
.mk
.na
\fB\fB-ms\fR\fR
.ad
.RS 7n
.rt  
Copy the \fB-ms\fR macro package to the front of the output file.
.RE

.SH EXAMPLES
.LP
\fBExample 1 \fRUsing \fBtbl\fR
.sp
.LP
As an example, letting `\fB@\fR' (at-sign) represent a \fBTAB,\fR which should be typed as an actual \fBTAB\fR character in the input file

.sp
.in +2
.nf
\&.TS
c s s
c c s
c c c
l n n.
Household Population
Town@Households
@Number@Size
Bedminster@789@3.26
Bernards Twp.@3087@3.74
Bernardsville@2018@3.30
Bound Brook@3425@3.04
Branchburg@1644@3.49
\&.TE
.fi
.in -2
.sp

.sp
.LP
yields

.sp

.sp
.TS
tab();
lw(1.83i) lw(1.83i) lw(1.83i) 
lw(1.83i) lw(1.83i) lw(1.83i) 
.
\fBHousehold Population\fR
\fBTown\fR\fBHouseholds\fR
\fBNumber\fR\fBSize\fR
\fBBedminster\fR\fB789\fR\fB3.26\fR
\fBBernards Twp.\fR\fB3087\fR\fB3.74\fR
\fBBernardsville\fR\fB2018\fR\fB3.30\fR
\fBBound Brook\fR\fB3425\fR\fB3.04\fR
\fBBranchburg\fR\fB1644\fR\fB3.49\fR
.TE

.SH FILES
.sp
.ne 2
.mk
.na
\fB\fB/usr/share/lib/tmac/e\fR\fR
.ad
.RS 25n
.rt  
\fB-me\fR macros
.RE

.sp
.ne 2
.mk
.na
\fB\fB/usr/share/lib/tmac/m\fR\fR
.ad
.RS 25n
.rt  
\fB-mm\fR macros
.RE

.sp
.ne 2
.mk
.na
\fB\fB/usr/share/lib/tmac/s\fR\fR
.ad
.RS 25n
.rt  
\fB-ms\fR macros
.RE

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
tab() box;
cw(2.75i) |cw(2.75i) 
lw(2.75i) |lw(2.75i) 
.
ATTRIBUTE TYPEATTRIBUTE VALUE
_
Availabilitytext/doctools
.TE

.SH SEE ALSO
.sp
.LP
\fBeqn\fR(1), \fBnroff\fR(1), \fBtroff\fR(1), \fBattributes\fR(5)