summaryrefslogtreecommitdiff
path: root/biblio/bibtex/utils/bibextract/citefind.man
blob: 8abddeb57bbef8db4dbbc0dab46770016047a05a (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
.\" ====================================================================
.\"  @Troff-man-file{
.\"     author          = "Nelson H. F. Beebe",
.\"     version         = "1.03",
.\"     date            = "19 February 1999",
.\"     time            = "12:31:28 MST",
.\"     filename        = "citefind.man",
.\"     address         = "Center for Scientific Computing
.\"                        University of Utah
.\"                        Department of Mathematics, 322 INSCC
.\"                        155 S 1400 E RM 233
.\"                        Salt Lake City, UT 84112-0090
.\"                        USA
.\"     telephone       = "+1 801 581 5254",
.\"     FAX             = "+1 801 585 1640, +1 801 581 4148",
.\"     URL             = "http://www.math.utah.edu/~beebe",
.\"     checksum        = "34902 169 737 5857",
.\"     email           = "beebe@math.utah.edu, beebe@acm.org,
.\"                        beebe@ieee.org (Internet)",
.\"     codetable       = "ISO/ASCII",
.\"     keywords        = "bibliography, BibTeX, citation label,
.\"                        citation tag",
.\"     supported       = "yes",
.\"     docstring       = "This file contains the UNIX manual pages
.\"                        for the citefind command, a shell script
.\"                        that invokes an awk program to extract from
.\"                        a list of BibTeX .bib files bibliography
.\"                        entries that match a specified list of
.\"                        citation tags, possibly produced by
.\"                        citetags(1).
.\"
.\"                        The checksum field above contains a CRC-16
.\"                        checksum as the first value, followed by the
.\"                        equivalent of the standard UNIX wc (word
.\"                        count) utility output of lines, words, and
.\"                        characters.  This is produced by Robert
.\"                        Solovay's checksum utility.",
.\"  }
.\" ====================================================================
.if t .ds Bi B\s-2IB\s+2T\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X
.if n .ds Bi BibTeX
.if t .ds Te T\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X
.if n .ds Te TeX
.TH CITEFIND 1 "19 February 1999" "Version 1.03"
.\"======================================================================
.SH NAME
citefind \- extract matching bibliography entries from BibTeX .bib files
.\"======================================================================
.SH SYNOPSIS
.nf
.BI citefind " tags-file bibfile(s) >newbibfile"
.fi
or
.nf
.BI citefind " \- bibfile(s) >newbibfile"
.fi
.\"======================================================================
.SH DESCRIPTION
.B citefind
extracts from a list of \*(Bi\&
.I .bib
files those bibliography entries that match a
specified list of citation tags, possibly produced
by
.BR citetags (1),
sending the entries to
.IR stdout ,
together with all \*(Bi\& ``@Preamble{.\|.\|.}''
and ``@String{.\|.\|.}'' commands.
.PP
If the first argument,
.IR tags-file ,
is ``\-'', the tag list is read from
.IR stdin ,
allowing it to be piped from
.BR citetags (1).
.PP
Bibliography entries are output in the order found
in the
.I .bib
files.  In the absence of cross references, you
may be able to use
.BR bibsort (1)
to sort them by citation key.  While such sorting
is unnecessary for \*(Bi\& itself, it is
convenient for a human reader of the
.I .bib
file.
.PP
When documents are prepared using a large
bibliography data base collection, it is sometimes
convenient to extract a subset \*(Bi\&
bibliography file incorporating only those entries
that are cited in the document.  A good example is
a document to be submitted to a publisher, or
otherwise distributed in electronic form.
.PP
.B citefind
expects the bibliography file(s) to be consistently
formatted in the style produced by
.BR bibclean (1),
which allows use of simple pattern matching to recognize the required
entries.
.PP
To guard against match failures, from version 1.03,
.B citefind
will complain if requested entries are not found at all, or are found
(and output) more than once.  It will also complain if end-of-file is
reached during collection of any bibliography entry.
.\"======================================================================
.SH "BUGS"
.B citefind
is not smart enough to incorporate \*(Bi\&
cross references unless their citation tags are
included in the input list.
.PP
No attempt is made to reduce the output
``@String{.\|.\|.}'' commands to just those that
are actually referenced.
.PP
Those features should be added.
.\"======================================================================
.SH "SEE ALSO"
.BR bibcheck (1),
.BR bibclean (1),
.BR bibdup (1),
.BR bibextract (1),
.BR bibjoin (1),
.BR biblabel (1),
.BR biblex (1),
.BR biborder (1),
.BR bibparse (1),
.BR bibsort (1),
.BR bibtex (1),
.BR bibunlex (1),
.BR citesub (1),
.BR citetags (1),
.BR gawk (1),
.BR latex (1),
.BR nawk (1),
.BR tex (1).
.\"======================================================================
.SH FILES
.\" NB: LIBDIR and BINDIR are substituted for real directory names
.\"     by a sed script invoked by "make install".
.TP \w'@LIBDIR@/citefind.awk'u+2n
@LIBDIR@/citefind.awk
.BR nawk (1)
program for tag extraction.
.TP
@BINDIR@/citefind
user-callable shell script to invoke
.BR nawk (1).
.\"======================================================================
.SH AUTHOR
.nf
Nelson H. F. Beebe
Center for Scientific Computing
University of Utah
Department of Mathematics, 322 INSCC
155 S 1400 E RM 233
Salt Lake City, UT 84112-0090
USA
Tel: +1 801 581 5254
FAX: +1 801 585 1640, +1 801 581 4148
Email: beebe@math.utah.edu, beebe@acm.org, beebe@ieee.org (Internet)
WWW: http://www.math.utah.edu/~beebe
.fi
.\"==============================[The End]==============================