+of data passed through pipes.
+.Pp
+The
+.Nm refer
+preprocessor and associated programs
+expect input from a file of references
+composed of records separated by blank lines.
+A record is a set of lines (fields),
+each containing one kind of information.
+Fields start on a line beginning with a
+.Ql % ,
+followed by a key-letter, then a blank,
+and finally the contents of the field,
+and continue until the next line starting with
+.Ql % .
+The output ordering and formatting of fields
+is controlled by the macros specified for
+.Xr nroff 1
+or
+.Xr troff 1
+(for footnotes and endnotes) or
+.Xr roffbib 1
+(for stand-alone bibliographies).
+For a list of the most common key-letters
+and their corresponding fields, see
+.Xr addbib 1 .
+An example of a
+.Nm refer
+entry is given below.
+.Sh ENVIRONMENT
+The following environment variable is used by
+.Nm refer
+if it exists.
+.Bl -tag -width Fl
+.It Ev REFER
+Specify an alternate default search file for publication lists.
+.El
+.Sh EXAMPLES
+.Bd -literal -offset indent
+%A M. E. Lesk
+%T Some Applications of Inverted Indexes on the UNIX System
+%B UNIX Programmer's Manual
+%V 2b
+%I Bell Laboratories
+%C Murray Hill, NJ
+%D 1978
+.Ed
+.Sh FILES
+.Bl -tag -width /usr/share/dict/papers -compact
+.It Pa /usr/share/dict/papers
+Directory of default publication lists.
+.It Pa /var/db/Ind
+Default search file (for
+.Em hunt
+phase).
+.It Pa /usr/share/dict/eign
+Contains common words.
+.It Pa /usr/libexec
+Directory where companion programs reside.
+.El
+.Sh SEE ALSO
+.Xr addbib 1 ,
+.Xr sortbib 1 ,
+.Xr roffbib 1 ,
+.Xr indxbib 1 ,
+.Xr lookbib 1
+.Sh HISTORY
+The
+.Nm Refer
+command appeared in
+.At v7 .
+.Sh AUTHOR
+.An Mike Lesk
+.Sh BUGS
+Blank spaces at the end of lines in bibliography fields
+will cause the records to sort and reverse incorrectly.
+Sorting large numbers of references causes a core dump.