cite.1
来自「HTML-XML-utils由一套小型C程序(过滤器)组成」· 1 代码 · 共 139 行
1
139 行
.de d \" begin display.sp.in +4.nf...de e \" end display.in -4.fi.sp...TH man 1 "19 Mar 2000".SH NAMEcite \- replace bibliographic references by hyperlinks.SH SYNOPSIS.B cite.RB "[\| " \-b.IR base " \|]".RB "[\| " \-p.IR pattern " \|]".RB "[\| " \-a.IR auxfile " \|]".RB "[\| " \-m.IR marker " \|]".IR bibfile " [\| " HTMLfile " \|]".SH DESCRIPTION.LPThe.B citecommands copies the.I HTMLfileto standard output, looking for strings of the form [[\fIlabel\fP]].The label may not include white space and the double pair of squarebrackets must enclose the label without any spaces in between. If.B citefinds the label in the.IR bibfile ","the string is replaced by the.IR pattern "."The pattern can include certain variables. If the label is not foundin.IR bibfile ","it is left unchanged..PPThe default pattern replaces the string with a hyperlink, but if the.B \-poption is used, the replacement can be any pattern. The input doesn'teven have to be HTML..SH OPTIONSThe following options are supported:.TP 10.BI \-p " pattern"Specifies the pattern by which the string [[\fIlabel\fP]] is replaced.The pattern may include the variables.B %b(which will be replaced by the value of the.B \-boption) and.B %L(which will be replaced by the.IR label ")."The default pattern is.d<a href="%b#%L" rel="biblioentry">[%L]</a>.e.TP.BI \-b " base"Sets the value for the.B %bvariable in the pattern. Typically this is set to a relative orabsolute URL. By default this value is an empty string..TP.BI \-a " auxfile"All labels that have been found and replaced are also written to afile. This is so that.BR mkbib (1)can find them and create a bibliography. The default.I auxfileis constructed from the name of the.I HTMLfileby removing the last extension (if any) and replacing it by ".aux".If no.I HTMLfileis given, the default name is "aux.aux"..TP.BI \-m " marker"By default, the program looks for "[[name]]", but it can bemade to look for "[[#name]]" where # is some string, usually asymbol such as '!' or '='. This allows references to beclassified, e.g., "[[!name]]" for normative references and"[[name]]" for non-normative references..SH OPERANDSThe following operands are supported:.TP 10.I bibfileThe name of a bibliographic database must be given. It must be a filein.BR refer (1)format and every entry must have at least a.B %Lfield, which is used as label. (Entries without such a field will beignored.).TP.I HTMLfileThe name of the input file is optional. If absent,.B citewill read from stdin. The file in fact does not have to be an HTMLfile, but the default pattern (see the.B \-poption) assumes HTML..SH "EXIT STATUS"The following exit values are returned:.TP 10.B 0Successful completion..TP.B > 0An error occurred. Usually this is because a file could not be opened.Very rarely it may also be an out of memory error..SH "SEE ALSO".BR mkbib (1).BR xml2asc (1),.BR UTF-8(RFC 2279),.BR normalize (1),.BR num (1),.BR toc (1),.BR htmlprune (1)..BR unent (1).BR asc2xml (1).SH BUGS.LP.BR refer (1)does not require the.B %L(label) field to be present in every entry. Hoewever,.B citedoes not implement refer's keyword search and requires a key instead.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?