.\" @(#)refcard 6.1 (Berkeley) 5/22/86
.ta .25i 3.75i 7.25i 7.7i
.tm left col bottom at \\n(nl
.tm right col bottom at \\n(nl
. \"RE - retreat to the left
.tl 'Bell Laboratories''August 1978'
This guide gives some simple examples of
document preparation on Bell Labs computers,
emphasizing the use of the \fI\-ms\fR macro
It enormously abbreviates
Typing Documents on UNIX and GCOS,
Typesetting Mathematics \- User's Guide,
by B. W. Kernighan and L. L. Cherry; and
Tbl \- A Program to Format Tables,
These memos are all included in the
UNIX Programmer's Manual, Volume 2.
The new user should also have
A Tutorial Introduction to the UNIX Text Editor,
For more detailed information, read
Nroff\^/Troff Reference Manual
Information on related commands is
found (for UNIX users) in
by K. Thompson and D. M. Ritchie.
A released paper \fI
\ 1\fR 3
An internal memo, and headings \fI
\ 1\fR 4
Lists, displays, and footnotes \fI
\ 1\fR 5
Indents, keeps, and double column \fI
\ 1\fR 6
Equations and registers \fI
\ 1\fR 7
Tables and usage \fI
\ 1\fR 8
Throughout the examples, input is shown in
this Helvetica sans serif font
while the resulting output is shown in
\&.TM 1978-5b3 99999 99999-11
\&The Role of the Allen Wrench in Modern
\&This abstract should be short enough to
\&fit on a single page cover sheet.
\&It must attract the reader into sending for
\&the complete memorandum.
\&Now the first paragraph of actual text ...
\&.SG MH-1234-JQP/XYH-unix
Commands not needed in a particular
\h'2n'\s16\(bs\s7 $fat roman size 7 "Bell Laboratories"$ \s8Cover Sheet for TM
This information is for employees of Bell Laboratories. (GEI 13.9-3)\p
The Role of the Allen Wrench
Author Location Ext. Charging Case- \s8$fat roman size 8 99999$
J. Q. Pencilpusher MH 2G-111 2345
\s7Filing Case- \s8$fat roman size 8 "99999a"$
X. Y. Hardwired MH 1K-222 5432
This abstract should be short enough to fit
on a single page cover sheet.
It must attract the reader into sending for the
Pages Text 10 Other 2 Total 12
.if t No. Figures 5 No. Tables 6 No. Refs. 7 \b'|||||\ \ '
.tl 'E-1932-U (6-73)''SEE REVERSE SIDE FOR DISTRIBUTION LIST'
\h'-1m'\L'|\\nau-1'\l'\\n(.lu+2m\(ul'\L'-|\\nau+1'\l'|0u-1m\(ul'
.hh "A Released Paper with Mathematics"
\&The solution to the torque handle equation
\&sum from 0 to inf F ( x sub i ) = G ( x )
\&is found with the transformation $ x = rho over
\&theta $ where $ rho = G prime (x) $ and $theta$
The Role of the Allen Wrench
Murray Hill, New Jersey 07974
This abstract should be short enough to fit
on a single page cover sheet.
It must attract the reader into sending for the
The Role of the Allen Wrench
Murray Hill, New Jersey 07974
The solution to the torque handle equation
sum from 0 to inf F ( x sub i ) = G ( x )
is found with the transformation
$ x = rho over theta $ where $ rho = G prime ( x )$
and $theta$ is derived from well-known principles.
.....The Ascent of the Riffelberg,
.....I sat silent some time, then turned to Harris and said:
.....``My mind is made up.''
.....Something in my tone struck him; and when he glanced
.....at my eye and read what was written there, his face paled
.....perceptibly. He hesitated a moment, then said:
.....I answered, with perfect calmness:
.....``I will ascend the Riffelberg.''
.....If I had shot my poor friend he could not have fallen from
.....his chair more suddenly. If I had been his father he
.....could not have pleaded harder to get me to give up my
.....purpose. But I turned a deaf ear to all he said. When he
.....perceived at last that nothing could alter my determination,
.....he ceased to urge, and for a while the deep\p
.hh "An Internal Memorandum"
\&The 1956 Consent Decree
Plaintiff, United States of America, having filed
its complaint herein on January 14, 1949; the
defendants having appeared and filed their
answer to such complaint denying the
substantive allegations thereof; and the parties,
\h'\w'\s7Subject: \s0'u'The 1956 Consent Decree
Plaintiff, United States of America, having filed its complaint
herein on January 14, 1949; the defendants having appeared and
filed their answer to such complaint denying the substantive
allegations thereof; and the parties, by their attorneys, having
severally consented to the entry of this Final Judgment without
trial or adjudication of any issues of fact or law herein and without
this Final Judgment constituting any evidence or admission by any
party in respect of any such issues;
Now, therefore before any testimony has been taken herein, and
without trial or adjudication of any issue of fact or law herein,
and upon the consent of all parties hereto, it is hereby
Ordered, adjudged and decreed as follows:
This Court has jurisdiction of the subject matter herein and of all
The complaint states a claim upon which relief may be granted
against each of the defendants under Sections 1, 2 and 3 of the
Act of Congress of July 2, 1890, entitled ``An act to protect
trade and commerce against unlawful restraints and monopolies,''
commonly known as the Sherman Act, as amended.
For the purposes of this Final Judgment:
(a) ``Western'' shall mean the defendant Western Electric
Other formats possible (specify before \f3.TL\f1) are:
\&\f3.MR\f1 (``memo for record''), \f3.MF\f1
\&\f3.EG\f1 (``engineer's notes'') and \f3.TR\f1
(Computing Science Tech. Report).
text text text text text text
1. Introduction Appendix I
\0\0text text text \0\0text text text
\&J. Pencilpusher and X. Hardwired,
\&A New Kind of Set Screw,
\&Fasteners for Printed Circuit Boards,
\&.LP \fP(terminates list)
J. Pencilpusher and X. Hardwired,
Fasteners for Printed Circuit Boards,
\&text text text text text text
\&text text text text text text
hoboken harrison newark roseville avenue grove street
east orange brick church orange highland avenue
mountain station south orange maplewood millburn short hills
murray hill berkeley heights
gillette stirling millington lyons basking ridge
bernardsville far hills peapack gladstone
Options: \f3.DS L\f1: left-adjust;
\&\f3.DS C\f1: line-by-line center; \f3.DS B\f1: make block, then center.
\&Among the most important occupants
\&of the workbench are the long-nosed pliers.
\&Without these basic tools*
\&* As first shown by Tiger & Leopard
\&few assemblies could be completed. They may
\&lack the popular appeal of the sledgehammer
Among the most important occupants
of the workbench are the long-nosed
Without these basic tools*
few assemblies could be completed.
popular appeal of the sledgehammer
* As first shown by Tiger & Leopard (1975).
\&This is ordinary text to point out
\&the margins of the page.
\&Continued here with another second
\&level item, but somewhat longer.
\&Return to previous value of the
\&indenting at this point.
This is ordinary text to point out
Continued here with another second level
item, but somewhat longer.
Return to previous value of the
Lines bracketed by the following commands are kept together,
and will appear entirely on one page:
\&.KS not moved .KF may float
\&.KE through text .KE in text
The Declaration of Independence
When in the course of human events, it becomes
necessary for one people to dissolve the political bonds
which have connected them with another, and to assume
among the powers of the earth the separate and equal station
to which the laws of Nature and of Nature's God entitle them,
a decent respect to the opinions of
The Declaration of Independence
When in the course of human events, it becomes
necessary for one people to dissolve the political bonds which have
connected them with another, and to assume among the
powers of the earth the separate and equal station to which
the laws of Nature and of Nature's God entitle them, a decent
respect to the opinions of mankind requires that they should
declare the causes which impel them to the separation.
We hold these truths to be self-evident, that all men
are created equal, that they are endowed by their creator
with certain unalienable rights, that among these are life, liberty,
and the pursuit of happiness. That to secure these rights,
governments are instituted among men,\p
.de EQ \"equation, breakout and display
.if "\\$1"I" .ds EE \\h'5n'
.if "\\$1"I" .if !"\\$3"" .ds EE \\h'\\$3n'
.de EN \" end of a displayed equation
.if \\n(dn>0 .if \\n(LE>0 .tl \(ts\(ts\\*(10\(ts\\*(EL\(ts
.if \\n(dn>0 .if \\n(LE=0 .tl '\\*(EE\\*(10''\\*(EL'
A displayed equation is marked
with an equation number at the right margin
by adding an argument to the EQ line:
x sup 2 over a sup 2 ~=~ sqrt {p z sup 2 +qz+r}
A displayed equation is marked with an equation number
at the right margin by adding an argument to the EQ line:
~=~ sqrt { p z sup 2 + q z + r }
bold V bar sub nu~=~left [ pile {a above b above
c } right ] + left [ matrix { col { A(11) above .
above . } col { . above . above .} col {. above .
above A(33) }} right ] cdot left [ pile { alpha
above beta above gamma } right ]
fat {roman V} bar sub nu~=~left [ pile {a above b above c}
right ] + left [ matrix { col { A(11) above .
above . } col { . above . above .} col {. above .
above A(33) }} right ] cdot left [ pile { alpha
above beta above gamma } right ]
F hat ( chi ) ~ mark = ~ | del V | sup 2
lineup =~ {left ( {partial V} over {partial x} right ) } sup 2
+ { left ( {partial V} over {partial y} right ) } sup 2
F hat ( chi ) ~ mark = ~ | del V | sup 2
lineup =~ {left ( {partial V} over {partial x} right ) } sup 2
+ { left ( {partial V} over {partial y} right ) } sup 2
$ a dot $, $ b dotdot$, $ xi tilde times
$ a dot $, $ b dotdot$, $ xi tilde times
\h'.3i'(with delim $$ on, see panel 3).
See also the equations in the second table, panel 8.
.hh "Some Registers You Can Change"
.ds T \|\h'.35n'\v'-.1n'\s6\zT\s0\v'.1n'\h'-.35n'\(ci\|
\&.TS\h'.5i'\fR(\f3\*T\f1 indicates a tab)\f3
\&Year\*TPrice\*TDividend
The meanings of the key-letters describing
the alignment of each entry are:
r right-adjust a subcolumn
The global table options are
center, expand, box, doublebox, allbox,
\&.TS\h'.5i'\fR(with delim $$ on, see panel 3)\fP
\&Gamma\*T$GAMMA (z) = int sub 0 sup inf \e
\&Sine\*T$sin (x) = 1 over 2i ( e sup ix - e sup -ix )$
\&Error\*T$ roman erf (z) = 2 over sqrt pi \e
int sub 0 sup z e sup {-t sup 2} dt$
\&Bessel\*T$ J sub 0 (z) = 1 over pi \e
int sub 0 sup pi cos ( z sin theta ) d theta $
sum from k=1 to inf k sup -s ~~( Re~s > 1)$
Gamma $GAMMA (z) = int sub 0 sup inf t sup {z-1} e sup -t dt$
Sine $sin (x) = 1 over 2i ( e sup ix - e sup -ix )$
Error $ roman erf (z) = 2 over sqrt pi int sub 0 sup z e sup {-t sup 2} dt$
Bessel $ J sub 0 (z) = 1 over pi int sub 0 sup pi cos ( z sin theta ) d theta $
Zeta $ zeta (s) = sum from k=1 to inf k sup -s ~~( Re~s > 1)$
\h'.25i'Documents with just text:
\h'.25i'With equations only:
\h'.25i'With tables only:
\h'.25i'With both tables and equations:
tbl files\||\|eqn\||\|troff -ms
The above generates \s-2STARE\s0 output on