BSD 4_4_Lite2 development
[unix-history] / usr / src / contrib / groff-1.08 / tbl / tbl.man
CommitLineData
05368657
C
1.\" -*- nroff -*-
2.TH @G@TBL @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@"
3.SH NAME
4@g@tbl \- format tables for troff
5.SH SYNOPSIS
6.B @g@tbl
7[
8.B \-Cv
9]
10[
11.IR files \|.\|.\|.
12]
13.SH DESCRIPTION
14This manual page describes the GNU version of
15.BR tbl ,
16which is part of the groff document formatting system.
17.B tbl
18compiles descriptions of tables embedded within
19.B troff
20input files into commands that are understood by
21.BR troff .
22Normally, it should be invoked using the
23.B \-t
24option of
25.B groff.
26It is highly compatible with Unix
27.BR tbl .
28The output generated by GNU
29.B tbl
30cannot be processed with Unix
31.BR troff ;
32it must be processed with GNU
33.BR troff .
34If no files are given on the command line, the standard input
35will be read.
36A filename of
37.B \-
38will cause the standard input to be read.
39.SH OPTIONS
40.TP
41.B \-C
42Recognize
43.B .TS
44and
45.B .TE
46even when followed by a character other than space or newline.
47.TP
48.B \-v
49Print the version number.
50.SH USAGE
51Only the differences between GNU
52.B tbl
53and Unix
54.B tbl
55are described here.
56.LP
57Normally
58.B tbl
59attempts to prevent undesirable breaks in the table by using diversions.
60This can sometimes interact badly with macro packages' own use of diversions,
61when footnotes, for example, are used.
62The
63.B nokeep
64option tells
65.B tbl
66not to try and prevent breaks in this way.
67.LP
68The
69.B decimalpoint
70option specifies the character to be recognized as the decimal
71point character in place of the default period.
72It takes an argument in parentheses, which must be a single
73character, as for the
74.B tab
75option.
76.LP
77The
78.B f
79format modifier can be followed by an arbitrary length
80font name in parentheses.
81.LP
82There is a
83.B d
84format modifier which means that a vertically spanning entry
85should be aligned at the bottom of its range.
86.LP
87There is no limit on the number of columns in a table, nor any limit
88on the number of text blocks.
89All the lines of a table are considered in deciding column
90widths, not just the first 200.
91Table continuation
92.RB ( .T& )
93lines are not restricted to the first 200 lines.
94.LP
95Numeric and alphabetic items may appear in the same column.
96.LP
97Numeric and alphabetic items may span horizontally.
98.LP
99.B tbl
100uses register, string, macro and diversion names beginning with
101.BR 3 .
102When using
103.B tbl
104you should avoid using any names beginning with a
105.BR 3 .
106.SH BUGS
107You should use
108.BR .TS\ H / .TH
109in conjunction with a supporting macro package for
110.I all
111multi-page boxed tables.
112If there is no header that you wish to appear at the top of each page
113of the table, place the
114.B .TH
115line immediately after the format section.
116Do not enclose a multi-page table within keep/release macros,
117or divert it in any other way.
118.LP
119A text block within a table must be able to fit on one page.
120.LP
121The
122.B bp
123request cannot be used to force a page-break in a multi-page table.
124Instead, define
125.B BP
126as follows
127.IP
128.B .de BP
129.br
130.B .ie '\e\en(.z'' .bp \e\e$1
131.br
132.B .el \e!.BP \e\e$1
133.br
134.B ..
135.br
136.LP
137and use
138.B BP
139instead of
140.BR bp .
141.SH "SEE ALSO"
142.BR groff (@MAN1EXT@),
143.BR @g@troff (@MAN1EXT@)