📄 refer.man
字号:
.B accumulate\*nAccumulate references instead of writing out each referenceas it is encountered.Accumulated references will be written out whenever a referenceof the form.RS.IP.B .[.br.B $LIST$.br.B .].LPis encountered,after all input files hve been processed,and whenever.B .R1line is recognized..RE.TP.BI annotate\*n\ field\ string.I fieldis an annotation;print it at the end of the reference as a paragraph preceded by the line.RS.IP.BI . string.LPIf.I macrois omitted it will default to.BR AP ;if.I fieldis also omitted it will default to.BR X .Only one field can be an annotation..RE.TP.BI articles\ string \fR\|.\|.\|. .IR string \|.\|.\|.are definite or indefinite articles, and should be ignored at the beginning of.B Tfields when sorting.Initially,.BR the ,.B aand.B anare recognized as articles. .TP.BI bibliography\ filename \fR\|.\|.\|.Write out all the references contained in the bibliographic databases.IR filename \|.\|.\|..TP.BI bracket-label\ string1\ string2\ string3In the text, bracket each labelwith.I string1and.IR string2 .An occurrence of.I string2immediately followed by.I string1will be turned into.IR string3 .The default behaviour is.RS.IP.Bbracket-label \e*([. \e*(.] ", ".RE.TP.BI capitalize\ fieldsConvert.I fieldsto caps and small caps..TP.B compatible\*nRecognize.B .R1and.B .R2even when followed by a character other than space or newline..TP.BI database\ filename \fR\|.\|.\|.Search the bibliographic databases.IR filename \|.\|.\|.For each.I filenameif an index.IB filename @INDEX_SUFFIX@created by.BR @g@indxbib (@MAN1EXT@)exists, then it will be searched instead;each index can cover multiple databases..TP.BI date-as-label\*n\ string.I stringis a label expression that specifies a string with which to replace the.B Dfield after constructing the label.See the.B "Label expressions"subsection for a description of label expressions.This command is useful if you do not want explicit labels in thereference list, but instead want to handle any necessarydisambiguation by qualifying the date in some way.The label used in the text would typically be some combination of theauthor and date.In most cases you should also use the.B no-label-in-referencecommand.For example,.RS.IP.Bdate-as-label D.+yD.y%a*D.-y.LPwould attach a disambiguating letter to the year part of the.B Dfield in the reference..RE.TP.B default-database\*nThe default database should be searched.This is the default behaviour, so the negative version ofthis command is more useful.refer determines whether the default database should be searchedon the first occasion that it needs to do a search.Thus a.B no-default-databasecommand must be given before then,in order to be effective..TP.BI discard\*n\ fieldsWhen the reference is read,.I fieldsshould be discarded;no string definitions for.I fieldswill be output.Initially,.I fieldsare.BR XYZ ..TP.BI et-al\*n\ string\ m\ nControl use of.Bet alin the evaluation of.B @expressions in label expressions.If the number of authors needed to make the author sequenceunambiguous is.I uand the total number of authors is.I tthen the last.IR t \|\-\| uauthors will be replaced by.I stringprovided that.IR t \|\-\| uis not less than.I mand.I tis not less than.IR n .The default behaviour is.RS.IP.Bet-al " et al" 2 3.RE.TP.BI include\ filenameInclude.I filenameand interpret the contents as commands..TP.BI join-authors\ string1\ string2\ string3This says how authors should be joined together.When there are exactly two authors, they will be joined with.IR string1 .When there are more than two authors, all but the last two willbe joined with.IR string2 ,and the last two authors will be joined with.IR string3 .If.I string3is omitted,it will default to.IR string1 ;if.I string2is also omitted it will also default to.IR string1 .For example,.RS.IP.Bjoin-authors " and " ", " ", and ".LPwill restore the default method for joining authors..RE.TP.B label-in-reference\*nWhen outputting the reference,define the string.B [Fto be the reference's label.This is the default behaviour; so the negative versionof this command is more useful..TP.B label-in-text\*nFor each reference output a label in the text.The label will be separated from the surrounding text as described in the.B bracket-labelcommand.This is the default behaviour; so the negative versionof this command is more useful..TP.BI label\ string.I stringis a label expression describing how to label each reference..TP.BI separate-label-second-parts\ stringWhen merging two-part labels, separate the second part of the secondlabel from the first label with.IR string .See the description of the.B <>label expression..TP.B move-punctuation\*nIn the text, move any punctuation at the end of line past the label.It is usually a good idea to give this command unless you are usingsuperscripted numbers as labels..TP.BI reverse\*n\ stringReverse the fields whose namesare in.IR string .Each field name can be followed by a number which sayshow many such fields should be reversed.If no number is given for a field, all such fields will be reversed..TP.BI search-ignore\*n\ fieldsWhile searching for keys in databases for which no index exists,ignore the contents of.IR fields .Initially, fields.B XYZare ignored..TP.BI search-truncate\*n\ nOnly require the first.I ncharacters of keys to be given.In effect when searching for a given key,words in the database keys are truncated to the maximum of.I nand the length of the key.Initially.I nis 6..TP.BI short-label\*n\ string.I stringis a label expression that specifies an alternative (usually shorter)style of label.This is used when the.B #flag is given in the citation.When using author-date style labels, the identity of the authoror authors is sometimes clear from the context, and so itmay be desirable to omit the author or authors from the label.The.B short-labelcommand will typically be used to specify a label containing justa date and possibly a disambiguating letter..TP.BI sort\*n\ stringSort references according to.BR string .References will automatically be accumulated..I stringshould be a list of field names, each followed by a number,indicating how many fields with the name should be used for sorting..B +can be used to indicate that all the fields with the name should be used.Also .B .can be used to indicate the references should be sorted using the(tentative) label.(The.BLabel expressionssubsection describes the concept of a tentative label.).TP.B sort-adjacent-labels\*nSort labels that are adjacent in the text according to theirposition in the reference list.This command should usually be given if the.B abbreviate-label-rangescommand has been given,or if the label expression contains a.B <>expression.This will have no effect unless references are being accumulated..SS Label expressions.LPLabel expressions can be evaluated both normally and tentatively. The result of normal evaluation is used for output. The result of tentative evaluation, called the.Itentative label,is used to gather the informationthat normal evaluation needs to disambiguate the label.Label expressions specified by the.B date-as-labeland.B short-labelcommands are not evaluated tentatively.Normal and tentative evaluation are the same for all typesof expression other than.BR @ ,.BR * ,and.B %expressions. The description below applies to normal evaluation,except where otherwise specified. .TP.I field.TQ.I field\ nThe.IR n -thpart of.IR field . If.I nis omitted, it defaults to 1. .TP.BI ' string 'The characters in.I stringliterally. .TP.B @All the authors joined as specified by the.B join-authorscommand.The whole of each author's name will be used.However, if the references are sorted by author(that is the sort specification starts with.BR A+ ),then authors' last names will be used instead, provided that this doesnot introduce ambiguity,and also an initial subsequence of the authors may be usedinstead of all the authors, again provided that this does notintroduce ambiguity.The use of only the last name for the.IR i -thauthor of some referenceis considered to be ambiguous ifthere is some other reference,such that the first.IR i \|-\|1authors of the references are the same,the.IR i -thauthors are not the same,but the.IR i -thauthors' last names are the same.A proper initial subsequence of the sequenceof authors for some reference is considered to be ambiguous if there isa reference with some other sequence of authors which also hasthat subsequence as a proper initial subsequence.When an initial subsequence of authors is used, the remainingauthors are replaced by the string specified by the.B et-alcommand;this command may also specify additional requirements that must bemet before an initial subsequence can be used..B @tentatively evaluates to a canonical representation of the authors,such that authors that compare equally for sorting purposewill have the same representation..TP.BI % n.TQ.B %a.TQ.B %A.TQ.B %i.TQ.B %IThe serial number of the reference formatted according to the characterfollowing the.BR % . The serial number of a reference is 1 plus the number of earlier referenceswith same tentative label as this reference.These expressions tentatively evaluate to an empty string..TP.IB expr *If there is another reference with the same tentative label asthis reference, then.IR expr ,otherwise an empty string.It tentatively evaluates to an empty string..TP.IB expr + n.TQ.IB expr \- nThe first.RB ( + )or last.RB ( \- ).I nupper or lower case letters or digits of.IR expr .Troff special characters (such as.BR \e('a )count as a single letter.Accent strings are retained but do not count towards the total..TP.IB expr .l.I exprconverted to lowercase. .TP.IB expr .u.I exprconverted to uppercase. .TP.IB expr .c.I exprconverted to caps and small caps. .TP.IB expr .r.I exprreversed so that the last name is first..TP.IB expr .a.I exprwith first names abbreviated.Note that fields specified in the.B abbreviatecommand are abbreviated before any labels are evaluated.Thus.B .ais useful only when you want a field to be abbreviated in a labelbut not in a reference..TP.IB expr .yThe year part of.IR expr . .TP.IB expr .+yThe part of.I exprbefore the year, or the whole of.I exprif it does not contain a year..TP.IB expr .\-yThe part of.I exprafter the year, or an empty string if.I exprdoes not contain a year..TP.IB expr .nThe last name part of.IR expr . .TP.IB expr1 \(ti expr2.I expr1except that if the last character of.I expr1is.B \-then it will be replaced by.IR expr2 . .TP.I expr1\ expr2The concatenation of.I expr1and.IR expr2 . .TP.IB expr1 | expr2If.I expr1is non-empty then.I expr1otherwise.IR expr2 . .TP.IB expr1 & expr2If.I expr1is non-emptythen.I expr2otherwise an empty string..TP.IB expr1 ? expr2 : expr3If.I expr1is non-emptythen.I expr2otherwise.IR expr3 . .TP.BI < expr >The label is in two parts, which are separated by.IR expr .Two adjacent two-part labels which have the same first part will bemerged by appending the second part of the second label onto the firstlabel separated by the string specified in the.B separate-label-second-partscommand (initially, a comma followed by a space); the resulting labelwill also be a two-part label with the same first part as beforemerging, and so additional labels can be merged into it.Note that it is permissible for the first part to be empty;this maybe desirable for expressions used in the.B short-labelcommand..TP.BI ( expr )The same as.IR expr .Used for grouping..LPThe above expressions are listed in order of precedence(highest first);.B &and.B |have the same precedence..SS Macro interfaceEach reference starts with a call to the macro.BR ]- .The string.B [Fwill be defined to be the label for this reference,unless the.B no-label-in-referencecommand has been given.There then follows a series of string definitions,one for each field:string.BI [ Xcorresponds to field.IR X .The number register.B [Pis set to 1 if the.B Pfield contains a range of pages.The.BR [T ,.B [Aand.B [Onumber registers are set to 1 according as the.BR T ,.B Aand.B Ofields end with one of the characters.BR .?! .The.B [Enumber register will be set to 1 if the.B [Estring contains more than one name.The reference is followed by a call to the.B ][macro.The first argument to this macro gives a number representingthe type of the reference.If a reference contains a.B Jfield, it will be classified as type 1,otherwise if it contains a.B Bfield, it will type 3,otherwise if it contains a.B Gor.B Rfield it will be type 4,otherwise if contains a.B Ifield it will be type 2,otherwise it will be type 0.The second argument is a symbolic name for the type:.BR other ,.BR journal-article ,.BR book ,.B article-in-bookor.BR tech-report .Groups of references that have been accumulatedor are produced by the.B bibliographycommand are preceded by a call to the.B ]<macro and followed by a call to the.B ]>macro..SH FILES.Tp \w'\fB@DEFAULT_INDEX@'u+2n.B @DEFAULT_INDEX@Default database..TP.IB file @INDEX_SUFFIX@Index files..SH "SEE ALSO".BR @g@indxbib (@MAN1EXT@),.BR @g@lookbib (@MAN1EXT@),.BR lkbib (@MAN1EXT@).br.SH BUGSIn label expressions,.B <>expressions are ignored inside.BI . charexpressions.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -