.ds f. /usr/src/usr.bin/tbl/tbl.1tbl TBL
TBL(1) AerieBSD 1.0 Refernce Manual TBL(1)

NAME

tbl — format tables for nroff or troff

SYNOPSIS

tbl [files] ...

DESCRIPTION

tbl is a preprocessor for formatting tables for nroff() or troff(1). The input files are copied to the standard output, except for lines between \&.TS and \&.TE command lines, which are assumed to describe tables and are reformatted. Details are given in the .%T TBL reference manual.

EXAMPLE

As an example, letting \et represent a tab (which should be typed as a genuine tab) the input

\&.TS
c s s
c c s
c c c
l n n.
Household Population
Town\\tHouseholds
\\tNumber\\tSize
Bedminster\\t789\\t3.26
Bernards Twp.\\t3087\\t3.74
Bernardsville\\t2018\\t3.30
Bound Brook\\t3425\\t3.04
Branchburg\\t1644\\t3.49
Bridgewater\\t7897\\t3.81
Far Hills\\t240\\t3.19
\&.TE

yields .ne 10 .TS .if \n+(b.=1 .nr d. \n(.c-\n(c.-1 .de 35 .ps \n(.s .vs \n(.vu .in \n(.iu .if \n(.u .fi .if \n(.j .ad .if \n(.j=0 .na .. .nf .nr #~ 0 .if n .nr #~ 0.6n .ds #d .d .if \(ts\n(.z\(ts\(ts .ds #d nl .fc .nr 33 \n(.s .rm 80 81 82 .nr 80 0 .nr 38 \wTown .if \n(80<\n(38 .nr 80 \n(38 .nr 38 \wBedminster .if \n(80<\n(38 .nr 80 \n(38 .nr 38 \wBernards Twp. .if \n(80<\n(38 .nr 80 \n(38 .nr 38 \wBernardsville .if \n(80<\n(38 .nr 80 \n(38 .nr 38 \wBound Brook .if \n(80<\n(38 .nr 80 \n(38 .nr 38 \wBranchburg .if \n(80<\n(38 .nr 80 \n(38 .nr 38 \wBridgewater .if \n(80<\n(38 .nr 80 \n(38 .nr 38 \wFar Hills .if \n(80<\n(38 .nr 80 \n(38 .80 .rm 80 .nr 81 0 .nr 38 \wNumber .if \n(81<\n(38 .nr 81 \n(38 .nr 31 0 .nr 32 0 .nr 38 \w789 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w3087 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w2018 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w3425 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w1644 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w7897 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w240 .if \n(31<\n(38 .nr 31 \n(38 .81 .rm 81 .nr 61 \n(31 .nr 38 \n(61+\n(32 .if \n(38>\n(81 .nr 81 \n(38 .if \n(38<\n(81 .nr 61 +(\n(81-\n(38)/2 .nr 82 0 .nr 38 \wSize .if \n(82<\n(38 .nr 82 \n(38 .nr 31 0 .nr 32 0 .nr 38 \w3 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w.26 .if \n(32<\n(38 .nr 32 \n(38 .nr 38 \w3 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w.74 .if \n(32<\n(38 .nr 32 \n(38 .nr 38 \w3 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w.30 .if \n(32<\n(38 .nr 32 \n(38 .nr 38 \w3 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w.04 .if \n(32<\n(38 .nr 32 \n(38 .nr 38 \w3 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w.49 .if \n(32<\n(38 .nr 32 \n(38 .nr 38 \w3 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w.81 .if \n(32<\n(38 .nr 32 \n(38 .nr 38 \w3 .if \n(31<\n(38 .nr 31 \n(38 .nr 38 \w.19 .if \n(32<\n(38 .nr 32 \n(38 .82 .rm 82 .nr 62 \n(31 .nr 38 \n(62+\n(32 .if \n(38>\n(82 .nr 82 \n(38 .if \n(38<\n(82 .nr 62 +(\n(82-\n(38)/2 .nr 38 \wHousehold Population-\n(80-3n-\n(81-3n-\n(82 .if \n(38>0 .nr 38 \n(38/2 .if \n(38<0 .nr 38 0 .nr 61 +\n(38/2 .nr 81 +\n(38 .nr 62 +\n(38/2 .nr 82 +\n(38 .nr 38 \wHouseholds-\n(81-3n-\n(82 .if \n(38>0 .nr 38 \n(38/1 .if \n(38<0 .nr 38 0 .nr 62 +\n(38/2 .nr 82 +\n(38 .nr 38 1n .nr 79 0 .nr 40 \n(79+(0*\n(38) .nr 80 +\n(40 .nr 41 \n(80+(3*\n(38) .nr 81 +\n(41 .nr 61 +\n(41 .nr 42 \n(81+(3*\n(38) .nr 82 +\n(42 .nr 62 +\n(42 .nr TW \n(82 .if t .if \n(TW>\n(.li .tm Table at line 125 file /usr/src/usr.bin/tbl/tbl.1tbl is too wide - \n(TW units .fc   .nr #T 0-1 .nr #a 0-1 .eo .de T# .ds #d .d .if \(ts\n(.z\(ts\(ts .ds #d nl .mk ## .nr ## -1v .ls 1 .ls .. .ec .ta \n(82u .nr 31 \n(.f .nr 35 1m \&\h'|\n(40u'Household Population .ta \n(80u \n(82u .nr 31 \n(.f .nr 35 1m \&\h'|\n(40u'Town\h'|\n(41u'Households .ta \n(80u \n(81u \n(82u .nr 31 \n(.f .nr 35 1m \&\h'|\n(40u'\h'|\n(41u'Number\h'|\n(42u'Size .ta \n(80u \n(61u \n(62u \n(82u .nr 31 \n(.f .nr 35 1m \&\h'|\n(40u'Bedminster\h'|\n(41u'789\h'|\n(42u'3.26 .ta \n(80u \n(61u \n(62u \n(82u .nr 31 \n(.f .nr 35 1m \&\h'|\n(40u'Bernards Twp.\h'|\n(41u'3087\h'|\n(42u'3.74 .ta \n(80u \n(61u \n(62u \n(82u .nr 31 \n(.f .nr 35 1m \&\h'|\n(40u'Bernardsville\h'|\n(41u'2018\h'|\n(42u'3.30 .ta \n(80u \n(61u \n(62u \n(82u .nr 31 \n(.f .nr 35 1m \&\h'|\n(40u'Bound Brook\h'|\n(41u'3425\h'|\n(42u'3.04 .ta \n(80u \n(61u \n(62u \n(82u .nr 31 \n(.f .nr 35 1m \&\h'|\n(40u'Branchburg\h'|\n(41u'1644\h'|\n(42u'3.49 .ta \n(80u \n(61u \n(62u \n(82u .nr 31 \n(.f .nr 35 1m \&\h'|\n(40u'Bridgewater\h'|\n(41u'7897\h'|\n(42u'3.81 .ta \n(80u \n(61u \n(62u \n(82u .nr 31 \n(.f .nr 35 1m \&\h'|\n(40u'Far Hills\h'|\n(41u'240\h'|\n(42u'3.19 .fc .nr T. 1 .T# 1 .35 .TE .if \n-(b.=0 .nr c. \n(.c-\n(d.-15

If no arguments are given, tbl reads the standard input, so it may be used as a filter. When tbl is used with eqn() or neqn() the tbl command should be first, to minimize the volume of data passed through pipes.

SEE ALSO

troff(1), eqn(1) .Rs .%T TBL , .%A M. E. Lesk . .Re

HISTORY

The tbl command appeared in Version 7 AT&T UNIX.


AerieBSD 1.0 Reference Manual October 24 2009 TBL(1)