BSD 4_3_Net_2 release
[unix-history] / usr / src / share / doc / usd / 21.msdiffs / ms.diffs
CommitLineData
ff262511
KB
1.\" Copyright (c) 1983 The Regents of the University of California.
2.\" All rights reserved.
c44c8f55 3.\"
af359dea
C
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.
9.\" 2. Redistributions in binary form must reproduce the above copyright
10.\" notice, this list of conditions and the following disclaimer in the
11.\" documentation and/or other materials provided with the distribution.
12.\" 3. All advertising materials mentioning features or use of this software
13.\" must display the following acknowledgement:
14.\" This product includes software developed by the University of
15.\" California, Berkeley and its contributors.
16.\" 4. Neither the name of the University nor the names of its contributors
17.\" may be used to endorse or promote products derived from this software
18.\" without specific prior written permission.
ff262511 19.\"
af359dea
C
20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)ms.diffs 6.2 (Berkeley) 4/17/91
c44c8f55
KM
33.\"
34.nr LL 6.5i
35.nr FL 6.0i
36.if t .nr PD .5v
37.if t .ds m \u\(ul\dm
38.if n .ds m -m
39.AM
e560e8ac
KM
40.OH 'A Revised Version of \*ms''USD:21-%'
41.EH 'USD:21-%''A Revised Version of \*ms'
c44c8f55
KM
42.TL
43A Revised Version of \*ms
44.AU
45Bill Tuthill
46.AI
47Computing Services
48University of California
49Berkeley, CA 94720
50.PP
e560e8ac
KM
51The \*ms macros have been slightly revised and re\%arranged for the
52Berkeley Unix distribution.
c44c8f55
KM
53Because of the rearrangement,
54the new macros can be read by the computer
55in about half the time required by the previous version of \*ms.
56This means that output will begin to appear between ten seconds
57and several minutes more quickly, depending on the system load.
58On long files, however, the savings in total time are not substantial.
59The old version of \*ms is still available as \*mos.
60.PP
61Several bugs in \*ms have been fixed, including
62a bad problem with the .1C macro,
63minor difficulties with boxed text,
64a break induced by .EQ before initialization,
65the failure to set tab stops in displays,
66and several bothersome errors in the \fBrefer\fP macros.
67Macros used only at Bell Laboratories have been removed.
68There are a few extensions to previous \*ms macros,
69and a number of new macros, but all the documented \*ms macros
70still work exactly as they did before, and have the same names as before.
71Output produced with \*ms should look like output produced with \*mos.
72.PP
73One important new feature is automatically numbered footnotes.
74Footnote numbers are printed by means of a pre-defined string
75(\e\(**\(**), which you invoke separately from .FS and .FE.
76Each time it is used, this string increases the footnote number by one,
77whether or not you use .FS and .FE in your text.
78Footnote numbers will be superscripted on the phototypesetter
79and on daisy-wheel terminals, but on low-resolution devices
80(such as the lpr and a crt), they will be bracketed.
81If you use \e\(**\(** to indicate numbered footnotes,
82then the .FS macro will automatically include
83the footnote number at the bottom of the page.
84This footnote, for example, was produced as follows:\**
85.DS
86This footnote, for example, was produced as follows:\e\(**\(**
87\&.FS
88.sp -.2
89 ...
90\&.FE
91.DE
92.FS
93If you never use the ``\e\(**\(**'' string,
94no footnote numbers will appear anywhere in the text,
95including down here.
96The output footnotes will look exactly like
97footnotes produced with \*mos.
98.FE
99If you are using \e\(**\(** to number footnotes,
100but want a particular footnote to be marked with an asterisk or a dagger,
101then give that mark as the first argument to .FS: \(dg
102.DS
103then give that mark as the first argument to .FS: \e(dg
104\&.FS \e(dg
105.sp -.2
106 ...
107\&.FE
108.DE
109.FS \(dg
110In the footnote, the dagger will appear where the footnote
111number would otherwise appear, as on the left.
112.FE
113Footnote numbering will be temporarily suspended,
114because the \e\(**\(** string is not used.
115Instead of a dagger, you could use an asterisk *
116or double dagger \(dd, represented as \|\e(dd.
117.PP
118Another new feature is a macro for printing theses
119according to Berkeley standards.
120This macro is called .TM, which stands for thesis mode.
121(It is much like the .th macro in \*me.)
122It will put page numbers in the upper right-hand corner;
123number the first page; suppress the date;
124and doublespace everything except quotes, displays, and keeps.
125Use it at the top of each file making up your thesis.
126Calling .TM defines the .CT macro for chapter titles,
127which skips to a new page and moves the pagenumber to the center footer.
128The .P1 (P one) macro can be used even without thesis mode
129to print the header on page 1,
130which is suppressed except in thesis mode.
131If you want roman numeral page numbering,
132use an ``.af\0PN\0i'' request.
133.PP
134There is a new macro especially for bibliography entries,
135called .XP, which stands for exdented paragraph.
136It will exdent the first line of the paragraph by \en(PI units,
137usually 5n (the same as the indent for the first line of a .PP).
138Most bibliographies are printed this way.
139Here are some examples of exdented paragraphs:
140.XP
141Lumley, Lyle S., \fISex in Crustaceans: Shell Fish Habits,\fP\|
142Harbinger Press, Tampa Bay and San Diego, October 1979.
143243 pages.
144The pioneering work in this field.
145.XP
146Leffadinger, Harry A., ``Mollusk Mating Season: 52 Weeks, or All Year?''
147in \fIActa Biologica,\fP\| vol. 42, no. 11, November 1980.
148A provocative thesis, but the conclusions are wrong.
149.LP
150Of course, you will have to take care of
151italicizing the book title and journal,
152and quoting the title of the journal article.
153Indentation or exdentation can be changed
154by setting the value of number register PI.
155.PP
156If you need to produce endnotes rather than footnotes,
157put the references in a file of their own.
158This is similar to what you would do if you were
159typing the paper on a conventional typewriter.
160Note that you can use automatic footnote numbering
161without actually having .FS and .FE pairs in your text.
162If you place footnotes in a separate file,
163you can use .IP macros with \e\(**\(**\| as a hanging tag;
164this will give you numbers at the left-hand margin.
165With some styles of endnotes,
166you would want to use .PP rather then .IP macros,
167and specify \e\(**\(** before the reference begins.
168.PP
169There are four new macros to help produce a table of contents.
170Table of contents entries must be enclosed in .XS and .XE pairs,
171with optional .XA macros for additional entries;
172arguments to .XS and .XA specify the page number,
173to be printed at the right.
174A final .PX macro prints out the table of contents.
175Here is a sample of typical input and output text:
176.DS
177\&.XS ii
178Introduction
179\&.XA 1
180Chapter 1: Review of the Literature
181\&.XA 23
182Chapter 2: Experimental Evidence
183\&.XE
184\&.PX
185.sp .5
186.lt 5.5i
187.tl ''\fBTable of Contents\fP''
188.ta 5i 5.5iR
189.sp
190Introduction \ 1 ii\|
191Chapter 1: Review of the Literature \ 1 1
192Chapter 2: Experimental Evidence \ 1 23
193.sp .5
194.DE
195The .XS and .XE pairs may also be used in the text,
196after a section header for instance,
197in which case page numbers are supplied automatically.
198However, most documents that require a table of contents
199are too long to produce in one run,
200which is necessary if this method is to work.
201It is recommended that you do a table of contents
202after finishing your document.
203To print out the table of contents, use the .PX macro;
204if you forget it, nothing will happen.
205.PP
206As an aid in producing text that will format correctly
207with both \fBnroff\fP and \fBtroff\fP,
208there are some new string definitions that define quotation marks
209and dashes for each of these two formatting programs.
210The \e\(**\^\u_\d string will yield two hyphens in \fBnroff\fP,
211but in \fBtroff\fP it will produce an em dash\*-
212like this one.
213The \e\(**Q and \e\(**U strings will produce
214`` and '' in \fBtroff\fP, but " in \fBnroff\fP.
215(In typesetting, the double quote is traditionally considered bad form.)
216.PP
217There are now a large number of optional
218foreign accent marks defined by the \*ms macros.
219All the accent marks available in \*mos are present,
220and they all work just as they always did.
221However, there are better definitions available
222by placing .AM at the beginning of your document.
223Unlike the \*mos accent marks,
224the accent strings should come \fIafter\fP\| the letter being accented.
225Here is a list of the diacritical marks,
226with examples of what they look like.
227.DS
228.ta 2i 3i
229name of accent input output
230\l'3.5i'
231acute accent e\e\(**\' e\*'
232grave accent e\e\(**\` e\*`
233circumflex o\e\(**\d^\u o\*^
234cedilla c\e\(**, c\*,
235tilde n\e\(**\d~\u n\*~
236question \e\(**? \*?
237exclamation \e\(**! \*!
238umlaut u\e\(**: u\*:
239digraph s \e\(**8 \*8
240hac\*vek c\e\(**v c\*v
241macron a\e\(**_ a\*_
242underdot s\e\(**. s\*.
243o-slash o\e\(**/ o\*/
244angstrom a\e\(**o a\*o
245yogh kni\e\(**3t kni\*3t
246Thorn \e\(**(Th \*(Th
247thorn \e\(**(th \*(th
248Eth \e\(**(D- \*(D-
249eth \e\(**(d- \*(d-
250hooked o \e\(**q \*q
251ae ligature \e\(**(ae \*(ae
252AE ligature \e\(**(Ae \*(Ae
253oe ligature \e\(**(oe \*(oe
254OE ligature \e\(**(Oe \*(Oe
255.DE
256If you want to use these new diacritical marks,
257don't forget the .AM at the top of your file.
258Without it, some will not print at all,
259and others will be placed on the wrong letter.
260.PP
261It is also possible to produce custom headers and footers
262that are different on even and odd pages.
263The .OH and .EH macros define odd and even headers,
264while .OF and .EF define odd and even footers.
265Arguments to these four macros are specified as with .tl.
266This document was produced with:
267.DS
268\&.OH \'\ef\^IThe -mx Macros\'\'Page %\ef\^P\'
269\&.EH \'\ef\^IPage %\'\'The -mx Macros\ef\^P\'
270.DE
271Note that it would be a error to have an apostrophe in the header text;
272if you need one, you will have to use a different delimiter
273around the left, center, and right portions of the title.
274You can use any character as a delimiter, provided it doesn't appear
275elsewhere in the argument to .OH, .EH, .OF, or EF.
276.PP
277The \*ms macros work in conjunction with
278the \fBtbl\fR, \fBeqn\fR, and \fBrefer\fR preprocessors.
279Macros to deal with these items are read in only as needed,
280as are the thesis macros (.TM),
281the special accent mark definitions (.AM),
282table of contents macros (.XS and .XE),
283and macros to format the optional cover page.
284The code for the \*ms package lives in /usr/lib/tmac/tmac.s,
285and sourced files reside in the directory /usr/ucb/lib/ms.
286.sp
287.tl '''\*(DY'