.\" Copyright (c) 1983, 1990 The Regents of the University of California. .\" All rights reserved. .\" .\" %sccs.include.redist.roff% .\" .\" @(#)roffbib.1 6.6 (Berkeley) %G% .\" .Dd .Dt ROFFBIB 1 .Os BSD 4.2 .Sh NAME .Nm roffbib .Nd run off bibliographic database .Sh SYNOPSIS .Nm roffbib .Op Fl e .Op Fl h .Op Fl n .Op Fl o .Op Fl r .Op Fl s .Op Fl T Ns Ar term .Op Fl x .Op Fl m Ns Ar mac .Op Fl V .Op Fl Q .Ar .Sh DESCRIPTION .Nm Roffbib is a shell script which prints out all records in a bibliographic database, in bibliography format rather than as footnotes or endnotes. Generally it is used in conjunction with .Xr sortbib : .Pp .Dl sortbib database \&| roffbib .Pp .Nm Roffbib accepts most of the options understood by .Xr nroff 1 , such as the .Fl T flag to specify terminal type. .Pp If abstracts or comments are entered in the database following the .Cm %X field key, .Nm roffbib will format them into paragraphs for an annotated bibliography. Several .Cm %X fields may be given if several annotation paragraphs are desired. .Pp Options exclusive to .Nm roffbib : .Bl -tag -width Fl x .It Fl x Suppresses the printing of .Cm %X abstracts. .It Fl V Send output to the Versatec (use vtroff). .It Fl Q Queue the output to the default troff device. .El .Pp If neither the .Fl Q or .Fl V flags are given, .Nm sends the output to the standard output. The default macros for .Nm are in .Pa /usr/share/tmac/tmac.bib . These can be over ridden by specifying a user-defined set with the .Fl m option. .Pp Four command-line registers control formatting style of the bibliography, much like the number registers of .Xr ms 7 . The command-line argument .Fl r Ns Ar N1 will number the references starting at one 1 . The flag .Fl r Ns Ar V2 will double space the bibliography, while .Fl r Ns Ar V1 will double space references but single space annotation paragraphs. The line length can be changed from the default 6.5 inches to 6 inches with the .Fl r Ns Ar L6i argument, and the page offset can be set from the default of 0 to one inch by specifying .Fl r Ns Ar O1i (capital O, not zero). Note: with the .Fl V and .Fl Q flags the default page offset is already one inch. .Pp .Nm Roffbib is limited, but it is a good script to copy and adopt for one's own needs, as it does demonstrate usage of .Xr refer 1 . .Sh FILES .Bl -tag -width /usr/share/tmac/tmac.bib -compact .It Pa /usr/bin/roffbib .Nm Roffbib script. .It Pa /usr/share/tmac/tmac.bib File of macros used by .Xr nroff 1 and .Xr troff 1 . .El .Sh SEE ALSO .Xr refer 1 , .Xr addbib 1 , .Xr sortbib 1 , .Xr indxbib 1 , .Xr lookbib 1 .Sh HISTORY The .Nm roffbib command appeared in .Bx 4.2 . .Sh BUGS Users have to rewrite macros to create customized formats.