BSD 3 development
[unix-history] / usr / man / man1 / refer.1
CommitLineData
e6817382
BJ
1.TH REFER 1
2.SH NAME
3refer, lookbib \- find and insert literature references in documents
4.SH SYNOPSIS
5.B refer
6[ option ] ...
7.PP
8.B lookbib
9[ file ] ...
10.SH DESCRIPTION
11.I Lookbib
12accepts keywords from the standard input
13and searches a bibliographic data base for references
14that contain those keywords anywhere in title, author,
15journal name, etc.
16Matching references are printed on the standard output.
17Blank lines are taken as delimiters between queries.
18.PP
19.I Refer
20is a preprocessor for
21.I nroff
22or
23.IR troff (1)
24that finds and formats references.
25The input files (standard input default) are copied to the standard output,
26except for lines between .[ and .]
27command lines, which are assumed to contain keywords as for
28.I lookbib,
29and are replaced by information from the bibliographic data base.
30The user may avoid the search, override fields from it, or
31add new fields.
32The reference data, from whatever source, are assigned to a set of
33.I troff
34strings.
35Macro packages such as
36.IR ms (7)
37print the finished reference text from these strings.
38A flag is placed in the text at the point of reference;
39by default the references are indicated by numbers.
40.br
41.sp
42The following options are available:
43.TP 6
44.BI \-a r
45Reverse the first
46.I r
47author names (Jones, J. A. instead of J. A. Jones).
48If
49.I r
50is omitted all author names are reversed.
51.ns
52.TP
53.B \-b
54Bare mode: do not put any flags in text (neither numbers nor labels).
55.ns
56.TP
57.BI \-c string
58Capitalize (with C\s-2APS\s0 S\s-2MALL\s+2 C\s-2APS\s0)
59the fields whose key-letters are in
60.IR string .
61.ns
62.TP
63.B \-e
64Instead of leaving the references where encountered,
65accumulate them
66until a sequence of the form
67.nf
68 .[
69 $LIST$
70 .]
71.fi
72is encountered, and then write out all references
73collected so far. Collapse references to the same source.
74.ns
75.TP
76.BI \-k x
77Instead of numbering references, use labels as specified in
78a
79reference data line
80beginning
81.I %x;
82by default
83.I x
84is
85.B L.
86.ns
87.TP
88.BI \-l m , n
89Instead of numbering references, use labels made from
90the senior author's last name and the year of publication.
91Only the first
92.I m
93letters of the last name
94and the last
95.I n
96digits of the date are used.
97If either
98.I m
99or
100.BI , n
101is omitted the entire name or date respectively is used.
102.ns
103.TP
104.B \-p
105Take the next argument as a file of
106references to be searched.
107The default file is searched last.
108.ns
109.TP
110.B \-n
111Do not search the default file.
112.ns
113.TP
114.BI \-s keys
115Sort references by fields whose key-letters are in
116the
117.I keys
118string;
119permute
120reference numbers in text accordingly.
121Implies
122.BR \-e .
123The key-letters in
124.I keys
125may be followed by a number to indicate how many such fields
126are used, with
127.B +
128taken as a very large number.
129The default is
130.B AD
131which sorts on the senior author and then date; to sort, for example,
132on all authors and then title use
133.BR -sA+T .
134.PP
135To use your own references, put them in the format
136described in
137.IR pubindex (1)
138They can be searched
139more rapidly by running
140.IR pubindex (1)
141on them before using
142.I refer;
143failure to index results in a linear search.
144.PP
145When
146.I refer
147is used with
148.I eqn,
149.I neqn
150or
151.I tbl,
152.I refer
153should be first, to minimize the volume
154of data passed through
155pipes.
156.SH FILES
157.I /usr/dict/papers
158directory of default publication lists and indexes
159.br
160.I /usr/lib/refer
161directory of programs
162.SH SEE ALSO
163.br