summaryrefslogtreecommitdiff
path: root/biblio/bibtex/utils/r2bib/r2bib.1
blob: 233d6f516a39da88be369bc861b03acfa4d6ef3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.TH "r2bib" 1 "Mon Dec 7 2015" "Version 2015-12-07" "r2bib" \" -*- nroff -*-
.ad l
.nh
.SH NAME
r2bib \- 
.IP "\(bu" 2
convert refer input to BibTex \&.bib files
.PP
.PP
.SH "SYNOPSIS "
.PP
.PP
\fIr2bib\fP \fIfile\fP \&.\&.\&.
.PP
.SH "DESCRIPTION "
.PP
.PP
\fIr2bib\fP reads the \fIfiles\fP and produces a \fIbibtex\fP reference list (a \&.bib file) on the standard output\&. If no files are given, r2bib reads standard input\&.
.PP
Since \fIrefer\fP files are inherently unstructured (compared to \fIbibtex\fP ) \fIr2bib\fP only does a passable job\&. In particular \fIrefer\fP doesn't require a keyword, while \fIbibtex\fP does\&. The heuristic that \fIr2bib\fP uses for cooking up a keyword, in order of precedence, is:
.PP
.IP "\(bu" 2
Use the keyword entry (%K) if it's only one word\&.
.IP "\(bu" 2
Use the label entry (%L) if it's only one word\&.
.IP "\(bu" 2
Otherwise just use the string 'keyN' where N is the count of this bibliographic entry in the refer file(s)\&.
.PP
.PP
To determine the type of reference that the \fIrefer\fP entry is, \fIr2bib\fP has to do some 'calculated guessing'\&. The heuristic used here (again, in order of precedence) is:
.PP
.IP "\(bu" 2
If it has a journal entry (%J) then it's considered to be an @article\&.
.IP "\(bu" 2
If it has a report entry (%R) then it's considered to be a @techreport\&.
.IP "\(bu" 2
If it has a issuer entry (%I) then it's considered to be a @book\&.
.IP "\(bu" 2
Otherwise it's considered to be a @misc\&.
.PP
.PP
Quite often \fIr2bib\fP will misguess and you will need to edit (by hand) the resulting \&.bib file\&.
.PP
Any fields that \fIr2bib\fP doesn't know about it will ignore (and complain about on stderr)\&.
.PP
.SH "AUTHOR "
.PP
.PP
Rusty Wright, Center For Music Experiment, University of California San Diego\&.