unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-5.10)
Page:
Section:
Apropos / Subsearch:
optional field

tbl(1)                           User Commands                          tbl(1)



NAME
       tbl - format tables for nroff or troff

SYNOPSIS
       tbl [-me] [-mm] [-ms]  [filename]...

DESCRIPTION
       tbl  is  a preprocessor for formatting tables for nroff(1) or troff(1).
       The input filenames are copied to  the  standard  output,  except  that
       lines  between .TS and .TE command lines are assumed to describe tables
       and are reformatted.

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

OPTIONS
       -me      Copy the -me macro package to the front of the output file.



       -mm      Copy the -mm macro package to the front of the output file.



       -ms      Copy the -ms macro package to the front of the output file.



EXAMPLES
       Example 1: Using tbl

       As  an  example, letting `@' (at-sign) represent a TAB, which should be
       typed as an actual TAB character in the input file

       .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

       yields


       tab();   cw(1.833333i)   sw(1.833333i)   sw(1.833333i)    cw(1.833333i)
       cw(1.833333i)  sw(1.833333i) lw(1.833333i) dw(1.833333i) dw(1.833333i).
       Household  Population   TownHouseholds   NumberSize   Bedminster7893.26
       Bernards Twp.30873.74 Bernardsville20183.30 Bound Brook34253.04 Branch-
       burg16443.49


FILES
       /usr/share/lib/tmac/e           -me macros



       /usr/share/lib/tmac/m           -mm macros



       /usr/share/lib/tmac/s           -ms macros



ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:


       tab()    allbox;    cw(2.750000i)|     cw(2.750000i)     lw(2.750000i)|
       lw(2.750000i).  ATTRIBUTE TYPEATTRIBUTE VALUE AvailabilitySUNWdoc


SEE ALSO
       eqn(1), nroff(1), troff(1), attributes(5)



SunOS 5.10                        2 Aug 1994                            tbl(1)