xref: /original-bsd/share/doc/usd/17.msmacros/refcard (revision 306a1b7a)
%sccs.include.proprietary.roff%

@(#)refcard 8.1 (Berkeley) 06/08/93

.fp 3 gB .po .5i .. .. .bd R 2 \\$1 .bd R ..

.vs 10p .bd 1 3

\\$1

.bd 1 .. 'po 0 \(rn\t|\t|\t|\t\(rn 'po 'sp .2i

z .. .po 0 | | | .po .5i .. .wh -8p FT

.tm left col bottom at \\n(nl .po +3.5i .ph ..

.tm right col bottom at \\n(nl .po -3.5i .bp .ph .. .nr x +1 .tl ''\\nx'' .. .nr x 1 .wh 0 NP .lt 3i .nr LL 3i .nr IQ 4 .nr IR 4 .RT .. .. .RT .. .. .. . \"RE - retreat to the left

..

.rs .vs 16p

3 A Guide to Preparing Documents with -ms .vs 12p

M. E. Lesk .lt \n(.lu .tl 'Bell Laboratories''August 1978' .tl xx\l'\n(.lu'xx .bd I 2 .vs 11p

This guide gives some simple examples of document preparation on Bell Labs computers, emphasizing the use of the -ms macro package. It enormously abbreviates information in
1.
Typing Documents on UNIX and GCOS, .R by M. E. Lesk;
2.
Typesetting Mathematics - User's Guide, .R by B. W. Kernighan and L. L. Cherry; and
3.
Tbl - A Program to Format Tables, .R by M. E. Lesk.

These memos are all included in the UNIX Programmer's Manual, Volume 2. .R The new user should also have A Tutorial Introduction to the UNIX Text Editor, .R by B. W. Kernighan. For more detailed information, read Advanced Editing on UNIX .R and A Troff Tutorial, .R by B. W. Kernighan, and (for experts) Nroff\^/Troff Reference Manual .R by J. F. Ossanna. Information on related commands is found (for UNIX users) in UNIX for Beginners .R by B. W. Kernighan and the UNIX Programmer's Manual .R by K. Thompson and D. M. Ritchie.

.vs 12p

Contents

.bd I
.cs I 25
A TM  2
A released paper  3
An internal memo, and headings  4
Lists, displays, and footnotes  5
Indents, keeps, and double column  6
Equations and registers  7
Tables and usage  8
.cs I
delim $$ .EN Throughout the examples, input is shown in

this Helvetica sans serif font

while the resulting output is shown in this Times Roman font.

UNIX Document no. 1111 .vs 10p gsize 9 .EN .b1 .hh "Commands for a TM"

.TM 1978-5b3 99999 99999-11
.ND April 1, 1976
.TL
The Role of the Allen Wrench in Modern
Electronics
.AU "MH 2G-111" 2345
J. Q. Pencilpusher
.AU "MH 1K-222" 5432
X. Y. Hardwired
.AI
.MH
.OK
Tools
Design
.AB
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.
.AE
.CS 10 2 12 5 6 7
.NH
Introduction.
.PP
Now the first paragraph of actual text ...
...
Last line of text.
.SG MH-1234-JQP/XYH-unix
.NH
References ...
Commands not needed in a particular format are ignored. .vs 9p

a

\h'2n'\s16\(bs\s7 $fat roman size 7 "Bell Laboratories"$ \s8Cover Sheet for TM
\s6\l'3i'
This information is for employees of Bell Laboratories. (GEI 13.9-3)\p
.vs 4p
\s6\l'3i'
.vs 9p

Title- \s8 .bd 1 2 The Role of the Allen Wrench in Modern Electronics

.bd 1 \s7Date- \s8 .bd 1 2 April 1, 1976 .bd 1

\s7TM- \s8

.bd 1 2 1978-5b3 .bd 1

\s7Other Keywords- \kQ .bd 1 2 Tools Design .bd 1 Author Location Ext. Charging Case- \s8$fat roman size 8 99999$

.bd 1 2 J. Q. Pencilpusher MH 2G-111 2345

.bd 1 \s7Filing Case- \s8$fat roman size 8 "99999a"$

.bd 1 2 X. Y. Hardwired MH 1K-222 5432 .bd 1

ABSTRACT

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.
\l'3i'
Pages Text 10 Other 2 Total 12
\l'3i'
.lt 3i
.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'
.. .eb .b2 .hh "A Released Paper with Mathematics"
delim off
.EN
.EQ
delim $$
.EN
.RP
... (as for a TM)
.CS 10 2 12 5 6 7
.NH
Introduction
.PP
The solution to the torque handle equation
.EQ (1)
sum from 0 to inf F ( x sub i ) = G ( x )
.EN
is found with the transformation $ x = rho over
theta $ where $ rho = G prime (x) $ and $theta$
is derived ...

a .bd 1 2

2 .vs 11p The Role of the Allen Wrench in Modern Electronics

3 .bd 1 .vs 9p J. Q. Pencilpusher X. Y. Hardwired

2 Bell Laboratories Murray Hill, New Jersey 07974

ABSTRACT

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. April 1, 1976 .eb

a .lt 3i .bd 1 2

2 .vs 11p The Role of the Allen Wrench in Modern Electronics

3 .bd 1 .vs 9p J. Q. Pencilpusher X. Y. Hardwired

2 Bell Laboratories Murray Hill, New Jersey 07974

.bd 1 2

0 .. .bd 1 ..

1. Introduction

The solution to the torque handle equation

.di xx delim $$ gsize 8 sum from 0 to inf F ( x sub i ) = G ( x ) .EN

.di .tl ''\*(10'(1)' is found with the transformation $ x = rho over theta $ where $ rho = G prime ( x )$ and $theta$ is derived from well-known principles. ......PP ......ft 2 .....The Ascent of the Riffelberg, ......ft 1 .....by Mark Twain. .....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: .....``Speak.'' .....I answered, with perfect calmness: ......ft 2 .....``I will ascend the Riffelberg.'' ......ft 1 .....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 .eb .b1 .hh "An Internal Memorandum"

.IM
.ND January 24, 1956
.TL
The 1956 Consent Decree
.AU
Able, Baker &
Charley, Attys.
.PP
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, ...

a

\(bs .vs .20i

.bd 1 2

 Bell Laboratories
.bd 1 .vs 8p

Subject:

.bd 1 2 \h'\w'\s7Subject: \s0'u'The 1956 Consent Decree

.bd 1

date:

.bd 1 2 January 24, 1956 .bd 1

from:

.bd 1 2 Able, Baker & Charley, Attys.

.bd 1

.bd 1 2 .. .bd 1 ..

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:

I. [Sherman Act]

This Court has jurisdiction of the subject matter herein and of all the parties hereto. 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.

II. [Definitions]

For the purposes of this Final Judgment:

(a) ``Western'' shall mean the defendant Western Electric Company, Incorporated. .eb .bd 1 .vs 10p Other formats possible (specify before \f3.TL\f1) are: \f3.MR\f1 (``memo for record''), \f3.MF\f1 (``memo for file''), \f3.EG\f1 (``engineer's notes'') and \f3.TR\f1 (Computing Science Tech. Report). .hh "Headings"

.NH .SH
Introduction. Appendix I
.PP .PP
text text text text text text
.bd 1 2

1. Introduction Appendix I

.bd 1 \0\0text text text \0\0text text text

.b2 .hh "A Simple List"

.IP 1.
J. Pencilpusher and X. Hardwired,
.I
A New Kind of Set Screw,
.R
Proc. IEEE
.B 75
(1976), 23-255.
.IP 2.
H. Nails and R. Irons,
.I
Fasteners for Printed Circuit Boards,
.R
Proc. ASME
.B 23
(1974), 23-24.
.LP (terminates list)
delim $$
gsize 9
.EN
1.
J. Pencilpusher and X. Hardwired, A New Kind of Set Screw, .R Proc. IEEE $fat 75$ (1976), 23-255.
2.
H. Nails and R. Irons, Fasteners for Printed Circuit Boards, .R Proc. ASME $fat 23$ (1974), 23-24.

delim off .EN .hh "Displays"

text text text text text text 
.DS
and now
for something
completely different
.DE
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 summit new providence
and now
for something
completely different
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. .hh "Footnotes"
Among the most important occupants
of the workbench are the long-nosed pliers.
Without these basic tools*
.FS
* As first shown by Tiger & Leopard
(1975).
.FE
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 pliers. Without these basic tools* few assemblies could be completed. They may lack the popular appeal of the sledgehammer

\l'1i'

* As first shown by Tiger & Leopard (1975).

.b1
.hh "Multiple Indents"
This is ordinary text to point out
the margins of the page.
.IP 1.
First level item
.RS
.IP a)
Second level.
.IP b)
Continued here with another second
level item, but somewhat longer.
.RE
.IP 2.
Return to previous value of the
indenting at this point.
.IP 3.
Another
line.
This is ordinary text to point out the margins of the page.
1.
First level item

a)
Second level.
b)
Continued here with another second level item, but somewhat longer.
2.
Return to previous value of the indenting at this point.
3.
Another line.

.hh "Keeps"

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
.hh "Double Column"
.TL
The Declaration of Independence
.2C
.PP

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 .nr xy +1 .. .wh 10.45i xy

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

.po -1.58i .lt 3i .b2 .hh "Equations"

.nr EF \\n(.u
.nr LE 1 \" 1 is center
.di EZ
..
.di
.lt \\n(.lu
.pc
.pc %
.lt \\n(LLu
.nr PE \\n(.d
..
A displayed equation is marked
with an equation number at the right margin
by adding an argument to the EQ line:
.EQ (1.3)
x sup 2 over a sup 2 ~=~ sqrt {p z sup 2 +qz+r}
.EN
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 + q z + r } .EN
.EQ I (2.2a)
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 ]
.EN
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 ]
.EN
.EQ L
F hat ( chi ) ~ mark = ~ | del V | sup 2
.EN
.EQ L
lineup =~ {left ( {partial V} over {partial x} right ) } sup 2 + { left ( {partial V} over {partial y} right ) } sup 2 ~~~~~~ lambda -> inf
.EN
F hat ( chi ) ~ mark = ~ | del V | sup 2
.EN
delim off
lineup =~ {left ( {partial V} over {partial x} right ) } sup 2
+ { left ( {partial V} over {partial y} right ) } sup 2
~~~~~~ lambda -> inf
.EN
$ a dot $, $ b dotdot$, $ xi tilde times y vec$: delim $$ .EN

$ a dot $, $ b dotdot$, $ xi tilde times y vec$. delim off .EN \h'.3i'(with delim $$ on, see panel 3). See also the equations in the second table, panel 8.

.bd I .hh "Some Registers You Can Change"

Line length .nr LL 7i Title length .nr LT 7i Point size .nr PS 9 Vertical spacing .nr VS 11 Column width .nr CW 3i Intercolumn spacing .nr GW .5i Margins - head and foot .nr HM .75i .nr FM .75i Paragraph indent .nr PI 2n .po +1.6i Paragraph spacing .nr PD 0 Page offset .nr PO 0.5i Page heading .ds CH Appendix (center) .ds RH 7-25-76 (right) .ds LH Private (left) Page footer .ds CF Draft .ds LF .ds RF \u similar \d Page numbers .nr % 3 .po -1.6i .b1 .hh Tables

delim off
.EN
.TS\h'.5i'(\f3\*T\f1 indicates a tab)\f3
allbox;
.nr x \n(nl
c s s
c c c
n n n.
AT&T Common Stock
Year\*TPrice\*TDividend
1971\*T41-54\*T$2.60
2\*T41-54\*T2.70
3\*T46-55\*T2.87
4\*T40-53\*T3.24
5\*T45-52\*T3.40
6\*T51-59\*T.95*
.TE
* (first quarter only)
.nr y \n(nl
.di qq
AT&T Common Stock
Year Price Dividend
1971 41-54 $2.60
2 41-54 2.70
3 46-55 2.87
4 40-53 3.24
5 45-52 3.40
6 51-59 .95*
* (first quarter only)

.di

.qq
The meanings of the key-letters describing the alignment of each entry are:

c center n numerical
r right-adjust a subcolumn
l left-adjust s spanned
The global table options are .bd I 2 center, expand, box, doublebox, allbox, tab (\f2x\|) and linesize (\f2n\|).

.bd I

.TS\h'.5i'(with delim $$ on, see panel 3)
doublebox, center;
c c
l l.
Name\*TDefinition
.sp
Gamma\*T$GAMMA (z) = int sub 0 sup inf \e
 t sup {z-1} e sup -t dt$
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 $
Zeta\*T$ zeta (s) = \e
 sum from k=1 to inf k sup -s ~~( Re~s > 1)$
.TE
delim $$
.EN
.vs +2p
Name Definition
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)$
.vs -2p

.bd I 2 .hh "Usage" .vs 10p

\h'.25i'Documents with just text:
troff -ms files
\h'.25i'With equations only:
eqn files | troff -ms
\h'.25i'With tables only:
tbl files | troff -ms
\h'.25i'With both tables and equations:
tbl files\||\|eqn\||\|troff -ms
The above generates \s-2STARE\s0 output on \s-2GCOS\s0: replace -st with -ph for typesetter output. .bd I .b2