GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
TBL(1) FreeBSD General Commands Manual (heirloom documentation tools) TBL(1)

tbl
format tables for nroff or troff

tbl [-g | -T name] [-me | -mm | -ms] [file ...]

tbl is a preprocessor for formatting tables for nroff or troff. 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 reformatted. Arbitrary whitespace can be inserted between the dot and the commands .TS or .TE. Macros with these names are ignored by tbl if ‘'’ is used instead of ‘.’.

tbl normally uses line drawing commands with repeated underline and box rule characters (\l and \L). With the -g option, graphic drawing commands (\D) are used instead. (This should only be used when processing troff input.) Option -g overrides a previous -T name.
| |
With these options the respective macro packages are copied to the beginning of the output. Details are given in the reference manual.
name
Configure nroff input processing. name can be one of:
If tbl is used to process nroff input in an UTF-8 locale and -Tlocale is given lines are printed using Unicode box characters instead of underline and box rule characters. If the current locale does not support UTF-8 this Option has the same effect as -Tlp. Option -Tlocale overrides a previous -g.
Use ASCII characters (-, =, |, +) instead of underline and box rule characters. Overrides a previous -g.
The -TX option causes tbl not to produce fractional line motions.

, X
Expand column to make table as wide as the current line length. If there is more then one column with a x specifier these columns are expanded by the same amount. This feature had been a GNU tbl extension.

As an example, letting \t 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

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
Bridgewater 7897 3.81
Far Hills 240 3.19

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

troff(1), eqn(1)

M. E. Lesk, TBL.

March 2, 2015

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.