📄 refer.man
字号:
.\" -*- nroff -*-.de TQ.br.ns.TP \\$1...\" Like TP, but if specified indent is more than half.\" the current line-length - indent, use the default indent..de Tp.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP.el .TP "\\$1"...\" The BSD man macros can't handle " in arguments to font change macros,.\" so use \(ts instead of "..tr \(ts".TH @G@REFER @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@".SH NAME@g@refer \- preprocess bibliographic references for groff.SH SYNOPSIS.nr a \n(.j.ad l.nr i \n(.i.in +\w'\fB@g@refer 'u.ti \niu.B @g@refer.de OP.ie \\n(.$-1 .RI "[\ \fB\\$1\fP" "\\$2" "\ ]".el .RB "[\ " "\\$1" "\ ]"...OP \-benvCPRS.OP \-a n.OP \-c fields.OP \-f n.OP \-i fields.OP \-k field.OP \-l m,n.OP \-p filename.OP \-s fields.OP \-t n.OP \-B field.macro.RI [\ filename \|.\|.\|.\ ].br.ad \na.SH DESCRIPTIONThis file documents the GNU version of.BR refer ,which is part of the groff document formatting system..B refercopies the contents of.IR filename \|.\|.\|.to the standard output,except that lines between.B .[and.B .]are interpreted as citations,and lines between.B .R1and.B .R2are interpreted as commands about how citations are to be processed..LPEach citation specifies a reference.The citation can specify a reference that is contained ina bibliographic database by giving a set of keywordsthat only that reference contains.Alternatively it can specify a reference by supplying a databaserecord in the citation.A combination of these alternatives is also possible..LPFor each citation,.B refercan produce a mark in the text.This mark consists of some label which can be separated fromthe text and from other labels in various ways.For each reference it also outputs.B groffcommands that can be used by a macro package to produce a formattedreference for each citation.The output of.B refermust therefore be processed using a suitable macro package.The.B \-msand.B \-memacros are both suitable.The commands to format a citation's reference can be output immediately afterthe citation,or the references may be accumulated,and the commands output at some later point.If the references are accumulated, then multiple citations of the samereference will produce a single formatted reference..LPThe interpretation of lines between.B .R1and.B .R2as commands is a new feature of GNU refer.Documents making use of this feature can still be processed byUnix refer just by adding the lines.RS.LP.nf.ft B\&.de R1\&.ig R2\&...ft.fi.REto the beginning of the document.This will cause.B troffto ignore everything between.B .R1and.BR .R2 .The effect of some commands can also be achieved by options.These options are supported mainly for compatibility with Unix refer.It is usually more convenient to use commands..LP.B refergenerates.B .lflines so that filenames and line numbers in messages producedby commands that read.B referoutput will be correct;it also interprets lines beginning with.B .lfso that filenames and line numbers in the messages and.B .lflines that it produces will be accurate even if the input has beenpreprocessed by a command such as.BR @g@soelim (@MAN1EXT@)..SH OPTIONS.LPMost options are equivalent to commands(for a description of these commands see the.B Commandssubsection):.TP.B \-b.Bno-label-in-text; no-label-in-reference.TP.B \-e.B accumulate.TP.B \-n.B no-default-database.TP.B \-C.B compatible.TP.B \-P.B move-puntuation.TP.B \-S.Blabel "(A.n|Q) ', ' (D.y|D)"; bracket-label " (" ) "; ".TP.BI \-a n.B reverse.BI A n.TP.BI \-c fields.B capitalize.I fields.TP.BI \-f n.B label.BI % n.TP.BI \-i fields.B search-ignore.I fields.TP.B \-k.B label.B L\(ti%a.TP.BI \-k field.B label.IB field \(ti%a.TP.B \-l.B label.BI A.nD.y%a.TP.BI \-l m.B label.BI A.n+ m D.y%a.TP.BI \-l, n.B label.BI A.nD.y\- n %a.TP.BI \-l m , n.B label.BI A.n+ m D.y\- n %a.TP.BI \-p filename.B database.I filename.TP.BI \-s spec.B sort.I spec.TP.BI \-t n.B search-truncate.I n.LPThese options are equivalent to the following commands with theaddition that the filenames specified on the command line areprocessed as if they were arguments to the.B bibliographycommand instead of in the normal way:.TP.B \-B.Bannotate X AP; no-label-in-reference.TP.BI \-B field . macro.B annotate.I field.IB macro ;.B no-label-in-reference.LPThe following options have no equivalent commands:.TP.B \-vPrint the version number..TP.B \-RDon't recognize lines beginning with.BR .R1 / .R2 ..SH USAGE.SS Bibliographic databasesThe bibliographic database is a text file consisting of recordsseparated by one or more blank lines.Within each record fields start with a.B %at the beginning of a line.Each field has a one character name that immediately follows the.BR % .It is best to use only upper and lower case letters for the namesof fields.The name of the field should be followed by exactly one space,and then by the contents of the field.Empty fields are ignored.The conventional meaning of each field is as follows:.TP.B AThe name of an author.If the name contains a title such as.B Jr.at the end,it should be separated from the last name by a comma.There can be multiple occurences of the.B Afield.The order is siginificant.It is a good idea always to supply an.B Afield or a .B Qfield..TP.B BFor an article that is part of a book, the title of the book.TP.B CThe place (city) of publication..TP.B DThe date of publication.The year should be specified in full.If the month is specified, the name rather than the number of the monthshould be used, but only the first three letters are required.It is a good idea always to supply a.B Dfield;if the date is unknown, a value such as.B in pressor.B unknowncan be used..TP.B EFor an article that is part of a book, the name of an editor of the book.Where the work has editors and no authors,the names of the editors should be given as.B Afields and.B ,\ (ed)or.B ,\ (eds)should be appended to the last author..TP.B GUS Government ordering number..TP.B IThe publisher (issuer)..TP.B JFor an article in a journal, the name of the journal..TP.B KKeywords to be used for searching..TP.B LLabel..TP.B NJournal issue number..TP.B OOther information.This is usually printed at the end of the reference..TP.B PPage number.A range of pages can be specified as.IB m \- n\fR..TP.B QThe name of the author, if the author is not a person.This will only be used if there are no.B Afields.There can only be one.B Qfield..TP.B RTechnical report number..TP.B SSeries name..TP.B TTitle.For an article in a book or journal,this should be the title of the article..TP.B VVolume number of the journal or book..TP.B XAnnotation..LPFor all fields except.B Aand.BR E ,if there is more than one occurence of a particular field in a record,only the last such field will be used..LPIf accent strings are used, they should follow the charater to be accented.This means that the.B AMmacro must be used with the.B \-msmacros.Accent strings should not be quoted:use one.B \erather than two..SS CitationsThe format of a citation is.RS.BI .[ opening-text.br.Iflags keywords.br.I fields.br.BI .] closing-text.RE.LPThe.IR opening-text ,.IR closing-textand.I flagscomponents are optional.Only one of the.I keywordsand.I fieldscomponents need be specified..LPThe.I keywordscomponent says to search the bibliographic databases for a referencethat contains all the words in.IR keywords .It is an error if more than one reference if found..LPThe.I fieldscomponents specifies additional fields to replace or supplementthose specified in the reference.When references are being accumulated and the.I keywordscomponent is non-empty,then additional fields should be specified only on the firstoccasion that a particular reference is cited,and will apply to all citations of that reference..LPThe.I opening-textand.I closing-textcomponent specifies strings to be used to bracket the label insteadof the strings specified in the.B bracket-labelcommand.If either of these components is non-empty,the strings specified in the.B bracket-labelcommand will not be used;this behaviour can be altered using the.B [and.B ]flags.Note that leading and trailing spaces are significant for these components..LPThe.I flagscomponent is a list ofnon-alphanumeric characters each of which modifies the treatmentof this particular citation.Unix refer will treat these flags as part of the keywords andso will ignore them since they are non-alphanumeric.The following flags are currently recognized:.TP.B #This says to use the label specified by the.B short-labelcommand,instead of that specified by the.B labelcommand.If no short label has been specified, the normal label will be used.Typically the short label is used with author-date labelsand consists of only the date and possibly a disambiguating letter;the.B #is supposed to be suggestive of a numeric type of label..TP.B [Precede.I opening-textwith the first string specified in the.B bracket-labelcommand..TP.B ]Follow.I closing-textwith the second string specified in the.B bracket-labelcommand..LPOne advantages of using the.B [and.B ]flags rather than including the brackets in.I opening-textand.I closing-textis thatyou can change the style of bracket used in the document just by changing the.B bracket-labelcommand.Another advantage is that sorting and merging of citationswill not necessarily be inhibited if the flags are used..LPIf a label is to be inserted into the text,it will be attached to the line preceding the.B .[line.If there is no such line, then an extra line will be inserted before the.B .[line and a warning will be given..LPThere is no special notation for making a citation to multiple references.Just use a sequence of citations, one for each reference.Don't put anything between the citations.The labels for all the citations will be attached to the line precedingthe first citation.The labels may also be sorted or merged.See the description of the.B <>label expression, and of the.B sort-adjacent-labelsand.B abbreviate-label-rangescommand.A label will not be merged if its citation has a non-empty.I opening-textor.IR closing-text .However, the labels for a citation using the.B ]flag and without any.I closing-textimmediately followed by a citation using the.B [flag and without any.I opening-textmay be sorted and mergedeven though the first citation's.I opening-textor the second citation's.I closing-textis non-empty.(If you wish to prevent this just make the first citation's.I closing-text.BR \e& .).SS CommandsCommands are contained between lines starting with.B .R1and.BR .R2 .Recognition of these lines can be prevented by the.B \-Roption.When a.B .R1line is recognized any accumulated references are flushed out.Neither.B .R1nor.B .R2lines,nor anything between themis output..LPCommands are separated by newlines or .BR ; s..B #introduces a comment that extends to the end of the line(but does not conceal the newline).Each command is broken up into words.Words are separated by spaces or tabs.A word that begins with.B \(tsextends to the next.B \(tsthat is not followed by another.BR \(ts .If there is no such.B \(tsthe word extends to the end of the line.Pairs of.B \(tsin a word beginning with.B \(tscollapse to a single.BR \(ts .Neither.B #nor.B ;are recognized inside.BR \(ts s.A line can be continued by ending it with.BR \e ;this works everywhere except after a.BR # ..LP.ds n \fR*Each command.I namethat is marked with \*n has an associated negative command.BI no- namethat undoes the effect of.IR name .For example, the.B no-sortcommand specifies that references should not be sorted.The negative commands take no arguments..LPIn the following description each argument must be a single word;.I fieldis used for a single upper or lower case letter naming a field;.I fieldsis used for a sequence of such letters;.I mand.I nare used for a non-negative numbers;.I stringis used for an arbitrary string;.I filenameis used for the name of a file..Tp \w'\fBabbreviate-label-ranges'u+2n.BI abbreviate\*n\ fields\ string1\ string2\ string3\ string4Abbreviate the first names of.IR fields .An initial letter will be separated from another initial letter by.IR string1 ,from the last name by.IR string2 ,and from anything else(such as a.B vonor.BR de )by.IR string3 .These default to a period followed by a space.In a hyphenated first name,the initial of the first part of the name will be separated from the hyphen by.IR string4 ;this defaults to a period.No attempt is made to handle any ambiguities that mightresult from abbreviation.Names are abbreviated before sorting and beforelabel construction..TP.BI abbreviate-label-ranges\*n\ stringThree or more adjacent labels that refer to consecutive referenceswill be abbreviated to a label consistingof the first label, followed by.I stringfollowed by the last label.This is mainly useful with numeric labels.If.I stringis omitted it defaults to.BR \- ..TP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -