BSD 4_3_Reno release
[unix-history] / usr / src / usr.bin / refer / addbib / addbib.1
CommitLineData
b5dc1377
CL
1.\" Copyright (c) 1983, 1990 The Regents of the University of California.
2.\" All rights reserved.
208a3e78 3.\"
208a3e78 4.\"
1c15e888 5.\" @(#)addbib.1 6.3 (Berkeley) 7/24/90
b5dc1377 6.\"
1c15e888 7.Dd July 24, 1990
b5dc1377
CL
8.Os BSD 4.2
9.Dt ADDBIB 1
10.Sh NAME
11.Nm addbib
12.Nd create or extend bibliographic database
13.Sh SYNOPSIS
14.Nm addbib
15.Op Fl p Ar promptfile
16.Op Fl a
17.Ar database
18.Sh DESCRIPTION
19When this program starts up, answering
5325ced3 20.Ql y
b5dc1377 21to the initial
5325ced3 22.Ql Instructions?
b5dc1377
CL
23prompt yields directions;
24typing
5325ced3 25.Ql n
b5dc1377 26or
5325ced3 27.Ql RETURN
b5dc1377
CL
28skips them.
29.Nm Addbib
208a3e78
KM
30then prompts for various bibliographic fields,
31reads responses from the terminal,
32and sends output records to a
b5dc1377
CL
33.Ar database .
34A null response (just
5325ced3 35.Ql RETURN )
b5dc1377
CL
36means to leave out that field.
37A minus sign
5325ced3 38.Ql \-
b5dc1377 39means to go back to the previous field.
208a3e78 40A trailing backslash allows a field to be continued on the next line.
b5dc1377 41The repeating
5325ced3 42.Ql Continue?
b5dc1377
CL
43prompt allows the user
44either to resume by typing
5325ced3 45.Ql y
b5dc1377 46or
5325ced3 47.Ql RETURN ,
b5dc1377 48to quit the current session by typing
5325ced3 49.Ql n
b5dc1377 50or
5325ced3 51.Ql q ,
208a3e78 52or to edit the
b5dc1377
CL
53.Ar database
54with any system editor (.e.g.
55.Xr vi ,
56.Xr ex ,
57.Xr edit ,
58.Xr ed ) .
59.Pp
208a3e78 60The
b5dc1377 61.Fl a
208a3e78
KM
62option suppresses prompting for an abstract;
63asking for an abstract is the default.
b5dc1377 64Abstracts are ended with a
5325ced3 65.Ql CTRL-d .
208a3e78 66The
b5dc1377 67.Fl p
208a3e78 68option causes
b5dc1377 69.Nm addbib
208a3e78 70to use a new prompting skeleton, defined in
b5dc1377 71.Ar promptfile .
208a3e78
KM
72This file should contain prompt strings, a tab,
73and the key-letters to be written to the
b5dc1377
CL
74.Ar database .
75.Pp
208a3e78 76The most common key-letters and their meanings are given below.
b5dc1377 77.Nm Addbib
208a3e78
KM
78insulates you from these key-letters,
79since it gives you prompts in English,
80but if you edit the bibliography file later on,
81you will need to know this information.
b5dc1377
CL
82.Dw \&%Y,Z
83.Dp \&%A
84Author's name
85.Dp \&%B
86Book containing article referenced
87.Dp \&%C
88City (place of publication)
89.Dp \&%D
90Date of publication
91.Dp \&%E
92Editor of book containing article referenced
93.Dp \&%F
94Footnote number or label (supplied by
95.Xr refer )
96.Dp \&%G
97Government order number
98.Dp \&%H
99Header commentary, printed before reference
100.Dp \&%I
101Issuer (publisher)
102.Dp \&%J
103Journal containing article
104.Dp \&%K
105Keywords to use in locating reference
106.Dp \&%L
107Label field used by
108.Fl k
109option of
110.Xr refer
111.Dp \&%M
112Memorandum label
113.Dp \&%N
114Number within volume
115.Dp \&%O
116Other commentary, printed at end of reference
117.Dp \&%P
118Page number(s)
119.Dp \&%Q
120Corporate or Foreign Author (unreversed)
121.Dp \&%R
122Report, paper, or thesis (unpublished)
123.Dp \&%S
124Series title
125.Dp \&%T
126Title of article or book
127.Dp \&%V
128Volume number
129.Dp \&%X
130Abstract \(em used by
131.Xr roffbib ,
132not by
133.Xr refer
134.Dp \&%Y,Z
135ignored by
136.Xr refer
137.Dp
138.Pp
208a3e78
KM
139Except for `A', each field should be given just once.
140Only relevant fields should be supplied.
b5dc1377
CL
141.Sh EXAMPLES
142.Dw \&%Y,Z
143.Dp %A
144Bill Tuthill
145.Dp %T
146Refer \(em A Bibliography System
147.Dp %I
148Computing Services
149.Dp %C
150Berkeley
151.Dp %D
1521982
153.Dp %O
154\s-1UNX\s0 4.3.5.
155.Dp
156.Sh FILES
157.Dw promptfile
5325ced3 158.Di L
b5dc1377
CL
159.Dp Pa promptfile
160optional file to define prompting
161.Sh SEE ALSO
162.Xr refer 1 ,
163.Xr sortbib 1 ,
164.Xr roffbib 1 ,
165.Xr indxbib 1 ,
166.Xr lookbib 1
167.Sh HISTORY
168appeared in 4.2 BSD.
169.Sh AUTHORS
208a3e78 170Al Stangenberger, Bill Tuthill