1 .\" $NetBSD: intro.me,v 1.3 1998/05/05 08:04:28 mycroft Exp $
3 .\" Copyright (c) 1986, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)intro.me 8.2 (Berkeley) 6/1/94
36 .ds MO 2.29\" version of -me to which this applies
38 \".he 'USING NROFF AND \-ME''%'
39 .eh 'USD:19-%''Writing Papers with NROFF using \-me'
40 .oh 'Writing Papers with NROFF using \-me''USD:19-%'
47 .b "Writing Papers with NROFF using \-me"
53 *Author's current address:
54 Computer Science Division,
56 University of California,
57 Berkeley, California 94720.
61 Electronics Research Laboratory
62 University of California, Berkeley
63 Berkeley, California 94720
67 This document describes
68 the text processing facilities
69 available on the \*U\(dg
71 \(dg\*U is a trademark
72 of AT&T Bell Laboratories
80 already is generally familiar
81 with the \*U operating system
85 This is intended to be a casual introduction,
87 as such not all material is covered.
89 many variations and additional features
90 of the \-me macro package
92 For a complete discussion of this
96 The \-me Reference Manual
99 The \*N/\*T Reference Manual.
101 \*N, a computer program
102 that runs on the \*U operating system,
105 and outputs a formatted paper
106 suitable for publication or framing.
107 The input consists of
109 or words to be printed,
112 which give instructions
114 telling how to format the printed copy.
120 describes the basic requests.
127 The more complex requests
128 which are not discussed in section 2
129 are covered in section 5.
132 discusses things you will need
134 if you want to typeset documents.
136 you probably won't want to read beyond section 4
137 until you have tried some of the basic features out.
139 When you have your raw text ready,
140 call the \*N formatter by typing
141 as a request to the \*U shell:
148 describes the type of terminal
149 you are outputting to.
156 for the line printer.
161 .q "lowest common denominator"
163 this is good for previewing output
165 A complete description of options
166 to the \*N command can be found in
168 The \*N/\*T Reference Manual.
172 is used in this manual
173 to mean a word or number
174 which appears on the same line
176 which modifies the meaning
196 which says to space four lines
198 Arguments are separated from the request
201 .sh 1 "Basics of Text Processing"
207 words from input lines,
209 output lines with those words,
211 the right hand margin by inserting extra spaces
213 and output the result.
225 packed onto output lines,
236 Sometimes you may want to start a new output line
237 even though the line you are on
240 at the end of a paragraph.
245 starts a new output line.
247 cause a break automatically,
248 as do blank input lines
249 and input lines beginning with a space.
252 are text to be formatted.
253 Some of the input lines
257 how to format the text.
258 Requests always have a period
262 as the first character
266 also does more complex things,
267 such as automatically numbering pages,
268 skipping over page folds,
269 putting footnotes in the correct place,
272 I can offer you a few hints
276 keep the input lines short.
277 Short input lines are easier to edit,
278 and \*N will pack words onto longer lines
280 In keeping with this,
286 since common corrections
287 are to add or delete sentences
290 do not put spaces at the end of lines,
291 since this can sometimes confuse the \*N
294 do not hyphenate words at the end of lines
295 (except words that should have hyphens in them,
298 \*N is smart enough to hyphenate words
300 but is not smart enough
302 and join a word back together.
308 since then you will get a space
313 .q "mother@\ in@law" .
317 .sh 1 "Basic Requests"
328 Now is the time for all good men
329 to come to the aid of their party.
330 Four score and seven years ago,...
332 produces a blank line
333 followed by an indented first line.
337 Now is the time for all good men
338 to come to the aid of their party.
339 Four score and seven years ago,...
342 Notice that the sentences
347 and lines beginning with spaces
353 Now is the time for all good men
354 to come to the aid of their party.
355 Four score and seven years ago,...
360 Now is the time for all good men
361 to come to the aid of their party.
362 Four score and seven years ago,...
364 A new line begins after the word
366 because the second line began with a space character.
371 which will be described later.
372 .sh 2 "Headers and Footers"
374 Arbitrary headers and footers
376 at the top and bottom
385 define the titles to put at the head and the foot
388 The titles are called
392 there is a left-justified part,
394 and a right-justified part.
395 To separate these three parts
396 the first character of
399 is used as a delimiter.
400 Any character may be used,
403 and double quote marks
406 is replaced by the current page number
407 whenever found in the title.
411 \&.he \(aa\(aa%\(aa\(aa
412 \&.fo \(aaJane Jones\(aa\(aaMy Book\(aa
414 results in the page number
418 in the lower left corner,
421 in the lower right corner.
422 .sh 2 "Double Spacing"
425 \*N will double space output text automatically if you
428 as is done in this section.
429 You can revert to single spaced mode
435 A number of requests allow
436 you to change the way the printed copy looks,
440 Most of these requests adjust the placing
443 (blank lines or spaces).
444 In these explanations,
445 characters in italics
446 should be replaced with values you wish to use;
448 represent characters which should actually be typed.
460 lines of blank space.
463 (meaning skip a single line)
464 or can be of the form
476 For example, the input:
479 My thoughts on the subject
482 leaves one and a half inches of space,
484 .q "My thoughts on the subject" ,
485 followed by a single blank line.
491 changes the amount of white space
492 on the left of the page
502 spaces more than you are already leaving),
505 (meaning leave less than you do now),
508 (meaning leave exactly
532 indented exactly five spaces
533 from the left margin,
539 on a pica typewriter),
544 minus two centimeters
566 should apply to one line only,
567 after which it should revert
568 to the previous indent.
574 Ware, James R. The Best of Confucius,
576 An excellent book containing translations of
577 most of Confucius\(aa most delightful sayings.
578 A definite must for anyone interested in the early foundations
579 of Chinese philosophy.
584 Ware, James R. The Best of Confucius,
586 An excellent book containing translations of
587 most of Confucius' most delightful sayings.
588 A definite must for anyone interested in the early foundations
589 of Chinese philosophy.
591 Text lines can be centered
600 To center more than one line,
606 is the number of lines to center),
610 If you want to center many lines
611 but don't want to count them,
620 request tells \*N to center zero more lines,
624 All of these requests
629 If you want to start a new line
630 without performing any other action,
635 Text can be underlined
642 causes the next input line
643 to be underlined when output.
644 You can underline multiple lines
645 by stating a count of
648 followed by those lines
656 Notice that these two input lines
659 will underline those eight words in \*N.
660 (In \*T they will be set in italics.)
663 Displays are sections of text
665 from the body of the paper.
669 are types of displays,
670 as are all the examples
671 used in this document.
673 except centered blocks
679 are quotes which are several lines long,
680 and hence are set in from the rest
684 These can be generated
689 to surround the quote.
693 As Weizenbaum points out:
695 It is said that to explain is to explain away.
696 This maxim is nowhere so well fulfilled
697 as in the areas of computer programming,...
702 As Weizenbaum points out:
704 It is said that to explain is to explain away.
705 This maxim is nowhere so well fulfilled
706 as in the areas of computer programming,...
716 when the material to be printed
717 should not be filled and justified
719 such as columns of figures
720 or the examples used in this paper.
729 Alternatives to avoid deadlock are:
731 Lock in a specified order
732 Detect deadlock and back out one process
733 Lock all resources needed before proceeding
738 Alternatives to avoid deadlock are:
740 Lock in a specified order
741 Detect deadlock and back out one process
742 Lock all resources needed before proceeding
748 is a display of lines
749 which are kept on a single page
751 An example of where you would use a keep
753 Keeps differ from lists
754 in that lists may be broken
756 whereas keeps will not.
758 Blocks are the basic kind of keep.
759 They begin with the request
761 and end with the request
763 If there is not room on the current page
764 for everything in the block,
766 This has the unpleasant effect
767 of leaving blank space
768 at the bottom of the page.
769 When this is not appropriate,
770 you can use the alternative,
772 .i "floating keeps" .
775 move relative to the text.
777 they are good for things
778 which will be referred to
782 A floating keep will appear
783 at the bottom of the current page
786 it will appear at the top
788 Floating keeps begin with the line
790 and end with the line
792 For an example of a floating keep,
800 Text of keep to be floated.
803 Figure 1. Example of a Floating Keep.
808 Figure 1. Example of a Floating Keep.
814 to draw a horizontal line
816 stands out from the text.
817 .sh 2 "Fancier Displays"
819 Keeps and lists are normally collected in
822 so that they are good for tables and such.
823 If you want a display
828 (Throughout this section,
836 will be indented from both margins.
841 And now boys and girls,
842 a newer, bigger, better toy than ever before!
843 Be the first on your block to have your own computer!
844 Yes kids, you too can have one of these modern
845 data processing devices.
846 You too can produce beautifully formatted papers
847 without even batting an eye!
852 And now boys and girls,
853 a newer, bigger, better toy than ever before!
854 Be the first on your block to have your own computer!
855 Yes kids, you too can have one of these modern
856 data processing devices.
857 You too can produce beautifully formatted papers
858 without even batting an eye!
861 Lists and blocks are also normally indented
862 (floating keeps are normally left justified).
863 To get a left-justified list,
866 To get a list centered
872 left justified list, enter:
881 first line of unfilled display
885 produces the indented text:
887 first line of unfilled display
894 request produces the left justified result:
896 first line of unfilled display
903 produces the line-at-a-time centered output:
905 first line of unfilled display
910 that you want to center several lines
912 rather than centering them
916 which are surrounded by the requests
920 All the lines are centered as a unit,
921 such that the longest line is centered
923 lined up around that line.
926 relative to each other
927 using centered blocks,
940 to center a group of lines
948 first line of unfilled display
957 first line of unfilled display
961 If the block requests
967 the result would have been the same,
968 but with no guarantee
969 that the lines of the centered block
970 would have all been on one page.
975 this causes the centered block
976 to center within the entire line
977 rather than within the line
987 There are a number of requests
991 are printed at the bottom of the current page.
993 is intended to be a variant form
995 the text is printed only
996 when explicitly called for,
997 such as at the end of each chapter.
999 are a type of delayed text
1001 (usually the page number)
1002 attached to each entry
1003 after a row of dots.
1004 Indexes are also saved
1005 until called for explicitly.
1008 Footnotes begin with the request
1010 and end with the request
1012 The current footnote number is maintained
1014 and can be used by typing \e**,
1015 to produce a footnote number\**.
1019 The number is automatically incremented
1020 after every footnote.
1025 A man who is not upright
1026 and at the same time is presumptuous;
1027 one who is not diligent and at the same time is ignorant;
1028 one who is untruthful and at the same time is incompetent;
1029 such men I do not count among acquaintances.\e**
1033 The Best of Confucius,
1034 Halcyon House, 1950.
1039 generates the result:
1041 A man who is not upright
1042 and at the same time is presumptuous;
1043 one who is not diligent and at the same time is ignorant;
1044 one who is untruthful and at the same time is incompetent;
1045 such men I do not count among acquaintances.\**
1049 The Best of Confucius,
1050 Halcyon House, 1950.
1059 so that you can be sure
1064 .sh 2 "Delayed Text"
1067 is very similar to a footnote
1068 except that it is printed
1069 when called for explicitly.
1070 This allows a list of
1074 at the end of each chapter,
1075 as is the convention in some disciplines.
1083 If you are using delayed text
1084 as your standard reference mechanism,
1085 you can still use footnotes,
1086 except that you may want to reference them
1087 with special characters*
1089 *Such as an asterisk.
1091 rather than numbers.
1096 (actually more like a table of contents,
1097 since the entries are not sorted alphabetically)
1098 resembles delayed text,
1099 in that it is saved until called for.
1101 each entry has the page number
1103 appended to the last line
1105 after a row of dots.
1107 Index entries begin with the request
1113 request may have a argument,
1114 which is the value to print
1117 It defaults to the current page number.
1118 If the page number given is an underscore
1124 To get the line of dots
1125 without a page number,
1128 which specifies an explicitly null page number.
1132 request prints the index.
1144 Why the sea is boiling hot
1147 Whether pigs have wings
1150 This is a terribly long index entry, such as might be used
1151 for a list of illustrations, tables, or figures; I expect it to
1152 take at least two lines.
1164 Why the sea is boiling hot
1167 Whether pigs have wings
1170 This is a terribly long index entry, such as might be used
1171 for a list of illustrations, tables, or figures; I expect it to
1172 take at least two lines.
1178 request may have a single character
1188 may be maintained simultaneously
1189 (such as a list of tables, table of contents, etc.).
1191 Notice that the index must be printed
1195 rather than at the beginning
1196 where it will probably appear
1197 (as a table of contents);
1198 the pages may have to be physically rearranged
1200 .sh 1 "Fancier Features"
1202 A large number of fancier requests
1204 notably requests to provide other sorts of paragraphs,
1205 numbered sections of the form
1207 (such as used in this document),
1208 and multicolumn output.
1209 .sh 2 "More Paragraphs"
1211 Paragraphs generally start with
1213 and with the first line
1215 It is possible to get
1216 left-justified block-style paragraphs
1221 as demonstrated by the next paragraph.
1223 Sometimes you want to use paragraphs
1229 (opposite of indented)
1231 This can be done with the
1234 A word specified on the same line as
1236 is printed in the margin,
1237 and the body is lined up
1238 at a prespecified position
1239 (normally five spaces).
1245 This is the first paragraph.
1246 Notice how the first line
1247 of the resulting paragraph lines up
1248 with the other lines in the paragraph.
1250 And here we are at the second paragraph already.
1251 You may notice that the argument to \c
1256 We can continue text...
1260 This is the first paragraph.
1261 Notice how the first line of the resulting paragraph lines up
1262 with the other lines in the paragraph.
1264 And here we are at the second paragraph already.
1265 You may notice that the argument to
1270 We can continue text without starting a new indented
1276 If you have spaces in the label of a
1280 .q "unpaddable space"
1281 instead of a regular space.
1282 This is typed as a backslash character
1285 followed by a space.
1294 If a label of an indented paragraph
1295 (that is, the argument to
1297 is longer than the space allocated for the label,
1299 will begin a new line after the label.
1304 This paragraph had a long label.
1305 The first character of text on the first line
1306 will not line up with the text on second and subsequent lines,
1307 although they will line up with each other.
1311 This paragraph had a long label.
1312 The first character of text on the first line
1313 will not line up with the text on second and subsequent lines,
1314 although they will line up with each other.
1316 It is possible to change the size of the label
1317 by using a second argument
1318 which is the size of the label.
1320 the above example could be done correctly
1325 which will make the paragraph indent
1326 10 spaces for this paragraph only.
1327 If you have many paragraphs to indent
1328 all the same amount,
1330 .i "number register"
1332 For example, to leave one inch of space
1338 somewhere before the first call to
1340 Refer to the reference manual
1341 for more information.
1346 with no argument at all
1347 no hanging tag will be printed.
1352 This is the first paragraph of the example.
1353 We have seen this sort of example before.
1355 This paragraph is lined up with the previous paragraph,
1356 but it has no tag in the margin.
1360 This is the first paragraph of the example.
1361 We have seen this sort of example before.
1363 This paragraph is lined up with the previous paragraph,
1364 but it has no tag in the margin.
1371 numbers paragraphs sequentially from 1.
1372 The numbering is reset at the next
1377 (to be described in the next section)
1383 This is the first point.
1385 This is the second point.
1386 Points are just regular paragraphs
1387 which are given sequence numbers automatically
1390 This paragraph will reset numbering by .np.
1393 we have reverted to numbering from one now.
1397 This is the first point.
1399 This is the second point.
1400 Points are just regular paragraphs
1401 which are given sequence numbers automatically
1404 This paragraph will reset numbering by .np.
1407 we have reverted to numbering from one now.
1411 request gives lists of this sort that are identified with
1412 bullets rather than numbers.
1413 The paragraphs are also crunched together.
1420 \&One tablespoon cream or top milk
1422 \&Salt, cayenne, and lemon juice to taste
1424 \&A generous two tablespoonfuls of butter
1429 if you put the first three ingredients in a a heavy, deep pan
1430 and whisk the ingredients madly over a medium flame
1431 (never taking your hand off the handle of the pot)
1432 until the mixture reaches the consistency of custard
1433 (just a minute or two),
1434 then mix in the butter off-heat,
1435 you will have a wonderful Hollandaise sauce.
1440 One tablespoon cream or top milk
1442 Salt, cayenne, and lemon juice to taste
1444 A generous two tablespoonfuls of butter
1445 .sh 2 "Section Headings"
1448 (such as the ones used in this document)
1449 can be automatically generated
1457 of the section number
1458 and a section title.
1460 specifies how many numbers
1462 (separated by decimal points)
1463 in the section number.
1467 has a depth of three.
1471 in a fairly intuitive fashion.
1473 (increase the depth),
1474 the new number starts out
1476 If you subtract section numbers
1477 (or keep the same number)
1478 the final number is incremented.
1482 \&.sh 1 "The Preprocessor"
1483 \&.sh 2 "Basic Concepts"
1484 \&.sh 2 "Control Inputs"
1487 \&.sh 1 "Code Generation"
1490 produces as output the result:
1502 You can specify the section number to begin
1503 by placing the section number after the section title,
1504 using spaces instead of dots.
1508 \&.sh 3 "Another section" 7 3 4
1510 will begin the section numbered
1514 requests will number relative to this number.
1516 There are more complex features
1517 which will cause each section to be indented
1518 proportionally to the depth of the section.
1519 For example, if you enter:
1524 each section will be indented by an amount
1527 must have a scaling factor attached,
1528 that is, it must be of the form
1532 is a character telling what units
1546 (the width of a single character).
1548 to indent each section
1555 sections will be indented by
1557 per level of depth in the section number.
1559 this document was produced
1564 at the beginning of the input file,
1565 giving three spaces of indent
1568 Section headers without automatically generated numbers
1573 which will do a section heading,
1574 but will put no number on the section.
1575 .sh 2 "Parts of the Basic Paper"
1577 There are some requests
1578 which assist in setting up
1583 initializes for a title page.
1584 There are no headers or footers
1586 and unlike other pages
1588 and leave blank space
1591 a typical title page might appear as:
1596 THE GROWTH OF TOENAILS
1608 sets up the environment
1609 of the \*N processor
1611 using the rules established at Berkeley.
1612 It defines the correct headers and footers
1613 (a page number in the upper right hand corner only),
1614 sets the margins correctly,
1622 Each chapter is automatically numbered
1624 and a heading is printed at the top of each chapter
1625 with the chapter number
1626 and the chapter name
1629 to begin a chapter called
1642 with appropriate spacing for a thesis.
1643 Also, the header is moved to the foot of the page
1644 on the first page of a chapter.
1647 request was not designed to work only with the
1650 it is tuned for the format acceptable
1660 the result is a chapter with no heading.
1661 This can also be used at the beginning
1665 was used to generate page one
1669 papers traditionally have the abstract,
1671 and so forth at the front of the paper,
1672 it is more convenient to format
1675 This is so that index entries
1676 can be collected and then printed
1677 for the table of contents
1679 At the end of the paper,
1683 which begins the preliminary part
1685 After issuing this request,
1688 request will begin a preliminary section
1691 this prints the page number
1693 in lower case Roman numbers.
1695 may be used repeatedly
1696 to begin different parts of the
1700 the table of contents,
1702 list of illustrations,
1707 to begin the bibliographic section
1708 at the end of the paper.
1710 the paper might appear
1711 as outlined in figure 2.
1713 comments begin with the sequence
1720 \&.th \e" set for thesis mode
1721 \&.fo \(aa\(aaDRAFT\(aa\(aa \e" define footer for each page
1722 \&.tp \e" begin title page
1723 \&.(l C \e" center a large block
1724 THE GROWTH OF TOENAILS
1730 \&.)l \e" end centered part
1731 \&.+c INTRODUCTION \e" begin chapter named "INTRODUCTION"
1732 \&.(x t \e" make an entry into index `t'
1734 \&.)x \e" end of index entry
1736 \&.+c "NEXT CHAPTER" \e" begin another chapter
1737 \&.(x t \e" enter into index `t' again
1745 text of chapter three
1746 \&.++ B \e" begin bibliographic information
1747 \&.+c BIBLIOGRAPHY \e" begin another `chapter'
1751 text of bibliography
1752 \&.++ P \e" begin preliminary material
1753 \&.+c "TABLE OF CONTENTS"
1754 \&.xp t \e" print index `t' collected above
1755 \&.+c PREFACE \e" begin another preliminary section
1760 Figure 2. Outline of a Sample Paper
1763 .sh 2 "Equations and Tables"
1765 Two special \*U programs exist
1766 to format special types of material.
1771 for the phototypesetter
1772 and \*N respectively.
1775 extremely pretty tables
1776 in a variety of formats.
1777 This document will only describe
1779 to the standard features;
1780 consult the reference manuals
1781 for those processors
1782 for a description of their use.
1788 programs are described fully
1791 Typesetting Mathematics \- User's Guide
1792 by Brian W. Kernighan
1793 and Lorinda L. Cherry.
1794 Equations are centered,
1795 and are kept on one page.
1796 They are introduced by the
1798 request and terminated by the
1805 equation number as an
1807 which is printed vertically centered
1808 on the right hand side
1810 If the equation becomes too long
1819 continuation of equation 34
1827 specifies that the equation
1832 program produces tables.
1833 It is fully described
1834 (including numerous examples)
1837 Tbl \- A Program to Format Tables
1839 Tables begin with the
1845 Tables are normally kept on a single page.
1846 If you have a table which is too big
1847 to fit on a single page,
1848 so that you know it will extend
1850 begin the table with the request
1854 after the part of the table
1856 duplicated at the top of every page
1857 that the table is printed on.
1858 For example, a table definition
1859 for a long table might look like:
1860 .ds TA \|\h'.4n'\v'-.2n'\s-4\zT\s0\v'.2n'\h'-.4n'\(ci\|
1861 .if n .ds TA \ \o'-T'\ \"
1872 .sh 2 "Two Column Output"
1874 You can get two column output
1876 by using the request
1878 This causes everything after it
1879 to be output in two-column form.
1882 will start a new column;
1887 may leave a totally blank column
1888 when it starts a new page.
1889 To revert to single column output,
1892 .sh 2 "Defining Macros"
1896 is a collection of requests and text
1898 by stating a simple request.
1899 Macros begin with the line
1904 is the name of the macro to be defined)
1905 and end with the line consisting of two dots.
1906 After defining the macro,
1910 is the same as stating all the other lines.
1914 and then centers the next input line,
1922 and use it by typing:
1929 Macro names may be one or two characters.
1930 In order to avoid conflicts
1932 always use upper case letters as names.
1933 The only names to avoid are
1940 .sh 2 "Annotations Inside Keeps"
1942 Sometimes you may want to put
1944 or index entry inside a keep.
1946 if you want to maintain a
1947 .q "list of figures"
1948 you will want to do something like:
1962 will give you a figure
1964 and an entry in the index
1966 (presumably a list of figures index).
1970 is read and interpreted
1971 when the keep is read,
1972 not when it is printed,
1973 so the page number in the index is likely to be wrong.
1974 The solution is to use the magic string
1976 at the beginning of all the lines dealing with the index.
1991 which will defer the processing of the index
1992 until the figure is output.
1994 that the page number in the index
1996 The same comments apply
2004 .sh 1 "\*T and the Photosetter"
2010 on either a regular terminal
2011 or when phototypeset
2012 using the \*T formatting program.
2018 There are three fonts
2019 that are available simultaneously,
2023 plus the special math font.
2024 The normal font is Roman.
2025 Text which would be underlined in \*N
2032 There are ways of switching between fonts.
2040 and bold fonts respectively.
2041 You can set a single word
2043 by typing (for example):
2050 but does not affect the surrounding text.
2052 italic and bold text
2055 Notice that if you are setting more than one word
2057 you must surround that word with double quote marks
2059 so that it will appear to the \*N processor as a single word.
2060 The quote marks will not appear in the formatted text.
2061 If you do want a quote mark to appear,
2062 you should quote the entire string
2063 (even if a single word),
2066 quote marks where you want one to appear.
2068 if you want to produce the text:
2070 .i """Master Control\|"""
2072 in italics, you must type:
2074 \&.i """Master Control\e|"""
2078 produces a very narrow space
2081 does not overlap the quote sign in \*T,
2084 .i """Master Control"""
2087 There are also several
2094 \&.bi "bold italics"
2095 \&.bx "words in a box"
2102 .bx "words in a box"
2104 In \*N these all just underline
2106 Notice that pseudo font requests
2107 set only the single parameter in the pseudo font;
2108 ordinary font requests will begin setting all text
2110 if you do not provide a parameter.
2111 No more than one word
2113 with these three font requests
2114 in the middle of lines.
2116 of the way \*T justifies text.
2118 if you were to issue the requests:
2120 \&.bi "some bold italics"
2122 \&.bx "words in a box"
2124 in the middle of a line
2126 .bi "some bold italics"
2128 .bx "words in a box" ,\c
2131 .if t which I think you will agree does not look good.
2132 .if n which would look really lousy in \*T.
2134 The second parameter
2135 of all font requests
2136 is set in the original font.
2147 in the font of the surrounding text,
2152 To set the two words
2163 You can mix fonts in a word by using the
2166 at the end of a line
2168 .q "continue text processing" ;
2169 this allows input lines
2170 to be joined together
2171 without a space between them.
2172 For example, the input:
2180 but if we had typed:
2185 the result would have been
2192 supports different sizes of type,
2194 The default point size
2197 8 points for footnotes.
2198 To change the pointsize,
2206 is the size wanted in points.
2208 .i "vertical spacing"
2209 (distance between the bottom of most letters
2212 between adjacent lines)
2213 is set to be proportional
2216 These pointsize changes are
2219 to reset the pointsize of basic text to twelve point, use:
2225 to reset the default pointsize of
2228 and titles respectively.
2229 If you only want to set the names of sections in a larger pointsize,
2234 alone \*- this sets section titles
2238 in a larger font than the default.
2240 A single word or phrase can be set in a smaller pointsize
2241 than the surrounding text
2245 This is especially convenient for words that are all capitals,
2246 due to the optical illusion that makes them look even larger
2247 than they actually are.
2258 changing point sizes
2259 on the phototypesetter
2260 is a slow mechanical operation.
2261 On laser printers it may require loading new fonts.
2263 should be considered carefully.
2267 It is conventional when using
2269 use pairs of grave and acute accents
2270 to generate double quotes,
2272 double quote character
2274 This is because it looks better
2275 to use grave and acute accents;
2276 for example, compare
2280 In order to make quotes compatible
2281 between the typesetter and terminals,
2282 you may use the sequences
2286 to stand for the left and right quote
2288 These both appear as
2299 \e*(lqSome things aren\(aat true
2300 even if they did happen.\e*(rq
2302 to generate the result:
2304 .q "Some things aren't true even if they did happen."
2307 the special font request:
2313 Notice that you must surround
2314 the material to be quoted
2315 with double quote marks
2316 if it is more than one word.
2321 I would like to thank
2325 for having the courage
2326 to use the \-me macros
2327 to produce non-trivial papers
2328 during the development stages;
2332 for their help with the documentation phase;
2334 for numerous complaints years after I was
2337 most accompanied by fixes
2338 (hence forcing me to fix several small bugs);
2339 and the plethora of people who have contributed ideas
2340 and have given support for the project.
2346 and applies to version