📄 meintro.me
字号:
per level of depth in the section number.For example,this document was producedusing the request.(b\&.nr si 3n.)bat the beginning of the input file,giving three spaces of indentper section depth..ppSection headers without automatically generated numberscan be done using:.(b\&.uh "Title".)bwhich will do a section heading,but will put no number on the section..sh 2 "Parts of the Basic Paper".ppThere are some requestswhich assist in setting uppapers.The.b .tprequestinitializes for a title page.There are no headers or footerson a title page,and unlike other pagesyou can space downand leave blank spaceat the top.For example,a typical title page might appear as:.(b\&.tp\&.sp 2i\&.(l CTHE GROWTH OF TOENAILSIN UPPER PRIMATES\&.spby\&.spFrank N. Furter\&.)l\&.bp.)b.ppThe.b .+c \ \c.i Trequest can be usedto start chapters.Each chapter is automatically numberedfrom one,and a heading is printed at the top of each chapterwith the chapter numberand the chapter name.i T .For example,to begin a chapter called.q Conclusions ,use the request:.(b\&.+c "CONCLUSIONS".)bwhich will produce,on a new page,the lines.(b CCHAPTER 5CONCLUSIONS.)bwith appropriate spacing for a thesis.Also, the header is moved to the foot of the pageon the first page of a chapter.Although the.b .+crequest was not designed to work only with the.b .threquest,it is tuned for the format acceptablefor a PhD thesisat Berkeley..ppIf thetitle parameter.i Tis omitted from the.b .+crequest,the result is a chapter with no heading.This can also be used at the beginningof a paper;for example,.b .+cwas used to generate page oneof this document..ppAlthoughpapers traditionally have the abstract,table of contents,and so forth at the front of the paper,it is more convenient to formatand print them lastwhen using \*G.This is so that index entriescan be collected and then printedfor the table of contents(or whatever).At the end of the paper,issue the.b ".++ P"request,which begins the preliminary partof the paper.After issuing this request,the.b .+crequest will begin a preliminary sectionof the paper.Most notably,this prints the page numberrestarted from onein lower case Roman numbers..b .+cmay be used repeatedlyto begin different parts of thefront materialfor example,the abstract,the table of contents,acknowledgments,list of illustrations,etc.The request.b ".++ B"may also be usedto begin the bibliographic sectionat the end of the paper.For example,the paper might appearas outlined in figure 2.(In this figure,comments begin with the sequence.b \e" .).(z.hl.if t .in 0.5i.if t .ta 2i.if n .ta 3i\&.th \e" set for thesis mode\&.fo \(aa\(aaDRAFT\(aa\(aa \e" define footer for each page\&.tp \e" begin title page\&.(l C \e" center a large blockTHE GROWTH OF TOENAILSIN UPPER PRIMATES\&.spby\&.spFrank Furter\&.)l \e" end centered part\&.+c INTRODUCTION \e" begin chapter named "INTRODUCTION"\&.(x t \e" make an entry into index `t'Introduction\&.)x \e" end of index entrytext of chapter one\&.+c "NEXT CHAPTER" \e" begin another chapter\&.(x t \e" enter into index `t' againNext Chapter\&.)xtext of chapter two\&.+c CONCLUSIONS\&.(x tConclusions\&.)xtext of chapter three\&.++ B \e" begin bibliographic information\&.+c BIBLIOGRAPHY \e" begin another `chapter'\&.(x tBibliography\&.)xtext of bibliography\&.++ P \e" begin preliminary material\&.+c "TABLE OF CONTENTS"\&.xp t \e" print index `t' collected above\&.+c PREFACE \e" begin another preliminary sectiontext of preface.sp 2.in 0.ceFigure 2. Outline of a Sample Paper.hl.)z.sh 2 "Equations and Tables".ppTwo special \*U programs existto format special types of material..b Eqnsets equations..b Tblarranges to printextremely pretty tablesin a variety of formats.This document will only describethe embellishmentsto the standard features;consult the reference manualsfor those processorsfor a description of their use..ppThe.b eqnprogram is described fullyin the document.ulTypesetting Mathematics \- User's Guideby Brian W. Kernighanand Lorinda L. Cherry.Equations are centered,and are kept on one page.They are introduced by the.b .EQrequest and terminated by the.b .ENrequest..ppThe.b .EQrequest may take anequation number as anoptional argument,which is printed vertically centeredon the right hand sideof the equation.If the equation becomes too longit should be splitbetween two lines.To do this, type:.(b\&.EQ (eq 34)text of equation 34\&.EN C\&.EQcontinuation of equation 34\&.EN.)bThe.b Con the.b .ENrequestspecifies that the equationwill be continued..ppThe.b tblprogram produces tables.It is fully described(including numerous examples)in the document.ulTbl \- A Program to Format Tablesby M. E. Lesk.Tables begin with the.b .TSrequestand end with the.b .TErequest.Tables are normally kept on a single page.If you have a table which is too bigto fit on a single page,so that you know it will extendto several pages,begin the table with the request.b ".TS\ H"and put the request.b .THafter the part of the tablewhich you wantduplicated at the top of every pagethat the table is printed on.For example, a table definitionfor a long table might look like:.ds TA \|\h'.4n'\v'-.2n'\s-4\zT\s0\v'.2n'\h'-.4n'\(ci\|.if n .ds TA \ \o'-T'\ \".(b\&.TS Hc s sn n n.THE TABLE TITLE\&.THtext of the table\&.TE.)b.pp.sh 2 "Two Column Output".ppYou can get two column outputautomaticallyby using the request.b .2c .This causes everything after itto be output in two-column form.The request.b .bcwill start a new column;it differs from.b .bpin that.b .bpmay leave a totally blank columnwhen it starts a new page.To revert to single column output,use.b .1c ..sh 2 "Defining Macros".ppA.i macrois a collection of requests and textwhich may be usedby stating a simple request.Macros begin with the line.b ".de" \ \c.i xx(where.i xxis the name of the macro to be defined)and end with the line consisting of two dots.After defining the macro,stating the line.b . \c.i xxis the same as stating all the other lines.For example,to define a macrothat spaces 3 linesand then centers the next input line,enter:.(b\&.de SS\&.sp 3\&.ce\&...)band use it by typing:.(b\&.SS\&Title Line(beginning of text).)b.ppMacro names may be one or two characters.In order to avoid conflictswith names in \-me,always use upper case letters as names.The only names to avoid are.b TS ,.b TH ,.b TE ,.b EQ ,and.b EN ..sh 2 "Annotations Inside Keeps".ppSometimes you may want to puta footnoteor index entry inside a keep.For example,if you want to maintain a.q "list of figures"you will want to do something like:.(b\&.(z\&.(ctext of figure\&.)c\&.ceFigure 5.\&.(x fFigure 5\&.)x\&.)z.)bwhich you may hopewill give you a figurewith a labeland an entry in the index.b f(presumably a list of figures index).Unfortunately,theindex entryis read and interpretedwhen the keep is read,not when it is printed,so the page number in the index is likely to be wrong.The solution is to use the magic string.b \e!at the beginning of all the lines dealing with the index.In other words,you should use:.(b\&.(z\&.(cText of figure\&.)c\&.ceFigure 5.\e!.(x f\e!Figure 5\e!.)x\&.)z.)bwhich will defer the processing of the indexuntil the figure is output.This will guaranteethat the page number in the indexis correct.The same comments applytoblocks(with.b .(band.b .)b )as well..sh 1 "\*T and the Photosetter".ppWith a little care,you can preparedocuments thatwill print nicelyon either a regular terminalor when phototypesetusing the \*T formatting program..sh 2 "Fonts".ppA.i fontis a style of type.There are three fontsthat are available simultaneously,Times Roman,Times Italic,and Times Bold,plus the special math font.The normal font is Roman..ppThere are ways of switching between fonts.The requests.b .r ,.b .i ,.b .b ,and.b .biswitch to Roman,italic,bold,and bold-italic fonts respectively.You can set a single wordin some fontby typing (for example):.(b\&.i word.)bwhich will set.i wordin italicsbut does not affect the surrounding text..ppNotice that if you are setting more than one wordin whatever font,you must surround that word with double quote marks(`\|"\|')so that it will appear to the \*G processor as a single word.The quote marks will not appear in the formatted text.If you do want a quote mark to appear,you should quote the entire string(even if a single word),and use.i twoquote marks where you want one to appear.For example,if you want to produce the text:.(b.i """Master Control\|""".)bin italics, you must type:.(b\&.i """Master Control\e|""".)bThe.b \e|produces a very narrow spaceso that the.q ldoes not overlap the quote sign in \*G,like this:.(b.i """Master Control""".)b.ppThere are also some.q pseudo-fontsavailable.The input:.(b\&.(b\&.u underlined\&.bx "words in a box"\&.)b.)bgenerates.(b.u underlined.bx "words in a box".)bNotice that pseudo font requestsset only the single parameter in the pseudo font;ordinary font requests will begin setting all textin the special fontif you do not provide a parameter.No more than one wordshould appearwith these three font requestsin the middle of lines.This is becauseof the way \*G justifies text.For example,if you were to issue the requests:.(b\&.u "some bold italics"and\&.bx "words in a box".)bin the middle of a line\*G would produce.u "some bold italics"and.bx "words in a box" ,\pwhich I think you will agree does not look good..ppThe second parameterof all font requestsis set in the original font.For example,the font request:.(b\&.b bold face.)bgenerates.q boldin bold font,but sets.q facein the font of the surrounding text,resulting in:.(b.b bold face..)bTo set the two words.b boldand.b faceboth in.b "bold face" ,type:.(b\&.b "bold face".)b.ppYou can mix fonts in a word by using thespecial sequence.b \ecat the end of a lineto indicate.q "continue text processing" ;this allows input linesto be joined togetherwithout a space between them.For example, the input:.(b\&.u under \ec\&.i italics.)bgenerates.u under \c.i italics ,but if we had typed:.(b\&.u under\&.i italics.)bthe result would have been.u under.i italicsas two words..sh 2 "Point Sizes".ppThe phototypesettersupports different sizes of type,measured in points.The default point sizeis 10 pointsfor most text,8 points for footnotes.To change the pointsize,type:.(b\&.sz \c.i +N.)bwhere.i Nis the size wanted in points.The.i "vertical spacing"(distance between the bottom of most letters(the.i baseline )between adjacent lines)is set to be proportionalto the type size..ppThese pointsize changes are.i temporary !!!For example,to reset the pointsize of basic text to twelve point, use:.(b\&.nr pp 12\&.nr sp 12\&.nr tp 12.)bto reset the default pointsize ofparagraphs,section headers,and titles respectively.If you only want to set the names of sections in a larger pointsize,use:.(b\&.nr sp 11.)balone \*- this sets section titles(e.g.,.b "Point Sizes"above)in a larger font than the default..ppA single word or phrase can be set in a smaller pointsizethan the surrounding textusing the.b .smrequest.This is especially convenient for words that are all capitals,due to the optical illusion that makes them look even largerthan they actually are.For example:.(b\&.sm UNIX.)bprints as.sm UNIXrather thanUNIX..ppWarning:changing point sizeson the phototypesetteris a slow mechanical operation.On laser printers it may require loading new fonts.Size changesshould be considered carefully..sh 2 "Quotes".ppIt is conventional when usingthe typesetter touse pairs of grave and acute accentsto generate double quotes,rather than thedouble quote character(`\|"\|').This is because it looks betterto use grave and acute accents;for example, compare"quote" to``quote''..ppYou may use the sequences.b \e*(lqand.b \e*(rqto stand for the left and right quoterespectively.For example,use:.(b\e*(lqSome things aren\(aat trueeven if they did happen.\e*(rq.)bto generate the result:.(b.q "Some things aren't true even if they did happen.".)bAs a shorthand,the special font request:.(b\&.q "quoted text".)bwill generate.q "quoted text" .Notice that you must surroundthe material to be quotedwith double quote marksif it is more than one word..sh 0.sp 1i.b Acknowledgments.ppI would like to thankBob Epstein,Bill Joy,and Larry Rowefor having the courageto use the \-me macrosto produce non-trivial papersduring the development stages;Ricki Blau,Pamela Humphrey,and Jim Joycefor their help with the documentation phase;peter kesslerfor numerous complaints years after I was.q donewith this project,most accompanied by fixes(hence forcing me to fix several small bugs);and the plethora of people who have contributed ideasand have given support for the project..sp 1iThis document was\*G'edon \*(tdand applies to the version of the \-me macrosincluded with \*G version \*(MO.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -