⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 refer

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻
📖 第 1 页 / 共 3 页
字号:
citation, a field is available which is searched but notprinted (\f3K\f1)..PPThe key letters currently recognized by.I referand.I \-ms,with the kind of information implied, are:.KS.TScenter;c c6 c cc l c l.Key	Information specified	Key	Information specifiedA	Author's name	N	Issue numberB	Title of book containing item	O	Other informationC	City of publication	P	Page(s) of articleD	Date	R	Technical report referenceE	Editor of book containing item	T	TitleG	Government (NTIS) ordering number	V	Volume numberI	Issuer (publisher)J	Journal nameK	Keys (for searching)	X	orL	Label	Y	orM	Memorandum label	Z	Information not used by \f2refer\f1.TE.KEFor example, a sample reference could betyped as:.DS%T Bounds on the Complexity of the MaximalCommon Subsequence Problem%Z ctr127%A A. V. Aho%A D. S. Hirschberg%A J. D. Ullman%J J. ACM%V 23%N 1%P 1-12.\"%M TM 75-1271-7%M abcd-78%D Jan. 1976.DEOrder is irrelevant, except that authors are shown in the ordergiven.  The output of.I referis a stream of string definitions, onefor each of the fields of each reference, asshown below..DS\*.]-\*.ds [A authors' names \*.\*.\*.\*.ds [T title \*.\*.\*.\*.ds [J journal \*.\*.\*.\*.\*.\*.\*.]\|[ type-number.DEThe.I referprogram, in general, does not concern itself with the significanceof the strings.The different fields are treated identically by.I refer ,except that theX, Y and Z fields are ignored (see the.B \-ioption of.I mkey\^ )in indexing and searching.All.I referdoes is select the appropriate citation, based on the keys.The macro package must arrange the strings so as to produce an appropriatelyformatted citation.In this process, it uses the convention that the `T' field is the title,the `J' field the journal, and so forth..PPThe.I referprogram does arrange the citation to simplify the macro package'sjob, however.The special macro.B \&\*.]\-precedes the string definitionsand the special macro.B \*.]\|[follows.These are changed from the input.B \*.[and .B \*.\^]so that running the same file through.I referagain is harmless.The .B \*.]\-macro can be used by the macro package toinitialize.The .B \*.]\|[macro, which should be usedto print the reference, is given anargument.I type-numberto indicate the kind of reference, as follows:.KS.TScenter;c cn l.Value	Kind of reference1	Journal article2	Book3	Article within book4	Technical report5	Bell Labs technical memorandum0	Other.TE.KEThe type is determined by the presence or absence of particular fieldsin the citation (a journal article must have a `J' field, a book must havean `I' field, and so forth).To a small extent, this violatesthe above rule that.I referdoes not concern itself with the contents of the citation;however, the classification of the citation in.I troffmacros would require a relatively expensive and obscureprogram.Any macro writer may, of course, preserve consistency by ignoringthe argument to the.B \*.]\|[macro..PPThe reference is flagged in the textwith the sequence.DS\e*\|([\*.number\e*\|(\*.\^].DEwhere.I numberis the footnote number.The strings.B [\*.and .B \*.\^]should be used by the macro packageto format the reference flag in the text.These strings can be replaced for a particularfootnote, as described in section 5.The footnote number (or other signal) is availableto the reference macro.B \*.]\|[as thestring register.B [F .To simplify dealing with a text reference that occursat the end of a sentence,.I refertreats a reference which follows a period in a special way.The period is removed, and the reference is preceded bya call for the string.B <.and followed by a call for the string.B >.For example, if a reference follows ``end.'' it will appearas.DSend\e*(<\*.\e*([\*.number\e*(\*.]\e*(>\*..DEwhere.I numberis the footnote number.The macro package should turn either the string.B >.or.B <.into a period and delete the other one.This permits the output to have either the form``end[31].'' or ``end.\s-3\u31\d\s0'' as themacro package wishes.Note that in one case the period precedes the number and in theother it follows the number..PPIn some cases users wish to suspend the searching, and merelyuse the reference macro formatting.That is, the user doesn't want to provide a search keybetween.B \*.[and .B \*.\^]brackets, but merelythe reference lines for the appropriate document.Alternatively, the usercan wishto add a few fields to those in the referenceas in the standard file, oroverride some fields.Altering or replacing fields, or supplying whole references, is easily doneby inserting lines beginningwith.B % ;any such line is taken asdirect input to the referenceprocessor rather than keys to be searched.Thus.DS\*.[key1 key2 key3 \*.\*.\*.%Q New format item%R Override report name\*.\^].DEmakes the indicates changes to the result of searching forthe keys.All of the search keys must be given before the first\f3%\f1 line..PPIf no search keys are provided, an entire citation canbe provided in-line in the text.For example, if the.I eqnpaper citation were to be inserted inthis way, rather than by searching for it in the data base,the input would read.DS\&\*.\*.\*.\&preprocessor like\&.I eqn.\&.[\&%A B. W. Kernighan\&%A L. L. Cherry\&%T A System for Typesetting Mathematics\&%J Comm. ACM\&%V 18\&%N 3\&%P 151-157\&%D March 1975\&.]\&It scans its input looking for items\&\*.\*.\*..DEThis would produce a citation of the same appearance as thatresulting from the file search..PPAs shown, fields are normally turned into.I troffstrings.Sometimes users would rather have them defined as macros,so that other.I troffcommands can be placed into the data.When this is necessary, simply double the control character.B %in the data.Thus the input.DS\&.[%V 23%%MBell Laboratories,Murray Hill, N.J. 07974\&.].DEis processed by.I referinto.DS\&.ds [V 23\&.de [MBell Laboratories,Murray Hill, N.J. 07974\&...DEThe information after.B %%Mis defined as a macro to be invoked by.B .[Mwhile the information after.B %Vis turned into a string to be invoked by.B \e\(**([V .At present.I \-msexpects all information as strings..NHCollecting References and other Refer Options.PPNormally, the combination of.I referand.I \-msformats output as .I trofffootnotes which are consecutively numbered and placedat the bottom of the page.  However,options exist toplace the references at the end; to arrange references alphabeticallyby senior author; and to indicate references by strings in the text of the form[Name1975a]rather than by number.Whenever references are not placed at the bottom of a pageidentical references are coalesced..PPFor example, the.B \-eoption to.I referspecifies that references are to be collected; in this casethey are output whenever the sequence.DS\*.[$LIST$\*.\^].DEis encountered.Thus, to place references at the end of a paper, the user would run.I referwith the.I \-eoption and place the above $LIST$ commands after the lastline of the text..I Referwill then move all the references to that point.To aid in formatting the collected references,.I referwrites the references preceded by the line.DS.B .]<.DEandfollowed by the line.DS.B .]>.DEto invoke special macros before and after the references..PPAnother possible option to.I referis the.B \-soption to specifysorting of references.  The default,of course, is to list references in the order presented.The.B \-soption implies the.B \-eoption, and thus requiresa.DS\*.[$LIST$\*.\^].DEentry to call out the reference list.The.B \-soption may be followed by a string of letters, numbers, and `+' signs indicating howthe references are to be sorted.The sort is done using the fields whose key-letters arein the string as sorting keys; the numbers indicate how manyof the fields are to be considered, with `+'taken as a large number.Thus the default is.B \-sADmeaning ``Sort on senior author, then date.''  Tosort on all authors and then title, specify.B \-sA+T .And to sort on two authors and then the journal,write.B \-sA2J ..PPOther options to.I referchange the signal or label inserted in the text for each reference.Normally these are just sequential numbers,and their exact placement (within brackets, as superscripts, etc.) is determinedby the macro package.The.B \-loption replaces reference numbers bystrings composed of the senior author's last name, the date,and a disambiguating letter.If a number follows the.B las in.B \-l3only that many letters of the last name are usedin the label string.To abbreviate the date as well the form\f3-l\f2m,n\f1shortens the last name to thefirst.I mletters and the date to thelast.I ndigits.For example, the option.B \-l3,2would refer to the.I eqnpaper (reference 3) by the signal.I Ker75a ,since it is the first cited reference by Kernighan in 1975..PPA user wishing to specify particular labels fora private bibliography may use the.B \-koption.Specifying\f3\-k\f2x\f1causes the field \f2x\f1 to be used as a label.The default is \f3L\f1.If this field ends in \f3\-\f1, that characteris replaced by a sequence letter; otherwise the fieldis used exactly as given..PPIf none of the.I refer -producedsignals are desired,the.B \-boption entirely suppresses automatic text signals..PPIf the user wishes to override the.I \-mstreatment of the reference signal (which is normally toenclose the number in brackets in.I nroffand make it a superscript in.I troff\\| )this can be done easily.If the lines.B \&.[or.B \&.]contain anything following these characters,the remainders of these lines are used to surroundthe reference signal, instead of the default.Thus, for example, to say ``See reference (2).''and avoid``See reference.\s-3\u2\d\s+3'' theinput might appear.DS\&See reference\&\*.[ (imprecise citation ...\&\*.\^])\*..DENote that blanks are significant in this construction.If a permanent change is desired in the style of referencesignals, however, it is probably easier to redefine the strings.B \&[.and.B \&.](which are used to bracket each signal)than to change each citation..PPAlthough normally.I referlimits itself to retrieving the data for the reference,and leaves to a macro package the job of arranging thatdata as required by the local format, there are twospecial options for rearrangements that can not bedone by macro packages.The.B \-coption puts fields into all upper case(C\s-2APS\s+2-S\s-2MALL\s+2 C\s-2APS\s+2in.I troffoutput).The key-letters indicated what information is to be translatedto upper case follow the.B c ,so that.B \-cAJmeans that authors' names and journals are to be in caps.The.B \-aoption writes the names of authors last name first, that is.I "A. D. Hall, Jr."is written as.I "Hall, A. D. Jr" .The citation form ofthe.I "Journal of the ACM" ,for example, would requireboth.B \-cAand.B \-aoptions.This produces authors' names in the style.IK\s-2ERNIGHAN\s0, B. W. \s-2AND\s0 C\s-2HERRY\s0, L. L.\&.Rfor the previous example.The.B \-aoption may be followed by a number to indicate how manyauthor names should be reversed;.B \-a1(without any.B \-coption)would produce.IKernighan, B. W. and L. L. Cherry,.Rfor example..PPFinally, there is also the previously-mentioned.B \-poption to let the user specifya private file of references to be searched before the public files.Note that.I referdoes not insist on a previously made index for these files.If a file is named which contains referencedata but is not indexed, it will be searched(more slowly)by.I referusing.I fgrep.In this wayit is easy for users to keep small files ofnew references, which can later be added to thepublic data bases..SG MH-1274-MEL-\s8UNIX\s0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -