📄 ms
字号:
.IFootnotes..RMaterial placed between lines with the commands .FS(footnote) and .FE (footnote end) willbe collected, remembered, and finally placedat the bottom of the current page*.By default, footnotes are 11/12th thelength of normal text,but this can be changed using the FL register (see below)..FS* Like this..FE.PP.IDisplays and Tables..RTo prepare displays of lines, such as tables, in whichthe lines should not be re-arranged,enclose them in the commands .DS and .DE.DS L .DS table lines, like the examples here, are placed between .DS and .DE .DE.DEBy default, lines between .DS and .DE are indented and left-adjusted.You can also center lines, or retain the left margin.Lines bracketed by .DS C and .DE commands arecentered (and not re-arranged); lines bracketedby .DS L and .DE are left-adjusted, not indented, andnot re-arranged.A plain .DS is equivalentto .DS I, which indents and left-adjusts. Thus,.DS Cthese lines were precededby .DS C and followed bya .DE command;.DEwhereas.DS Lthese lines were precededby .DS L and followed bya .DE command..DENote that .DS C centers each line; there is a variant .DS Bthat makes the display into a left-adjusted block of text, andthen centers that entire block.Normally a display is kept together, on one page.If you wish to have a long display whichmay be split across pageboundaries,use .CD, .LD, or .ID in place ofthe commands .DS C, .DS L, or .DS I respectively.An extra argument to the .DS I or .DS command is takenas an amount to indent.Note: it is tempting to assume that .DS R will right adjustlines, but it doesn't work..PP.IBoxing words or lines..RTo draw rectangular boxes around words the command.DS L .BX word.DEwill print.BX wordas shown.The boxes will not be neat on a terminal, and thisshould not be used as a substitute for italics..B1Longer pieces of text may be boxedby enclosing them with .B1 and .B2:.DS L .B1 text... .B2.DEas has been done here..B2.PP.IKeeping blocks together..RIf you wish to keep a table or other block of linestogether on a page, there are ``keep - release'' commands.If a block of lines preceded by .KS and followed by .KE doesnot fit on the remainder of the current page, it will beginon a new page.Lines bracketed by .DS and .DE commands are automaticallykept together this way.There is also a ``keep floating'' command: if theblock to be kept together is preceded by .KF instead of .KSand does not fiton the current page, it will be moved down through the textuntil the top of the next page. Thus, no large blank spacewill be introduced in the document. .PP.INroff/Troff commands..RAmong the useful commands from the basic formatting programsare the following. They all work with both typesetter andcomputer terminal output:.DS L .bp - begin new page. .br - ``break'', stop running text from line to line. .sp n - insert n blank lines. .na - don't adjust right margins..DE.PP.IDate..RBy default, documents produced on computer terminals have thedate at the bottom of each page; documents produced onthe typesetter don't.To force the date, say ``.DA''. To force no date, say ``.ND''.To lie about the date, say ``.DA July 4, 1776''which puts the specified date at the bottom of each page.The command.DS L .ND May 8, 1945.DEin ".RP" formatplaces the specified date on the cover sheet and nowhere else.Place this line before the title..PP.ISignature line..RYou can obtain a signature line by placingthe command .SG in the document.The authors' names willbe output in place of the .SG line.An argument to .SGis usedas a typing identification line, andplaced after the signatures.The .SG command is ignoredin released paper format..PP.IRegisters..RCertain of the registers used by \-ms canbe altered to change defaultsettings.They should be changed with .nr commands,as with.DS .nr PS 9.DE.bd Ito make the default point size 9 point.If the effect is needed immediately, thenormal.Itroff.Rcommand should be usedin addition to changing the number register..br.ps 9.vs 10p.TSc0 c c cc c c ca l l l.Register Defines Takes Default effectPS point size next para. 10VS line spacing next para. 12 ptsLL line length next para. 6\(fm\(fmLT title length next para. 6\(fm\(fmPD para. spacing next para. 0.3 VSPI para. indent next para. 5 ensFL footnote length next FS 11/12 LLCW column width next 2C 7/15 LLGW intercolumn gap next 2C 1/15 LLPO page offset next page 26/27\(fm\(fmHM top margin next page 1\(fm\(fmFM bottom margin next page 1\(fm\(fm.TE.ps \n(PS.vs \n(VSYou may also alterthe stringsLH, CH, and RH which are the left, center, and right headingsrespectively; and similarly LF, CF, and RF which are strings in thepage footer.The page number on.Ioutput.Ris taken from register PN, to permitchanging its output style.For more complicated headers and footersthe macros PT and BT can be redefined, asexplained earlier..bd I 3.PP.IAccents..RTo simplify typing certain foreign words,strings representing common accent marks are defined.They precede the letter over which the markis to appear.Here are the strings:.TScenter;c c6 c c.Input Output Input Output\e*\(fme \*'e \e*~a \*~a\e*\(gae \*`e \e*Ce \h'0.15m'\v'-0.6m'\s6\zv\s0\v'0.6m'\h'-0.15m'e\e*:u \*:u \e*,c \*,c\e*^e \o'^e'.TE.PP.IUse..RAfter your document is prepared and stored on a file,you can print it on a terminal with the command*.bd I.FS* If .2C was used, pipe the.I nroffoutputthrough.I col;make the first line of the input``.pi /usr/bin/col.''.br.FE.DS L.I nroff \-ms file.R.DEand you can print it on the typesetter with thecommand.DS L.I troff \-ms file.R.DE(many options are possible).In each case, if your document is stored in several files,just list all the filenameswhere we have used ``file''.If equations or tables are used,.Ieqn.Rand/or.Itbl.Rmust be invoked as preprocessors..br.bd I 3.PP.IReferences and further study..RIf you have to do Greek or mathematics, see.I eqn[1]for equation setting.To aid.I eqnusers,.I \-msprovides definitions of .EQ and .ENwhich normally center the equation and set it off slightly.An argument on .EQ is taken to be an equationnumber and placed in the right margin near the equation.In addition, there are three special arguments to EQ:the letters C, I, and L indicate centered (default),indented, and left adjusted equations, respectively. If there is both a format argumentand an equation number,give the format argument first, as in.bd I.DS .EQ L (1.3a).DEfor a left-adjusted equation numbered (1.3a)..PPSimilarly,the macros .TS and .TEare definedto separate tables (see [2]) from text with a little space.A very long table with a heading may be brokenacross pages by beginning it with .TS Hinstead of .TS,and placing the line .TH in the table dataafter the heading. If the tablehas no heading repeated from page to page,just use the ordinary .TS and .TE macros..PPTo learn more about.I troffsee[3] for a general introduction, and [4]for the full details (experts only).Information on related UNIX commandsis in [5].For jobs that do not seem well-adaptedto \-ms, consider other macro packages.It is often far easier to write a specific macro packagesfor such tasks as imitating particular journals thanto try to adapt \-ms..PP.bd I 3.IAcknowledgment..RMany thanks are due to Brian Kernighan forhis help in the design and implementation of this package,and for his assistance in preparing this manual..bd I.SH.ceReferences.PP.IP [1]B. W. Kernighan and L. L. Cherry,.ITypesetting Mathematics \(em Users Guide (2nd edition),.RBell Laboratories Computing Science Report no. 17..IP [2]M. E. Lesk,.ITbl \(em A Program to Format Tables,.RBell Laboratories Computing Science Report no. 45..IP [3]B. W. Kernighan,.IA Troff Tutorial,.RBell Laboratories, 1976..IP [4]J. F. Ossanna,.INroff\|/Troff Reference Manual,.RBell Laboratories Computing Science Report no. 51..IP [5]K. Thompson and D. M. Ritchie,.IUNIX Programmer's Manual,.RBell Laboratories, 1978..1C.SH.ceAppendix A.ceList of Commands.ft R.TSexpand;l2 l5 l2 l.1C Return to single column format. LG Increase type size.2C Start double column format. LP Left aligned block paragraph.AB Begin abstract. AE End abstract. AI Specify author's institution. AU Specify author. ND Change or cancel date.B Begin boldface. NH Specify numbered heading.DA Provide the date on each page. NL Return to normal type size.DE End display. PP Begin paragraph.DS Start display (also CD, LD, ID). EN End equation. R Return to regular font (usually Roman).EQ Begin equation. RE End one level of relative indenting.FE End footnote. RP Use released paper format.FS Begin footnote. RS Relative indent increased one level. SG Insert signature line.I Begin italics. SH Specify section heading. SM Change to smaller type size.IP Begin indented paragraph. TL Specify title.KE Release keep. KF Begin floating keep. UL Underline one word.KS Start keep. .TE.sp.ce.ft BRegister Names.ft R.PPThe following register names are used by \-ms internally.Independent use of these names in one's own macros mayproduce incorrect output.Note that no lower case letters are used in any \-ms internal name..TS expand;c s s s s s s s s s sl l l l l l l l l l l.Number registers used in \-ms: DW GW HM IQ LL NA OJ PO T. TV#T EF H1 HT IR LT NC PD PQ TB VS.T FC H2 IF IT MF ND PE PS TC WF1T FL H3 IK KI MM NF PF PX TD YEAV FM H4 IM L1 MN NS PI RO TN YYCW FP H5 IP LE MO OI PN ST TQ ZN.TE.sp.TSexpand;c s s s s s s s s s sl l l l l l l l l l l.String registers used in \-ms\(fm A5 CB DW EZ I KF MR R1 RT TL\(ga AB CC DY FA I1 KQ ND R2 S0 TM^ AE CD E1 FE I2 KS NH R3 S1 TQ~ AI CF E2 FJ I3 LB NL R4 S2 TS: AU CH E3 FK I4 LD NP R5 SG TT, B CM E4 FN I5 LG OD RC SH UL1C BG CS E5 FO ID LP OK RE SM WB2C BT CT EE FQ IE ME PP RF SN WHA1 C D EL FS IM MF PT RH SY WTA2 C1 DA EM FV IP MH PY RP TA XDA3 C2 DE EN FY IZ MN QF RQ TE XFA4 CA DS EQ HO KE MO R RS TH XK.TE.ne 4i.br.ne 5i.ta 1i 2i 3i 4i.vs .6i.nf.in 1i.ll 4.2i.ceOrder of Commands in Input RPTLAUAI AB AE NH, SH PP, LP text ....br.ceFigure 1.fi.in 0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -