📄 meref.me
字号:
.\" Copyright (c) 1986 The Regents of the University of California..\" All rights reserved..\".\" Redistribution and use in source and binary forms are permitted.\" provided that the above copyright notice and this paragraph are.\" duplicated in all such forms and that any documentation,.\" advertising materials, and other materials related to such.\" distribution and use acknowledge that the software was developed.\" by the University of California, Berkeley. The name of the.\" University may not be used to endorse or promote products derived.\" from this software without specific prior written permission..\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE..\".\" @(#)ref.me 6.4 (Berkeley) 7/17/89.\".\" Modified by jjc@jclark.com for groff..\"UC 7.ll 6.5i.lt 6.5i.\"pn 0.ds MO @VERSION@.de TL \" *** title line.lp.di XX...ie \n(.g \{\.de DE\?\h'|\\n(DIu'\c\?...\}.el \{\.de DE\\\\h'|\\\\n(DIu'\\\\c...\}.am DE.br.di.in +\\n(DIu.ti 0.cu 1000.XX.rm XX.cu 0...ds G \s-1GROFF\s0.ds N \s-1NROFF\s0.ds T \s-1TROFF\s0.nr DI 1.5i.he '\-ME REFERENCE MANUAL''%'.de NR.b "\en\\$1" "\\$2"...de ST.b "\e*\\$1" "\\$2"...\"sc.\"eh 'USD:23-%''\-me Reference Manual'.\"oh '\-me Reference Manual''USD:23-%'.+c.ce 20.sz 14.b "\-ME REFERENCE MANUAL".sz.sp.i "\*G Version \*(MO\(dg".(f\(dgBased on Berkeley Release 2.31..)f.sp 2.ulEric P. Allman*.(f*Author's current address:Britton Lee, Inc.,1919 Addison Suite 105,Berkeley, California 94704..)f.spProject INGRESElectronics Research LaboratoryUniversity of California, BerkeleyBerkeley, California 94720.sp 2.i "Modified for \*G by James Clark".ce 0.sp 4.ppThis document describesin extremely terse formthe featuresof the.b \-memacro packagefor \*G.Some familiarity is assumedwith\*G.Specifically,the reader should understandbreaks,fonts,pointsizes,the use and definition of number registersand strings,how to define macros,and scaling factors for ens, points,.b v 's(vertical line spaces),etc..ppFor a more casual introductionto text processingusing \*G,refer to the document.ulWriting Papers with \*G using \-me..ppThere are a number of macro parametersthat may be adjusted.Fonts may be set to a font number only.Font 0 is no font change;the font of the surrounding textis used instead.Notice that font 0 is a.q pseudo-font ;that is,it is simulated by the macros.This means that although it is legal to set a font registerto zero,it is not legal to use the escape character form,such as:.(b\ef0.)b.ppAll distancesare in basic units,so it is nearly always necessaryto use a scaling factor.For example,the requestto set the paragraph indentto eight one-en spaces is:.(b\&.nr pi 8n.)band not.(b\&.nr pi 8.)bwhich would set the paragraph indent to eight basic units,or about 0.02 inch.Default parameter values are given in bracketsin the remainder of this document..ppRegisters and stringsof the form.b $ \c.i xmay be used in expressionsbut should not be changed.Macros of the form.b $ \c.i xperform some function(as described)and may be redefinedto change this function.This may be a sensitive operation;look at the body of the original macrobefore changing it..ppAll names in \-mefollow a rigid naming convention.The user may define number registers,strings,and macros,provided that s/heuses single character upper case namesor double character namesconsisting of letters and digits,with at least one upper case letter.In no case should special charactersbe used in user-defined names.Locally defined macrosshould all be of the form.b .* \c.i X ,where.i Xis any letter(upper or lower case)or digit..ppThis documentation was \*G'edon \*(tdand applies to \*G version\*(MOof the \-me macros..sh 1 "Paragraphing".ppThese macros are usedto begin paragraphs.The standard paragraph macrois.b .pp ;the others are all variantsto be used for special purposes..ppAfter the first call to one of the paragraphing macrosdefined in this sectionor the.b .shmacro(defined in the next session),the effects of changing parameterswhich will have a global effecton the format of the page(notably page length and header and footer margins)are not well definedand should be avoided..TL.b .lp.DEBegin left-justified paragraph.Centering and underliningare turned off if they were on,the font is set to.NR (pf[1]the type sizeis set to.NR (pp[10p],and a.NR (psspace is insertedbefore the paragraph[0.35v]The indent is resetto.NR ($i[0]plus.NR (po[0]unless the paragraphis inside a display.(see.b .ba ).At leastthe first two linesof the paragraphare kept togetheron a page..TL.b .pp.DELike.b .lp ,except that it puts.NR (pi[5n]units of indent.This is the standard paragraph macro..TL.b .ip.i T.i I.DEIndented paragraphwith hanging tag.The body of the following paragraphis indented.i Ispaces(or.NR (ii[5n]spacesif.i Iis not specified)more than a non-indented paragraph(such as with.b .pp )is.The title.i Tis exdented (opposite of indented).The result is a paragraphwith an even left edgeand.i Tprinted in the margin.Any spaces in.i Tmust be unpaddable.If.i Twill not fit in the space provided,.b .ipwill start a new line..TL.b .np.DEA variant of .ip which numbers paragraphs.Numbering is resetafter a.b .lp ,.b .pp ,or.b .sh .The current paragraph numberis in.NR ($p ..TL.b .bu.DELike.b .npexcept that paragraphs are marked with bullets (\(bu).Leading space is eliminated to create compact lists..sh 1 "Section Headings".ppNumbered sectionsare similar to paragraphsexcept that asection numberis automaticallygenerated for each one.The section numbers are of the form.b 1.2.3 .The.i depthof the sectionis the count of numbers(separated by decimal points)in the section number..ppUnnumbered section headings are similar,except that no number is attachedto the heading..TL.b .sh.i +N.i T.i "a b c d e f".DEBegin numbered sectionof depth.i N .If.i Nis missingthe current depth(maintained inthe number register.NR ($0 )is used.The values ofthe individual parts of the section numberare maintained in.NR ($1through.NR ($6 .There is a.NR (ss[1v]space before the section..i Tis printedas a section titlein font.NR (sf[8]and size.NR (sp[10p].The.q nameof the section may be accessed via.ST ($n .If.NR (siis non-zero,the base indentis set to.NR (sitimes the section depth,and the section titleis exdented.(See.b .ba .)Also,an additional indent of.NR (so[0]is added to the section title(but not to the body of the section).The font is then setto the paragraph font,so that more information may occuron the linewith the section numberand title..b .shinsures that there is enough roomto print the section headplus the beginning of a paragraph(about 3 lines total).If.i athrough.i fare specified,the section number is set to that numberrather than incremented automatically.If any of.i athrough.i fare a hyphenthat number is not reset.If.i Tis a single underscore(\c.q _ )then the section depth and numbering is reset,but the base indent is not resetand nothing is printed out.This is useful to automaticallycoordinate section numbers withchapter numbers..TL.b .sx.i +N.DEGo to section depth.i N[\c.b \-1 ],but do not print the numberand title,and do not increment the section numberat level.i N .This has the effectof starting a new paragraphat level.i N ..TL.b .uh.i T.DEUnnumbered section heading.The title.i Tis printedwith the same rules for spacing,font, etc.,as for.b .sh ..TL.b .$p.i T.i B.i N.DEPrint section heading.May be redefinedto get fancier headings..i Tis the title passed on the.b .shor.b .uhline;.i Bis the section number for this section,and.i Nis the depth of this section.These parameters are not always present;in particular,.b .shpasses all three,.b .uhpasses only the first,and.b .sxpasses three,but the first twoare null strings.Care should be taken if this macrois redefined;it is quite complex and subtle..TL.b .$0.i T.i B.i N.DEThis macro is called automaticallyafter every call to.b .$p .It is normally undefined,but may be usedto automatically putevery section titleinto the table of contentsor for some similar function..i Tis the section titlefor the section title which was just printed,.i Bis the section number,and.i Nis the section depth..TL.b .$1\-.b .$6.DETraps called just before printing that depth section.May be defined to(for example)give variable spacingbefore sections.These macros are called from.b .$p ,so if you redefine that macroyou may lose this feature..sh 1 "Headers and Footers".ds TP \fI\(aal\|\(aam\^\(aar\^\(aa\fP.ppHeaders and footersare put at the top and bottomof every pageautomatically.They are set in font.NR (tf[3]and size.NR (tp[10p].Each of the definitionsapply as of the.i nextpage.Three-part titlesmust be quotedif there are two blanks adjacentanywhere in the titleor more than eight blanks total..ppThe spacingof headers and footersare controlled by three number registers..NR (hm[4v]is the distance from the top of the pageto the top of the header,.NR (fm[3v]is the distance from the bottom of the pageto the bottom of the footer,.NR (tm[7v]is the distance from the top of the pageto the top of the text,and.NR (bm[6v]is the distance from the bottom of the pageto the bottom of the text(nominal).The macros.b .m1 ,.b .m2 ,.b .m3 ,and.b .m4are also supplied for compatibilitywith\s-1ROFF\s0 documents..TL.b .he\*(TP.DEDefine three-part header,to be printed on the topof every page..TL.b .fo\*(TP.DEDefine footer,to be printed at the bottomof every page..TL.b .eh\*(TP.DEDefine header,to be printed at the top of everyeven-numbered page..TL.b .oh\*(TP.DEDefine header,to be printed at the top of everyodd-numbered page..TL.b .ef\*(TP.DEDefine footer,to be printed at the bottomof every even-numbered page..TL.b .of\*(TP.DEDefine footer,to be printed at the bottomof every odd-numbered page..TL.b .hx.DESuppress headers and footerson the next page..TL.b .m1.i +N.DESet the space between the top of the pageand the header[4v]..TL.b .m2.i +N.DESet the space between the headerand the first line of text[2v]..TL.b .m3.i +N.DESet the spacebetween the bottom of the textand the footer[2v]..TL.b .m4.i +N.DESet the spacebetween the footerand the bottom of the page[4v]..TL.b .ep.DEEnd this page,but do not begin the next page.Useful for forcing out footnotes,but other thanthat hardly every used.Must be followed by a.b .bpor the end of input..TL.b .$h.DECalled at every pageto print the header.May be redefinedto provide fancy(e.g.,multi-line)headers,but doing soloses the function of the.b .he ,.b .fo ,.b .eh ,.b .oh ,.b .ef ,and.b .ofrequests,as well as the chapter-style title featureof.b .+c ..TL.b .$f.DEPrint footer;same comments applyas in.b .$h ..TL.b .$H.DEA normally undefined macrowhich is calledat the top of each page(after putting outthe header,initial saved floating keeps,etc.);in other words,this macro is called immediately beforeprinting texton a page.It can be used for column headingsand the like..sh 1 "Displays".ppAll displays except centered blocksand block quotesare preceded and followedby an extra.NR (bs
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -