2 .\" Copyright (c) 1992, Sun Microsystems, Inc.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH REFER 1 "Sep 14, 1992"
8 refer \- expand and insert references from a bibliographic database
12 \fBrefer\fR [\fB-ben\fR] [\fB-a\fR\fIr\fR] [\fB-c\fR\fIstring\fR] [\fB-k\fR\fIx\fR] [\fB-l\fR\fIm,n\fR] [\fB-p\fR \fIfilename\fR]
13 [\fB-s\fR\fIkeys\fR] \fIfilename\fR...
19 \fBrefer\fR is a preprocessor for \fBnroff\fR(1), or \fBtroff\fR(1), that finds
20 and formats references. The input files (standard input by default) are copied
21 to the standard output, except for lines between `\fB\&.\|[\fR' and
22 `\fB\&.\|]\fR' command lines, Such lines are assumed to contain keywords as for
23 \fBlookbib\fR(1), and are replaced by information from a bibliographic data
24 base. The user can avoid the search, override fields from it, or add new
25 fields. The reference data, from whatever source, is assigned to a set of
26 \fBtroff\fR strings. Macro packages such as \fBms\fR(5) print the finished
27 reference text from these strings. A flag is placed in the text at the point
28 of reference. By default, the references are indicated by numbers.
31 When \fBrefer\fR is used with \fBeqn\fR(1), \fBneqn\fR, or \fBtbl\fR(1),
32 \fBrefer\fR should be used first in the sequence, to minimize the volume of
33 data passed through pipes.
41 Bare mode \(em do not put any flags in text (neither numbers or labels).
50 Accumulate references instead of leaving the references where encountered,
51 until a sequence of the form:
62 is encountered, and then write out all references collected so far. Collapse
63 references to the same source.
72 Do not search the default file.
81 Reverse the first \fIr\fR author names (Jones, J. A. instead of J. A. Jones).
82 If \fIr\fR is omitted, all author names are reversed.
88 \fB\fB-c\fR\fIstring\fR\fR
91 Capitalize (with SMALL CAPS) the fields whose key-letters are in \fIstring\fR.
100 Instead of numbering references, use labels as specified in a reference data
101 line beginning with the characters \fI%x\fR; By default, \fIx\fR is \fBL\fR.
107 \fB\fB-l\fR\fIm,n\fR\fR
110 Instead of numbering references, use labels from the senior author's last name
111 and the year of publication. Only the first \fIm\fR letters of the last name
112 and the last \fIn\fR digits of the date are used. If either of \fIm\fR or
113 \fIn\fR is omitted, the entire name or date, respectively, is used.
119 \fB\fB-p\fR\fI filename\fR\fR
122 Take the next argument as a file of references to be searched. The default
123 file is searched last.
129 \fB\fB-s\fR\fIkeys\fR\fR
132 Sort references by fields whose key-letters are in the \fIkeys\fR string, and
133 permute reference numbers in the text accordingly. Using this option implies
134 the \fB-e\fR option. The key-letters in \fIkeys\fR may be followed by a number
135 indicating how many such fields are used, with a \fB+\fR sign taken as a very
136 large number. The default is \fB\fR\fBAD\fR\fB,\fR which sorts on the senior
137 author and date. To sort on all authors and then the date, for instance, use
138 the options `\fB-sA+T\fR'.
145 \fB\fB/usr/lib/refer\fR\fR
148 directory of programs
154 \fB\fB/usr/lib/refer/papers\fR\fR
157 directory of default publication lists and indexes
163 \fBaddbib\fR(1), \fBeqn\fR(1), \fBindxbib\fR(1), \fBlookbib\fR(1),
164 \fBnroff\fR(1), \fBroffbib\fR(1), \fBsortbib\fR(1), \fBtbl\fR(1),
165 \fBtroff\fR(1), \fBattributes\fR(5)