BSD 3 development
[unix-history] / usr / doc / tbl
CommitLineData
2074ceed
BJ
1.if \nM=0 .RP
2.TM 76-1274-5 39199 39199-11
3.if \n(tm>0 .ND June 11, 1976*
4.TL
5Tbl \(em A Program to Format Tables
6.AU "MH 2C-569" 6377
7M. E. Lesk
8.AI
9.MH
10.if \n(tm>0 .FS
11.if \n(tm>0 * This printing revised through August 5, 1977
12.if \n(tm>0 .FE
13.AB
14.I
15Tbl
16.R
17is a document formatting preprocessor for
18.I
19troff
20.R
21or
22.I
23nroff
24.R
25which makes
26even
27fairly complex tables easy to specify and enter.
28It is available on
29the
30.SM
31PDP-11 UNIX*
32.NL
33system
34.FS
35* UNIX is a Trademark/Service Mark of the Bell System
36.FE
37and on Honeywell 6000
38.SM
39GCOS.
40.NL
41Tables are made up of columns which may be independently centered, right-adjusted,
42left-adjusted, or aligned by decimal points.
43Headings may be placed over single columns or groups of columns.
44A table entry may contain equations, or may consist of several rows of text.
45Horizontal or vertical lines may be drawn as desired
46in the table,
47and any table or element may be enclosed in a box.
48For example:
49.in 0
50.ll
51.sp .5
52.TS
53center, box;
54c s s s
55c s s s
56c |c |c |c
57c |c |c |c
58l |n |n |n.
591970 Federal Budget Transfers
60\s-2(in billions of dollars)\s0
61=
62State Taxes Money Net
63\^ collected spent \^
64_
65New York 22.91 21.35 \-1.56
66New Jersey 8.33 6.96 \-1.37
67Connecticut 4.12 3.10 \-1.02
68Maine 0.74 0.67 \-0.07
69California 22.29 22.42 +0.13
70New Mexico 0.70 1.49 +0.79
71Georgia 3.30 4.28 +0.98
72Mississippi 1.15 2.32 +1.17
73Texas 9.33 11.13 +1.80
74.TE
75.AE
76.OK
77Phototypesetting
78Documentation
79.CS 16 0 16 0 12 6
80.tr #
81.de e1
82.nr \\$1 \\$2
83..
84.de e2
85.if !\\n(\\$1=\\n% .tm Error in example \\$1: referred to page \\n(\\$1, is on page \\n%
86.rr \\$1
87..
88.di qq
89.EQ
90delim $$
91.EN
92.di
93.rm qq
94.SH
95Introduction.
96.PP
97.I
98Tbl
99.R
100turns a simple description
101of a table into a
102.I
103troff
104.R
105or
106.I
107nroff
108.R
109[1]
110program (list of commands) that prints the table.
111.I
112Tbl
113.R
114may be used on the
115\s-2PDP-\s011 \s-2UNIX\s0
116.NL
117[2] system and on the Honeywell 6000
118.SM
119GCOS
120.NL
121system.
122It
123attempts to isolate a portion of a job that it can
124successfully
125handle and leave the remainder for other programs.
126Thus
127.I
128tbl
129.R
130may be used with the equation formatting
131program
132.I
133eqn
134.R
135[3]
136or various
137layout macro packages
138[4,5,6],
139but does not duplicate their functions.
140.PP
141This memorandum is divided into two parts.
142First we give the rules for preparing
143.I
144tbl
145.R
146input; then some examples are shown.
147The description of rules is precise but technical, and
148the beginning user may prefer to read the examples first,
149as they show some common table arrangements.
150A section explaining how to invoke
151.I
152tbl
153.R
154precedes the examples.
155To avoid repetition, henceforth read
156.I
157troff
158.R
159as
160.I
161``troff
162.R
163or
164.I
165nroff.''
166.R
167.ds . \^\s14.\s0
168.PP
169The input to
170.I
171tbl
172.R
173is text for a document, with tables preceded by a ``\*.TS''
174(table start)
175command and followed by a ``\*.TE''
176(table end) command.
177.I
178Tbl
179.R
180processes the tables, generating
181.I
182troff
183.R
184formatting commands,
185and leaves the remainder of the text unchanged.
186The ``\*.TS'' and ``\*.TE''
187lines are copied, too, so that
188.I
189troff
190.R
191page layout macros
192(such as the memo formatting macros [4]\|) can use these lines
193to delimit and place tables as they see fit.
194In particular, any arguments on the ``\*.TS'' or ``\*.TE''
195lines
196are copied but otherwise ignored, and may be used by document layout
197macro commands.
198.PP
199The format of the input is as follows:
200.DS
201\&text
202\&\*.TS
203\&\fItable\fR
204\&\*.TE
205\&text
206\&\*.TS
207\&\fItable\fR
208\&\*.TE
209\&text
210\&\&\*. \*. \*.
211.DE
212where the format of each table is as follows:
213.DS
214\&\*.TS
215\fIoptions \fB;\fR
216\fIformat \*.
217data
218\&\fR\*.TE
219.DE
220Each table is independent, and must contain formatting
221information
222followed by the data to be entered in the table.
223The formatting information, which describes the
224individual columns and rows of the table, may be preceded
225by a few options that affect the entire table.
226A detailed description of tables is given in the next section.
227.sp .5
228.SH
229Input commands.
230.PP
231As indicated above, a table contains, first, global options,
232then a format section describing the layout of the table
233entries, and then the data to be printed. The format and data
234are always required, but not the options.
235The various parts of the table are entered as follows:
236.sp .5v
237.IP 1)
238O\s-2PTIONS.\s0
239There may be a single line of options
240affecting the whole table.
241If present, this line must follow the \*.TS line immediately
242and must contain a list of option names
243separated by spaces, tabs, or commas, and must be terminated by a semicolon.
244The allowable options are:
245.RS
246.IP \fB##center\fR 13
247\(em center the table (default is left-adjust);
248.IP \fB##expand\fR
249\(em make the table as wide as the current line length;
250.IP \fB##box\fR
251\(em enclose the table in a box;
252.IP \fB##allbox\fR
253\(em enclose each item in the table in a box;
254.IP \fB##doublebox\fR
255\(em enclose the table in two boxes;
256.IP \fB##tab#\fR(\fIx\fR\^)
257\(em use \fIx\fR instead of tab to separate data items.
258.IP \fB##linesize#(\fIn\fR\^)
259\(em set lines or rules (e.g. from \fBbox\fR\^) in \fIn\fR point type;
260.IP \fB##delim#(\fIxy\fR\^)
261\(em recognize \fIx\fR and \fIy\fR as the \fIeqn\fR delimiters.
262.RE
263.LP
264.ns
265.IP
266The
267.I
268tbl
269.R
270program
271tries to keep boxed tables on one page by issuing
272appropriate ``need'' (\fI\*.ne\fR\|) commands.
273These requests are calculated from the number of lines in the tables,
274and if there are spacing commands embedded in the input, these requests may be inaccurate;
275use normal
276.I
277troff
278.R
279procedures, such as keep-release macros, in that case.
280The user who must have a multi-page boxed table
281should use macros designed for this purpose,
282as explained below under `Usage.'
283.sp .5v
284.IP 2) 5
285F\s-2ORMAT\s0.
286The format section of the table specifies the layout
287of the columns.
288Each line in this section corresponds to one line
289of the table (except that the last line corresponds to all following
290lines up to the next \*.T&, if any \(em see below),
291and each line contains a key-letter for each column
292of the table.
293It is good practice to separate the key letters for each
294column by spaces or tabs.
295Each key-letter is one of the following:
296.RS
297.cs B 25
298.IP "##\fBL\fR#or#\fBl\fR" 10
299to indicate a left-adjusted column entry;
300.IP "##\fBR\fR#or#\fBr\fR
301to indicate a right-adjusted column entry;
302.IP "##\fBC\fR#or#\fBc\fR
303to indicate a centered column entry;
304.IP "##\fBN\fR#or#\fBn\fR
305to indicate a numerical column entry, to be aligned with other
306numerical entries so that the units digits of numbers line up;
307.IP "##\fBA\fR#or#\fBa\fR
308to indicate an alphabetic subcolumn;
309all corresponding entries are aligned on the left, and positioned
310so that the widest is centered within the column (see
311example on page 12);
312.IP "##\fBS\fR#or#\fBs\fR
313to indicate a spanned heading, i.e. to indicate that the
314entry from the previous column continues across this
315column
316(not allowed for the first column, obviously); or
317.IP ##\fB\s+4\v'6p'^\v'-6p'\s0\fR
318to indicate a vertically spanned heading, i.e. to indicate that
319the entry from the previous row continues down through this row.
320(Not allowed for the first row of the table, obviously).
321.cs B
322.RE
323.LP
324.ns
325.IP
326When numerical alignment is specified, a location for the decimal
327point is sought. The rightmost dot (\*.)
328adjacent to a digit is used as a decimal point; if there is no
329dot adjoining a digit, the rightmost digit is used as a units digit;
330if no alignment is indicated, the item is centered in the column.
331However, the special non-printing character string \e& may be used
332to override unconditionally dots
333and digits, or to align alphabetic data;
334this string lines up where a dot normally would,
335and then disappears from the final output.
336In the example below, the items shown at the left will be
337aligned (in a numerical column) as shown on the right:
338.KS
339.TS
340center;
341l6 n.
34213 13
3434\*.2 4\&\*.2
34426\*.4\*.12 26\*.4\&\*.12
345abc abc
346abc\e& abc\&
34743\e&3\*.22 43\&3\*.22
348749\*.12 749\&\*.12
349.TE
350.KE
351.IP
352\fBNote:\fR
353If numerical data are used in the same column with wider
354.B L
355or
356.B r
357type table entries, the widest \fInumber\fR is centered relative
358to the wider
359.B L
360or
361.B r
362items (\fBL\fR is used instead of \fBl\fR for readability;
363they have the same meaning as key-letters).
364Alignment within the numerical items is preserved.
365This is similar to the behavior of
366.B a
367type data, as explained above.
368However,
369alphabetic subcolumns (requested by the
370.B
371a
372.R
373key-letter)
374are always slightly indented relative to
375.B
376L
377.R
378items;
379if necessary, the column width is increased to force this.
380This is not true for \fBn\fR type entries.
381.IP
382.bd I 3
383.ft I
384Warning:
385.ft 1
386.bd I
387the \fBn\fR and \fBa\fR items should not be used in
388the same column.
389.IP
390For readability, the key-letters describing each column should
391be separated by spaces.
392The end of the format section is indicated by a period.
393The layout of the key-letters in the format section resembles
394the layout of the actual data in the table.
395Thus a simple format might appear as:
396.br
397.ne 3
398.in +2
399.nf
400c s s
401l n n \*.
402.fi
403.in -2
404which specifies a table of three columns. The first line
405of the table contains a heading centered across all three
406columns; each remaining line contains a left-adjusted item
407in the first column followed by two columns of numerical
408data.
409A sample table in this format might be:
410.br
411.ne 6v
412.br
413.in +4
414.TS
415c s s
416l n n.
417Overall title
418Item-a 34.22 9.1
419Item-b 12.65 .02
420Items: c,d,e 23 5.8
421Total 69.87 14.92
422.TE
423.in -4
424There are some additional features of the key-letter system:
425.RS
426.IP "\fI##Horizontal lines#\fR"
427\(em A key-letter may be replaced by `\(ul'
428(underscore) to indicate
429a horizontal line in place of the corresponding column entry,
430or by `=' to indicate a double horizontal line.
431If an adjacent column contains a horizontal line, or if
432there are vertical lines adjoining this column,
433this horizontal line is extended to meet the nearby lines.
434If any data entry is provided for this column, it is ignored and
435a warning message is printed.
436.QQ do the D(x) and M(x) to draw a line of 'x' characters.
437.QQ D will draw divided lines, M merged lines. thus - is simplh M(\(ru)
438.IP "\fI##Vertical lines#\fR"
439\(em A vertical bar may be placed between column key-letters. This will
440cause a vertical line between the corresponding columns of the table.
441A vertical bar to the left of the first key-letter
442or to the right of the last one produces a line at the
443edge of the table.
444If two vertical bars appear between key-letters, a double vertical
445line is drawn.
446.IP "\fI##Space between columns#\fR"
447\(em A number may follow the key-letter. This indicates the amount of separation
448between this column and the next column.
449The number normally specifies the separation in
450.I
451ens
452.R
453(one
454en
455.ne 3
456is about the width of the letter `n').*
457.FS
458* More precisely, an en is a number of points (1 point = 1/72 inch)
459equal to half the current type size.
460.FE
461If the ``expand'' option is used, then these numbers are multiplied
462by a constant such that the table is as wide as the current line length.
463The default column separation number is 3.
464If the separation is changed the worst case (largest space requested) governs.
465.IP "\fI##Vertical spanning#\fR"
466\(em Normally, vertically spanned items extending over several
467rows of the table are centered in their vertical range.
468If a key-letter is followed by
469.B
470t
471.R
472or
473.B T ,
474any corresponding vertically spanned item
475will begin at the top line of its range.
476.IP "\fI##Font changes#\fR"
477\(em A key-letter may be followed by a string containing a font
478name or number
479preceded by the letter
480.B f
481or
482.B F .
483This indicates that the corresponding column should be in a different
484font from the default font (usually Roman).
485All font names are one or two letters; a one-letter font
486name should be separated from whatever follows by a space or tab.
487The single letters
488\f3B\f1, \f3b\f1, \f3I\f1,
489and
490\f3i\f1
491are shorter synonyms for
492.B f\^B
493and
494.B f\^I .
495Font change commands given with the table entries
496override these specifications.
497.IP "\fI##Point size changes#\fR"
498\(em A key-letter may be followed by the letter
499.B p
500or
501.B P
502and a number to indicate the point size of the corresponding table entries.
503The number may be a signed digit, in which case it is taken as
504an increment or decrement
505from the current point size.
506If both a point size and a column separation value are given,
507one or more blanks must separate them.
508.IP "\fI##Vertical spacing changes#\fR"
509\(em A key-letter may be followed by the letter
510.B v
511or
512.B V
513and a number to indicate the vertical line spacing to be used
514within a multi-line corresponding table entry.
515The number may be a signed digit, in which case it is taken as an increment
516or decrement from the current vertical spacing.
517A column separation value must be separated by blanks or some other
518specification from a vertical spacing request.
519This request has no effect unless the corresponding table entry
520is a text block (see below).
521.IP "\fI##Column width indication#\fR"
522\(em A key-letter may be followed by the letter
523.B w
524or
525.B W
526and a width value in parentheses.
527This width is used as a minimum column width.
528If the largest element in the column is not as wide as the width value
529given after the \fBw\fR, the largest element is assumed to be that wide.
530If the largest element in the column is wider than the specified value,
531its width is used.
532The width is also used as a default line
533length for included text blocks.
534Normal
535.I
536troff
537.R
538units can be used to scale the width value; if none are used,
539the default is
540ens.
541If the width specification is a unitless integer
542the parentheses may be omitted.
543If the width value is changed in a column, the \fIlast\fR one given controls.
544.IP "\fI##Equal width columns#\fR"
545\(em A key-letter may be followed by the letter
546.B e
547or
548.B E
549to indicate equal width columns.
550All columns whose
551key-letters are followed by \fBe\fR or \fBE\fR are made the same width.
552This permits the user to get a group of regularly spaced
553columns.
554.IP "##\fBNote:\fR#"
555The order of the above features is immaterial; they need not be separated
556by spaces, except as indicated above to avoid ambiguities involving
557point size and font changes. Thus
558a numerical column entry in italic font and 12 point type with a minimum
559width of 2.5 inches and separated by 6 ens from the next column could
560be specified as
561.in +5
562np12w(2\*.5i)f\|I 6
563.in -5
564.IP "\fI##Alternative notation#\fR"
565\(em Instead of listing the format of successive lines of a table
566on consecutive lines of the format section,
567successive line formats may be given on the same line, separated
568by commas, so that the format for the example
569above might have been written:
570.in +5
571c s s, l n n \*.
572.in -5
573.IP "\fI##Default#\fR"
574\(em Column descriptors missing from the end
575of a format line are assumed to be \fBL\fR.
576The longest line in the format section, however,
577defines the number of columns
578in the table;
579extra columns in the data are ignored silently.
580.QQ put in the diagnostics.
581.RE
582.sp .5v
583.IP 3)
584D\s-2ATA\s0.
585The data for the table are typed after the format.
586Normally, each table line is typed as one line of data.
587Very long input lines can be broken: any line whose last character is
588\e is combined with the following line (and the \e vanishes).
589The data for different columns (the table entries) are separated by tabs,
590or by whatever character has been specified in the option
591.I tabs
592option.
593There are a few special cases:
594.RS
595.IP "\fI##Troff commands within tables\fR#"
596\(em An input line
597beginning with a `\*.' followed by anything
598but a number is assumed to be a command to
599.I
600troff
601.R
602and is passed through unchanged, retaining its position in the table.
603So, for example, space within a table may be produced by ``\*.sp''
604commands
605in the data.
606.IP "\fI##Full width horizontal lines\fR#"
607\(em An input
608.I line
609containing only the character $fat "\(ul" $ (underscore)
610or \fB=\fR (equal sign) is taken to be a single or double
611line, respectively, extending the
612full width
613of the
614.I table.
615.IP "\fI##Single column horizontal lines\fR#"
616\(em An input table
617.I entry
618containing only the character $fat "\(ul" $ or \fB=\fR
619is taken to be a single or double line extending
620the full width of the
621.I column.
622Such lines are extended to meet horizontal or vertical
623lines adjoining this column.
624To obtain these characters explicitly in a column, either
625precede them by \e& or
626follow them by a space before the usual tab or newline.
627.IP "\fI##Short horizontal lines\fR#"
628\(em An input table
629.I entry
630containing only the string $fat "\e\(ul"$
631is taken to be a single line as wide as the contents of
632the column. It is not extended to meet
633adjoining lines.
634.IP "\fI##Vertically spanned items\fR#"
635\(em An input table entry containing only the
636character string
637.ft B
638\e\s+2\v'2p'^\v'-2p'\s0
639.ft R
640indicates that the table entry immediately
641above spans downward over this row. It is equivalent
642to a table format key-letter of `^'.
643.IP "\fI##Text blocks\fR#"
644\(em In order to include a block of text as a table entry,
645precede it by $fat roman "T{" $ and follow
646it by $fat roman "T}" $.
647Thus the sequence
648.in +2
649.nf
650 \*. \*. \*. $fat roman "T{"$
651.I
652 block of
653 text
654.R
655 $fat roman "T}"$ \*. \*. \*.
656.in -2
657.fi
658is the way to enter, as a single entry in the table, something
659that cannot conveniently be typed as a simple string between
660tabs.
661Note that the $fat roman "T}" $ end delimiter must begin a line;
662additional columns of data may follow after a tab on the same line.
663See the example on page 10 for an illustration of included text blocks
664.e1 aa 10
665in a table.
666If more than twenty or thirty text blocks are used in a table,
667various limits in the
668.I
669troff
670.R
671program are likely to be exceeded,
672producing diagnostics such as `too many string/macro names' or `too many
673number registers.'
674.IP
675Text blocks are pulled out from the table, processed separately by
676.I
677troff,
678.R
679and replaced in the table as a solid block. If no line length
680is specified in the
681.I
682block of text
683.R
684itself, or in the table format,
685the default is to use
686$ L times C / (N+1) $
687where
688.I
689L
690.R
691is the current line length,
692.I
693C
694.R
695is the number of table columns spanned by the text,
696and
697.I
698N
699.R
700is the total number of columns in the table.
701The other parameters (point size, font, etc.) used in setting the
702.I
703block of text
704.R
705are those in effect at the beginning of the table (including
706the effect of the ``\*.TS'' macro)
707and any table format specifications of size, spacing and font,
708using the \fBp\fR, \fBv\fR and \fBf\fR modifiers to the column key-letters.
709Commands within the text block itself are also recognized, of course.
710However,
711.I troff
712commands within the table data but not within the text block
713do not affect that block.
714.br
715.di RR
716. this is going down a rathole
717.EQ
718delim off
719.EN
720.di
721.rm RR
722.IP "##\fBWarnings:\fR#"
723\(em Although any number of lines may be present in a table,
724only the first 200 lines are used in calculating
725the widths of the various columns. A multi-page table,
726of course, may be arranged as several single-page tables
727if this proves to be a problem.
728Other difficulties with formatting may arise because,
729in the calculation of column widths all table entries
730are assumed to be in the font and size being used when
731the ``\*.TS'' command was encountered, except for font and size changes
732indicated (a) in the table format section and (b)
733within the table data (as in the entry
734\es+3\efIdata\efP\es0\|).
735Therefore, although arbitrary
736.I
737troff
738.R
739requests may be sprinkled in a table, care must be taken
740to avoid confusing the width calculations;
741use requests such as `\*.ps' with care.
742.tr ##
743.sp .5v
744.RE
745.IP 4)
746A\s-2DDITIONAL COMMAND LINES\s0.
747If the format of a table must be changed after
748many similar lines, as with sub-headings or summarizations, the ``\*.T&''
749(table continue)
750command can be used
751to change column parameters.
752The outline of such a table input is:
753.DS
754.ft R
755\&\*.TS
756.ft I
757\&options \fB;\fP
758\&format \*.
759\&data
760\&\*. \*. \*.
761.ft R
762\&\*.T&
763.ft I
764\&format \*.
765\&data
766.ft R
767\&\*.T&
768.ft I
769\&format \*.
770\&data
771.ft R
772\&\*.TE
773.DE
774as in the examples on pages 10 and 12.
775.e1 ab 10
776.e1 ac 12
777Using this procedure, each table line can be close to its corresponding format line.
778.bd I 3
779.br
780.sp 3p
781.ft I
782Warning:
783.ft R
784.bd I
785it is not possible to change the number of columns, the space
786between columns, the global options such as \fIbox,\fR
787or the selection of columns to be made equal width.
788.SH
789Usage.
790.PP
791On
792\s-2UNIX\s0,
793.I
794tbl
795.R
796can be run on a simple table with the command
797.DS
798tbl input-file | troff
799.DE
800but
801for more complicated use, where there are several input files,
802and they contain equations and \fIms\fR memorandum layout commands as well
803as tables, the normal command would be
804.DS
805tbl file-1 file-2 \*. \*. \*. | eqn | troff \-ms
806.DE
807and, of course, the usual options may be used on the
808.I
809troff
810.R
811and
812.I
813eqn
814.R
815commands. The usage for
816.I
817nroff
818.R
819is similar
820to that for
821.I
822troff,
823.R
824but only
825\s-2TELETYPE\s+2\(rg Model 37 and
826Diablo-mechanism (\s-2DASI\s0 or \s-2GSI\s0)
827terminals can print boxed tables directly.
828.PP
829For the convenience of users employing line printers without
830adequate driving tables or post-filters, there is a special
831.I \-TX
832command line option to
833.I tbl
834which produces output that does not have fractional line
835motions in it.
836The only other command line options recognized by
837.I tbl
838are
839.I \-ms
840and
841.I \-mm
842which are turned into
843commands to fetch the corresponding macro files;
844usually it is more convenient to place these arguments
845on the
846.I troff
847part of the command line,
848but they are accepted by
849.I tbl
850as well.
851.PP
852Note that when
853.I
854eqn
855.R
856and
857.I
858tbl
859.R
860are used together on the same file
861.I
862tbl
863.R
864should be used first.
865If there are no equations within tables,
866either order works, but it is usually faster
867to run
868.I
869tbl
870.R
871first, since
872.I
873eqn
874.R
875normally produces a larger expansion of the input
876than
877.I
878tbl.
879.R
880However, if there are equations within tables
881(using the
882.I
883delim
884.R
885mechanism in
886.I
887eqn\fR),
888.I
889tbl
890.R
891must be first or the output will be scrambled.
892Users must also beware of using equations in
893\fBn\fR-style columns; this is nearly always wrong,
894since
895.I
896tbl
897.R
898attempts to split numerical format items into two parts and this
899is not possible with equations.
900The user can defend against this by giving the
901.I delim(xx)
902table option;
903this prevents splitting of numerical columns within the delimiters.
904For example, if the
905.I eqn
906delimiters
907are
908.I $$ ,
909giving
910.I delim($$)
911a numerical column such as
912``1245 $+- 16$''
913will be divided after 1245, not after 16.
914.PP
915.I
916Tbl
917.R
918limits tables to twenty columns; however,
919use of more than 16 numerical columns may fail because of
920limits in
921.I
922troff,
923.R
924producing the `too many number registers' message.
925\fITroff\fR number registers used by
926.I
927tbl
928.R
929must be avoided by the user within tables;
930these include two-digit names from 31 to 99,
931and names of the forms
932#\fIx\fR, \fIx\fR+, \fIx\fR\ |, \v'3p'^\v'-3p'\fIx\fR, and \fIx\fR\(mi,
933where
934\fIx\fR is any lower case letter.
935The names
936##, #\(mi, and #^ are also used in certain circumstances.
937To conserve number register names, the
938\fBn\fR
939and
940\fBa\fR
941formats share a register;
942hence the restriction above that they may not be used in the same column.
943.PP
944For aid in writing layout macros,
945.I
946tbl
947.R
948defines a number register TW which is
949the table width; it is defined by the time that the ``\*.TE'' macro
950is invoked and may be used in the expansion of that macro.
951More importantly, to assist in laying out multi-page boxed tables
952the macro T# is defined to produce the bottom lines and side lines of a boxed
953table, and then invoked at its end. By use of this macro
954in the page footer a multi-page table can be boxed.
955In particular, the
956.I
957ms
958.R
959macros can be used to print a multi-page boxed table with a repeated heading
960by giving the
961argument H to the ``\*.TS'' macro.
962If the table start macro is written
963.br
964 \&\*.TS H
965.br
966a line of the form
967.br
968 \&\*.TH
969.br
970must be given in the table after any table heading (or at the start if none).
971Material up to the ``\*.TH'' is placed at the top of each page of table;
972the remaining lines in the table are placed on several pages as required.
973Note that this is
974.I
975not
976.R
977a feature of
978.I
979tbl,
980.R
981but of the \fIms\fR layout macros.
982.SH
983Examples.
984.PP
985Here are some examples illustrating features of
986.I
987tbl.
988.R
989.ds T \|\h'.4n'\v'-.2n'\s6\zT\s0\s10\v'.2n'\h'-.4n'\(ci\|\s0
990The symbol \*T in the input represents a tab character.
991.de IN
992.po \\n(POu
993.sp |\\n(.hu
994.sp
995.ne \\$1
996.mk
997.B
998Input:
999.R
1000.sp .5
1001.nf
1002.in +3n
1003..
1004.de OU
1005.br
1006.in -3n
1007.rt
1008.po +3i
1009.B
1010Output:
1011.R
1012.sp .5
1013..
1014.rm TS
1015.rm TE
1016.nf
1017.IN 2.5i
1018\&\*.TS
1019\&box;
1020\&c c c
1021\&l l l\*.
1022\&Language\*TAuthors\*TRuns on
1023\&
1024\&Fortran\*TMany\*TAlmost anything
1025\&PL/1\*TIBM\*T360/370
1026\&C\*TBTL\*T11/45,H6000,370
1027\&BLISS\*TCarnegie-Mellon\*TPDP-10,11
1028\&IDS\*THoneywell\*TH6000
1029\&Pascal\*TStanford\*T370
1030\&\*.TE
1031.OU
1032.TS
1033box;
1034c c c
1035l l l.
1036Language Authors Runs on
1037
1038Fortran Many Almost anything
1039PL/1 IBM 360/370
1040C BTL 11/45,H6000,370
1041BLISS Carnegie-Mellon PDP-10,11
1042IDS Honeywell H6000
1043Pascal Stanford 370
1044.TE
1045.IN 2.8i
1046\&\*.TS
1047\&allbox;
1048\&c s s
1049\&c c c
1050\&n n n\*.
1051\&AT&T Common Stock
1052\&Year\*TPrice\*TDividend
1053\&1971\*T41-54\*T$2\*.60
1054\&2\*T41-54\*T2\*.70
1055\&3\*T46-55\*T2\*.87
1056\&4\*T40-53\*T3\*.24
1057\&5\*T45-52\*T3\*.40
1058\&6\*T51-59\*T\*.95*
1059\&\*.TE
1060\&* (first quarter only)
1061.OU
1062.TS
1063allbox;
1064c s s
1065c c c
1066n n n.
1067AT&T Common Stock
1068Year Price Dividend
10691971 41-54 $2.60
10702 41-54 2.70
10713 46-55 2.87
10724 40-53 3.24
10735 45-52 3.40
10746 51-59 .95*
1075.TE
1076* (first quarter only)
1077.IN 4i
1078\&\*.TS
1079\&box;
1080\&c s s
1081\&c | c | c
1082\&l | l | n\*.
1083\&Major New York Bridges
1084\&=
1085\&Bridge\*TDesigner\*TLength
1086\&\(ul
1087\&Brooklyn\*TJ\*. A\*. Roebling\*T1595
1088\&Manhattan\*TG\*. Lindenthal\*T1470
1089\&Williamsburg\*TL\*. L\*. Buck\*T1600
1090\&\(ul
1091\&Queensborough\*TPalmer &\*T1182
1092\&\*T Hornbostel
1093\&\(ul
1094\&\*T\*T1380
1095\&Triborough\*TO\*. H\*. Ammann\*T\(ul
1096\&\*T\*T383
1097\&\(ul
1098\&Bronx Whitestone\*TO\*. H\*. Ammann\*T2300
1099\&Throgs Neck\*TO\*. H\*. Ammann\*T1800
1100\&\(ul
1101\&George Washington\*TO\*. H\*. Ammann\*T3500
1102\&\*.TE
1103.OU
1104.TS
1105box;
1106c s s
1107c | c | c
1108l | l | n.
1109Major New York Bridges
1110=
1111Bridge Designer Length
1112_
1113Brooklyn J. A. Roebling 1595
1114Manhattan G. Lindenthal 1470
1115Williamsburg L. L. Buck 1600
1116_
1117Queensborough Palmer & 1182
1118 Hornbostel
1119_
1120 1380
1121Triborough O. H. Ammann _
1122 383
1123_
1124Bronx Whitestone O. H. Ammann 2300
1125Throgs Neck O. H. Ammann 1800
1126_
1127George Washington O. H. Ammann 3500
1128.TE
1129.IN 3.0i
1130\&\*.TS
1131\&c c
1132\&np-2 | n | \*.
1133\&\*TStack
1134\&\*T\(ul
1135\&1\*T46
1136\&\*T\(ul
1137\&2\*T23
1138\&\*T\(ul
1139\&3\*T15
1140\&\*T\(ul
1141\&4\*T6\*.5
1142\&\*T\(ul
1143\&5\*T2\*.1
1144\&\*T\(ul
1145\&\*.TE
1146.OU
1147.TS
1148c c
1149np-2 | n |.
1150 Stack
1151 _
11521 46
1153 _
11542 23
1155 _
11563 15
1157 _
11584 6.5
1159 _
11605 2.1
1161 _
1162.TE
1163.IN 2.5i
1164\&\*.TS
1165\&box;
1166\&L L L
1167\&L L \(ul
1168\&L L | LB
1169\&L L \(ul
1170\&L L L\*.
1171\&january\*Tfebruary\*Tmarch
1172\&april\*Tmay
1173\&june\*Tjuly\*TMonths
1174\&august\*Tseptember
1175\&october\*Tnovember\*Tdecember
1176\&\*.TE
1177.OU
1178.TS
1179box;
1180L L L
1181L L _
1182L L | LB
1183L L _
1184L L L.
1185january february march
1186april may
1187june july Months
1188august september
1189october november december
1190.TE
1191.IN 5.0i
1192.e2 ab
1193\&\*.TS
1194\&box;
1195\&cfB s s s\*.
1196\&Composition of Foods
1197\&\(ul
1198\&\*.T&
1199\&c | c s s
1200\&c | c s s
1201\&c | c | c | c\*.
1202\&Food\*TPercent by Weight
1203\&\e^\*T\(ul
1204\&\e^\*TProtein\*TFat\*TCarbo-
1205\&\e^\*T\e^\*T\e^\*Thydrate
1206\&\(ul
1207\&\*.T&
1208\&l | n | n | n\*.
1209\&Apples\*T\*.4\*T\*.5\*T13\*.0
1210\&Halibut\*T18\*.4\*T5\*.2\*T\*. \*. \*.
1211\&Lima beans\*T7\*.5\*T\*.8\*T22\*.0
1212\&Milk\*T3\*.3\*T4\*.0\*T5\*.0
1213\&Mushrooms\*T3\*.5\*T\*.4\*T6\*.0
1214\&Rye bread\*T9\*.0\*T\*.6\*T52\*.7
1215\&\*.TE
1216.OU
1217.TS
1218box;
1219cfB s s s.
1220Composition of Foods
1221_
1222.T&
1223c |c s s
1224c |c s s
1225c |c |c |c.
1226Food Percent by Weight
1227\^ _
1228\^ Protein Fat Carbo-
1229\^ \^ \^ hydrate
1230_
1231.T&
1232l |n |n |n.
1233Apples .4 .5 13.0
1234Halibut 18.4 5.2 ...
1235Lima beans 7.5 .8 22.0
1236Milk 3.3 4.0 5.0
1237Mushrooms 3.5 .4 6.0
1238Rye bread 9.0 .6 52.7
1239.TE
1240.IN 3.7i
1241.e2 aa
1242\&\*.TS
1243\&allbox;
1244\&cfI s s
1245\&c cw(1i) cw(1i)
1246\&lp9 lp9 lp9\*.
1247\&New York Area Rocks
1248\&Era\*TFormation\*TAge (years)
1249\&Precambrian\*TReading Prong\*T>1 billion
1250\&Paleozoic\*TManhattan Prong\*T400 million
1251\&Mesozoic\*TT{
1252\&\*.na
1253\&Newark Basin, incl\*.
1254\&Stockton, Lockatong, and Brunswick
1255\&formations; also Watchungs
1256\&and Palisades\*.
1257\&T}\*T200 million
1258\&Cenozoic\*TCoastal Plain\*TT{
1259\&On Long Island 30,000 years;
1260\&Cretaceous sediments redeposited
1261\&by recent glaciation\*.
1262\&\*.ad
1263\&T}
1264\&\*.TE
1265.OU
1266.fi
1267.TS
1268allbox;
1269cfI s s
1270c cw(1i) cw(1i)
1271lp9 lp9 lp9.
1272New York Area Rocks
1273Era Formation Age (years)
1274Precambrian Reading Prong >1 billion
1275Paleozoic Manhattan Prong 400 million
1276Mesozoic T{
1277.na
1278Newark Basin, incl.
1279Stockton, Lockatong, and Brunswick
1280formations; also Watchungs
1281and Palisades.
1282T} 200 million
1283Cenozoic Coastal Plain T{
1284On Long Island 30,000 years;
1285Cretaceous sediments redeposited
1286by recent glaciation.
1287.ad
1288T}
1289.TE
1290.IN 2i
1291\&\*.EQ
1292\&delim $$
1293\&\*.EN
1294.sp
1295\&\*. \*. \*.
1296.sp
1297\&\*.TS
1298\&doublebox;
1299\&c c
1300\&l l\*.
1301\&Name\*TDefinition
1302\&\*.sp
1303\&\*.vs +2p
1304\&Gamma\*T$GAMMA (z) = int sub 0 sup inf t sup {z-1} e sup -t dt$
1305\&Sine\*T$sin (x) = 1 over 2i ( e sup ix - e sup -ix )$
1306\&Error\*T$ roman erf (z) = 2 over sqrt pi int sub 0 sup z e sup {-t sup 2} dt$
1307\&Bessel\*T$ J sub 0 (z) = 1 over pi int sub 0 sup pi cos ( z sin theta ) d theta $
1308\&Zeta\*T$ zeta (s) = sum from k=1 to inf k sup -s ~~( Re~s > 1)$
1309\&\*.vs -2p
1310\&\*.TE
1311.di qq
1312.EQ
1313delim $$
1314.EN
1315.di
1316.rm qq
1317.rs
1318.OU
1319.TS
1320doublebox;
1321c c
1322l l.
1323Name Definition
1324.sp
1325.vs +2p
1326Gamma $GAMMA (z) = int sub 0 sup inf t sup {z-1} e sup -t dt$
1327Sine $sin (x) = 1 over 2i ( e sup ix - e sup -ix )$
1328Error $ roman erf (z) = 2 over sqrt pi int sub 0 sup z e sup {-t sup 2} dt$
1329Bessel $ J sub 0 (z) = 1 over pi int sub 0 sup pi cos ( z sin theta ) d theta $
1330Zeta $ zeta (s) = sum from k=1 to inf k sup -s ~~( Re~s > 1)$
1331.vs -2p
1332.TE
1333.ds : \|:\|
1334.IN 2i
1335\&\*.TS
1336\&box, tab(\*:);
1337\&cb s s s s
1338\&cp-2 s s s s
1339\&c |\|| c | c | c | c
1340\&c |\|| c | c | c | c
1341\&r2 |\|| n2 | n2 | n2 | n\*.
1342\&Readability of Text
1343\&Line Width and Leading for 10-Point Type
1344\&=
1345\&Line\*:Set\*:1-Point\*:2-Point\*:4-Point
1346\&Width\*:Solid\*:Leading\*:Leading\*:Leading
1347\&_
1348\&9 Pica\*:\e-9\*.3\*:\e-6\*.0\*:\e-5\*.3\*:\e-7\*.1
1349\&14 Pica\*:\e-4\*.5\*:\e-0\*.6\*:\e-0\*.3\*:\e-1\*.7
1350\&19 Pica\*:\e-5\*.0\*:\e-5\*.1\*: 0\*.0\*:\e-2\*.0
1351\&31 Pica\*:\e-3\*.7\*:\e-3\*.8\*:\e-2\*.4\*:\e-3\*.6
1352\&43 Pica\*:\e-9\*.1\*:\e-9\*.0\*:\e-5\*.9\*:\e-8\*.8
1353\&\*.TE
1354.OU
1355.TS
1356box, tab(:);
1357cb s s s s
1358cp-2 s s s s
1359c ||c |c |c |c
1360c ||c |c |c |c
1361r2 ||n2 |n2 |n2 |n.
1362Readability of Text
1363Line Width and Leading for 10-Point Type
1364=
1365Line:Set:1-Point:2-Point:4-Point
1366Width:Solid:Leading:Leading:Leading
1367_
13689 Pica:\-9.3:\-6.0:\-5.3:\-7.1
136914 Pica:\-4.5:\-0.6:\-0.3:\-1.7
137019 Pica:\-5.0:\-5.1: 0.0:\-2.0
137131 Pica:\-3.7:\-3.8:\-2.4:\-3.6
137243 Pica:\-9.1:\-9.0:\-5.9:\-8.8
1373.TE
1374.IN 7i
1375.e2 ac
1376\&\*.TS
1377\&c s
1378\&cip-2 s
1379\&l n
1380\&a n\*.
1381\&Some London Transport Statistics
1382\&(Year 1964)
1383\&Railway route miles\*T244
1384\&Tube\*T66
1385\&Sub-surface\*T22
1386\&Surface\*T156
1387\&\*.sp \*.5
1388\&\*.T&
1389\&l r
1390\&a r\*.
1391\&Passenger traffic \e- railway
1392\&Journeys\*T674 million
1393\&Average length\*T4\*.55 miles
1394\&Passenger miles\*T3,066 million
1395\&\*.T&
1396\&l r
1397\&a r\*.
1398\&Passenger traffic \e- road
1399\&Journeys\*T2,252 million
1400\&Average length\*T2\*.26 miles
1401\&Passenger miles\*T5,094 million
1402\&\*.T&
1403\&l n
1404\&a n\*.
1405\&\*.sp \*.5
1406\&Vehicles\*T12,521
1407\&Railway motor cars\*T2,905
1408\&Railway trailer cars\*T1,269
1409\&Total railway\*T4,174
1410\&Omnibuses\*T8,347
1411\&\*.T&
1412\&l n
1413\&a n\*.
1414\&\*.sp \*.5
1415\&Staff\*T73,739
1416\&Administrative, etc\*.\*T5,582
1417\&Civil engineering\*T5,134
1418\&Electrical eng\*.\*T1,714
1419\&Mech\*. eng\*. \e- railway\*T4,310
1420\&Mech\*. eng\*. \e- road\*T9,152
1421\&Railway operations\*T8,930
1422\&Road operations\*T35,946
1423\&Other\*T2,971
1424\&\*.TE
1425.OU
1426.TS
1427c s
1428cip-2 s
1429l n
1430a n.
1431Some London Transport Statistics
1432(Year 1964)
1433Railway route miles 244
1434Tube 66
1435Sub-surface 22
1436Surface 156
1437.sp .5
1438.T&
1439l r
1440a r.
1441Passenger traffic \(mi railway
1442Journeys 674 million
1443Average length 4.55 miles
1444Passenger miles 3,066 million
1445.T&
1446l r
1447a r.
1448Passenger traffic \(mi road
1449Journeys 2,252 million
1450Average length 2.26 miles
1451Passenger miles 5,094 million
1452.T&
1453l n
1454a n.
1455.sp .5
1456Vehicles 12,521
1457Railway motor cars 2,905
1458Railway trailer cars 1,269
1459Total railway 4,174
1460Omnibuses 8,347
1461.T&
1462l n
1463a n.
1464.sp .5
1465Staff 73,739
1466Administrative, etc. 5,582
1467Civil engineering 5,134
1468Electrical eng. 1,714
1469Mech. eng. \(mi railway 4,310
1470Mech. eng. \(mi road 9,152
1471Railway operations 8,930
1472Road operations 35,946
1473Other 2,971
1474.TE
1475.po \n(POu
1476.sp |\n(.hu
1477.de IN
1478.sp
1479.ne 1i
1480.B
1481Input:
1482.R
1483.sp .5
1484.in +3n
1485.nf
1486..
1487.de OU
1488.sp
1489.in -3n
1490.ne 1i
1491.B
1492Output:
1493.R
1494.sp .5
1495..
1496.ns
1497.EQ
1498delim off
1499.EN
1500.IN
1501\&\*.ps 8
1502\&\*.vs 10p
1503\&\*.TS
1504center box;
1505\&c s s
1506\&ci s s
1507\&c c c
1508\&lB l n\*.
1509\&New Jersey Representatives
1510\&(Democrats)
1511\&\*.sp \*.5
1512\&Name\*TOffice address\*TPhone
1513\&\*.sp \*.5
1514\&James J\*. Florio\*T23 S\*. White Horse Pike, Somerdale 08083\*T609-627-8222
1515\&William J\*. Hughes\*T2920 Atlantic Ave\*., Atlantic City 08401\*T609-345-4844
1516\&James J\*. Howard\*T801 Bangs Ave\*., Asbury Park 07712\*T201-774-1600
1517\&Frank Thompson, Jr\*.\*T10 Rutgers Pl\*., Trenton 08618\*T609-599-1619
1518\&Andrew Maguire\*T115 W\*. Passaic St\*., Rochelle Park 07662\*T201-843-0240
1519\&Robert A\*. Roe\*TU\*.S\*.P\*.O\*., 194 Ward St\*., Paterson 07510\*T201-523-5152
1520\&Henry Helstoski\*T666 Paterson Ave\*., East Rutherford 07073\*T201-939-9090
1521\&Peter W\*. Rodino, Jr\*.\*TSuite 1435A, 970 Broad St\*., Newark 07102\*T201-645-3213
1522\&Joseph G\*. Minish\*T308 Main St\*., Orange 07050\*T201-645-6363
1523\&Helen S\*. Meyner\*T32 Bridge St\*., Lambertville 08530\*T609-397-1830
1524\&Dominick V\*. Daniels\*T895 Bergen Ave\*., Jersey City 07306\*T201-659-7700
1525\&Edward J\*. Patten\*TNatl\*. Bank Bldg\*., Perth Amboy 08861\*T201-826-4610
1526\&\*.sp \*.5
1527\&\*.T&
1528\&ci s s
1529\&lB l n\*.
1530\&(Republicans)
1531\&\*.sp \*.5v
1532\&Millicent Fenwick\*T41 N\*. Bridge St\*., Somerville 08876\*T201-722-8200
1533\&Edwin B\*. Forsythe\*T301 Mill St\*., Moorestown 08057\*T609-235-6622
1534\&Matthew J\*. Rinaldo\*T1961 Morris Ave\*., Union 07083\*T201-687-4235
1535\&\*.TE
1536\&\*.ps 10
1537\&\*.vs 12p
1538.ne 3.2i
1539.OU
1540.ps 8
1541.vs 10p
1542.TS
1543center box;
1544c s s
1545ci s s
1546c c c
1547lB l n.
1548New Jersey Representatives
1549(Democrats)
1550.sp .5
1551Name Office address Phone
1552.sp .5
1553James J. Florio 23 S. White Horse Pike, Somerdale 08083 609-627-8222
1554William J. Hughes 2920 Atlantic Ave., Atlantic City 08401 609-345-4844
1555James J. Howard 801 Bangs Ave., Asbury Park 07712 201-774-1600
1556Frank Thompson, Jr. 10 Rutgers Pl., Trenton 08618 609-599-1619
1557Andrew Maguire 115 W. Passaic St., Rochelle Park 07662 201-843-0240
1558Robert A. Roe U.S.P.O., 194 Ward St., Paterson 07510 201-523-5152
1559Henry Helstoski 666 Paterson Ave., East Rutherford 07073 201-939-9090
1560Peter W. Rodino, Jr. Suite 1435A, 970 Broad St., Newark 07102 201-645-3213
1561Joseph G. Minish 308 Main St., Orange 07050 201-645-6363
1562Helen S. Meyner 32 Bridge St., Lambertville 08530 609-397-1830
1563Dominick V. Daniels 895 Bergen Ave., Jersey City 07306 201-659-7700
1564Edward J. Patten Natl. Bank Bldg., Perth Amboy 08861 201-826-4610
1565.sp .5
1566.T&
1567ci s s
1568lB l n.
1569(Republicans)
1570.sp .5v
1571Millicent Fenwick 41 N. Bridge St., Somerville 08876 201-722-8200
1572Edwin B. Forsythe 301 Mill St., Moorestown 08057 609-235-6622
1573Matthew J. Rinaldo 1961 Morris Ave., Union 07083 201-687-4235
1574.TE
1575.ps 10
1576.vs 12p
1577.sp
1578.fi
1579This is a paragraph of normal text placed here only to indicate where
1580the left and right margins are. In this way the reader can judge
1581the appearance of centered tables or expanded tables, and observe
1582how such tables are formatted.
1583.IN
1584\&\*.TS
1585\&expand;
1586\&c s s s
1587\&c c c c
1588\&l l n n\*.
1589\&Bell Labs Locations
1590\&Name\*TAddress\*TArea Code\*TPhone
1591\&Holmdel\*THolmdel, N\*. J\*. 07733\*T201\*T949-3000
1592\&Murray Hill\*TMurray Hill, N\*. J\*. 07974\*T201\*T582-6377
1593\&Whippany\*TWhippany, N\*. J\*. 07981\*T201\*T386-3000
1594\&Indian Hill\*TNaperville, Illinois 60540\*T312\*T690-2000
1595\&\*.TE
1596.ne 1.3i
1597.OU
1598.TS
1599expand;
1600c s s s
1601c c c c
1602l l n n.
1603Bell Labs Locations
1604Name Address Area Code Phone
1605Holmdel Holmdel, N. J. 07733 201 949-3000
1606Murray Hill Murray Hill, N. J. 07974 201 582-6377
1607Whippany Whippany, N. J. 07981 201 386-3000
1608Indian Hill Naperville, Illinois 60540 312 690-2000
1609.TE
1610.br
1611.ps 8
1612.vs 9p
1613.ne 5i
1614.IN
1615\&\*.TS
1616\&box;
1617\&cb s s s
1618\&c | c | c s
1619\&ltiw(1i) | ltw(2i) | lp8 | lw(1\*.6i)p8\*.
1620\&Some Interesting Places
1621\&_
1622\&Name\*TDescription\*TPractical Information
1623\&_
1624\&T{
1625\&American Museum of Natural History
1626\&T}\*TT{
1627\&The collections fill 11\*.5 acres (Michelin) or 25 acres (MTA)
1628\&of exhibition halls on four floors\*. There is a full-sized replica
1629\&of a blue whale and the world's largest star sapphire (stolen in 1964)\*.
1630\&T}\*THours\*T10-5, ex\*. Sun 11-5, Wed\*. to 9
1631\&\e^\*T\e^\*TLocation\*TT{
1632\&Central Park West & 79th St\*.
1633\&T}
1634\&\e^\*T\e^\*TAdmission\*TDonation: $1\*.00 asked
1635\&\e^\*T\e^\*TSubway\*TAA to 81st St\*.
1636\&\e^\*T\e^\*TTelephone\*T212-873-4225
1637\&_
1638\&Bronx Zoo\*TT{
1639\&About a mile long and \*.6 mile wide, this is the largest zoo in America\*.
1640\&A lion eats 18 pounds
1641\&of meat a day while a sea lion eats 15 pounds of fish\*.
1642\&T}\*THours\*TT{
1643\&10-4:30 winter, to 5:00 summer
1644\&T}
1645\&\e^\*T\e^\*TLocation\*TT{
1646\&185th St\*. & Southern Blvd, the Bronx\*.
1647\&T}
1648\&\e^\*T\e^\*TAdmission\*T$1\*.00, but Tu,We,Th free
1649\&\e^\*T\e^\*TSubway\*T2, 5 to East Tremont Ave\*.
1650\&\e^\*T\e^\*TTelephone\*T212-933-1759
1651\&_
1652\&Brooklyn Museum\*TT{
1653\&Five floors of galleries contain American and ancient art\*.
1654\&There are American period rooms and architectural ornaments saved
1655\&from wreckers, such as a classical figure from Pennsylvania Station\*.
1656\&T}\*THours\*TWed-Sat, 10-5, Sun 12-5
1657\&\e^\*T\e^\*TLocation\*TT{
1658\&Eastern Parkway & Washington Ave\*., Brooklyn\*.
1659\&T}
1660\&\e^\*T\e^\*TAdmission\*TFree
1661\&\e^\*T\e^\*TSubway\*T2,3 to Eastern Parkway\*.
1662\&\e^\*T\e^\*TTelephone\*T212-638-5000
1663\&_
1664\&T{
1665\&New-York Historical Society
1666\&T}\*TT{
1667\&All the original paintings for Audubon's
1668\&\*.I
1669\&Birds of America
1670\&\*.R
1671\&are here, as are exhibits of American decorative arts, New York history,
1672\&Hudson River school paintings, carriages, and glass paperweights\*.
1673\&T}\*THours\*TT{
1674\&Tues-Fri & Sun, 1-5; Sat 10-5
1675\&T}
1676\&\e^\*T\e^\*TLocation\*TT{
1677\&Central Park West & 77th St\*.
1678\&T}
1679\&\e^\*T\e^\*TAdmission\*TFree
1680\&\e^\*T\e^\*TSubway\*TAA to 81st St\*.
1681\&\e^\*T\e^\*TTelephone\*T212-873-3400
1682\&\*.TE
1683.br
1684.ps \n(PS
1685.vs \n(VSp
1686.OU
1687.fi
1688.rr 10 11 12 13 14 15 16 17 18 19 20 21 22 98 99
1689.rr 60 61 62 63 64 65 66 67 68 69 70
1690.rr 43 44 45 46 47 48 49 50 51 52 53
1691.rr 83 84 85 86 87 88 89 90 91 92 93
1692.rr #a
1693.rr #b
1694.rr #c
1695.rr #d
1696.rr #e
1697.rr YY
1698.rr OJ
1699.rr P
1700.rr AV CW GW DW FL KN SJ A1 A2 A3 I1 I2 I3
1701.in 0
1702.hy 1
1703.TS
1704box;
1705cb s s s
1706c | c | c s
1707ltiw(1i) | ltw(2i) | lp8| lw(1.6i)p8.
1708Some Interesting Places
1709_
1710Name Description Practical Information
1711_
1712T{
1713American Museum of Natural History
1714T} T{
1715The collections fill 11.5 acres (Michelin) or 25 acres (MTA)
1716of exhibition halls on four floors. There is a full-sized replica
1717of a blue whale and the world's largest star sapphire (stolen in 1964).
1718T} Hours 10-5, ex. Sun 11-5, Wed. to 9
1719\^ \^ Location T{
1720Central Park West & 79th St.
1721T}
1722\^ \^ Admission Donation: $1.00 asked
1723\^ \^ Subway AA to 81st St.
1724\^ \^ Telephone 212-873-4225
1725_
1726Bronx Zoo T{
1727About a mile long and .6 mile wide, this is the largest zoo in America.
1728A lion eats 18 pounds
1729of meat a day while a sea lion eats 15 pounds of fish.
1730T} Hours T{
173110-4:30 winter, to 5:00 summer
1732T}
1733\^ \^ Location T{
1734185th St. & Southern Blvd, the Bronx.
1735T}
1736\^ \^ Admission $1.00, but Tu,We,Th free
1737\^ \^ Subway 2, 5 to East Tremont Ave.
1738\^ \^ Telephone 212-933-1759
1739_
1740Brooklyn Museum T{
1741Five floors of galleries contain American and ancient art.
1742There are American period rooms and architectural ornaments saved
1743from wreckers, such as a classical figure from Pennsylvania Station.
1744T} Hours Wed-Sat, 10-5, Sun 12-5
1745\^ \^ Location T{
1746Eastern Parkway & Washington Ave., Brooklyn.
1747T}
1748\^ \^ Admission Free
1749\^ \^ Subway 2,3 to Eastern Parkway.
1750\^ \^ Telephone 212-638-5000
1751_
1752T{
1753New-York Historical Society
1754T} T{
1755All the original paintings for Audubon's
1756.I
1757Birds of America
1758.R
1759are here, as are exhibits of American decorative arts, New York history,
1760Hudson River school paintings, carriages, and glass paperweights.
1761T} Hours T{
1762Tues-Fri & Sun, 1-5; Sat 10-5
1763T}
1764\^ \^ Location T{
1765Central Park West & 77th St.
1766T}
1767\^ \^ Admission Free
1768\^ \^ Subway AA to 81st St.
1769\^ \^ Telephone 212-873-3400
1770.TE
1771.rr 40
1772.rr 41
1773.rr 42
1774.rr 43
1775.rr 80
1776.rr 81
1777.rr 82
1778.rr 83
1779.rr 60
1780.rr 61
1781.rr 62
1782.rr 63
1783.rr #a
1784.rr #b
1785.rr #c
1786.rr #d
1787.rr #e
1788.rr ##
1789.ne 2i
1790.fi
1791.LP
1792.SH
1793Acknowledgments.
1794.PP
1795Many thanks are due to J. C. Blinn, who has done a large amount
1796of testing and assisted with the design of the program.
1797He has also written many of the more intelligible sentences
1798in this document and helped edit all of it.
1799All phototypesetting programs on \s-2UNIX\s0 are dependent on the work
1800of J. F. Ossanna, whose assistance with this program in particular
1801has been most helpful.
1802This program is patterned on a table formatter originally
1803written by J. F. Gimpel.
1804The assistance of
1805T. A. Dolotta, B. W. Kernighan, and J. N. Sturman
1806is gratefully acknowledged.
1807.SG MH-1274-MEL-troff
1808.ne 2i
1809.SH
1810References.
1811.IP [1]
1812J. F. Ossanna,
1813.I
1814N\s-2ROFF\s0/T\s-2ROFF\s0 User's Manual,
1815.R
1816Computing Science Technical Report No. 54,
1817Bell Laboratories, 1976.
1818.IP [2]
1819K. Thompson and D. M. Ritchie,
1820``The U\s-2NIX\s0 Time-Sharing System,''
1821\fIComm. ACM. \fB17\fR, pp. 365\(mi75 (1974).
1822.IP [3]
1823B. W. Kernighan and L. L. Cherry,
1824``A System for Typesetting Mathematics,''
1825\fIComm. ACM. \fB18\fR, pp. 151\(mi57 (1975).
1826.IP [4]
1827M. E. Lesk,
1828.I
1829Typing Documents on U\s-2NIX\s0,
1830.R
1831Bell Laboratories internal memorandum.
1832.IP [5]
1833M. E. Lesk and B. W. Kernighan,
1834.I
1835Computer Typesetting of Technical Journals on U\s-2NIX\s0,
1836.R
1837Computing Science Technical Report No. 44,
1838Bell Laboratories, July 1976.
1839.IP [6]
1840J. R. Mashey and D. W. Smith,
1841.I
1842\s-2PWB/MM\s0 \(em Programmer's Workbench Memorandum Macros,
1843.R
1844Bell Laboratories memorandum.
1845.sp 3
1846.SH
1847.ce
1848List of Tbl Command Characters and Words
1849.LP
1850.EQ
1851delim $$
1852gfont roman
1853.EN
1854.TS
1855center;
1856cI cI cI
1857aB lf1 nf1 .
1858Command Meaning Section
1859a A Alphabetic subcolumn 2
1860allbox Draw box around all items 1
1861b B Boldface item 2
1862box Draw box around table 1
1863c C Centered column 2
1864center Center table in page 1
1865doublebox Doubled box around table 1
1866e E Equal width columns 2
1867expand Make table full line width 1
1868f F Font change 2
1869i I Italic item 2
1870l L Left adjusted column 2
1871n N Numerical column 2
1872\fInnn\fR Column separation 2
1873p P Point size change 2
1874r R Right adjusted column 2
1875s S Spanned item 2
1876t T Vertical spanning at top 2
1877tab \fR(\fIx\|\fR) Change data separator character 1
1878$fat roman "T{" ~~ fat roman "T}"$ Text block 3
1879v V Vertical spacing change 2
1880w W Minimum width value 2
1881\&\s+4.\s0\fIxx\fR Included \fItroff\fR command 3
1882\(bv Vertical line 2
1883\(bv\|\(bv Double vertical line 2
1884\&\s+4\v'4p'^\v'-4p'\s0 Vertical span 2
1885\e\&\s+4\v'4p'^\v'-4p'\s0 Vertical span 3
1886\&= Double horizontal line 2,3
1887\&$fat "_"$ Horizontal line 2,3
1888\&$fat "\e_"$ Short horizontal line 3
1889.TE