mdoc version three
[unix-history] / usr / src / old / refer / OTHERS / roffbib.1
CommitLineData
a860ef9e 1.\" Copyright (c) 1983, 1990 The Regents of the University of California.
5325ced3 2.\" All rights reserved.
a395baec 3.\"
a860ef9e 4.\" %sccs.include.redist.roff%
a395baec 5.\"
8e21e06d 6.\" @(#)roffbib.1 6.6 (Berkeley) %G%
5325ced3
CL
7.\"
8.Dd
9.Dt ROFFBIB 1
10.Os BSD 4.2
11.Sh NAME
12.Nm roffbib
13.Nd run off bibliographic database
14.Sh SYNOPSIS
15.Nm roffbib
16.Op Fl e
17.Op Fl h
18.Op Fl n
19.Op Fl o
20.Op Fl r
21.Op Fl s
8e21e06d 22.Op Fl T Ns Ar term
5325ced3 23.Op Fl x
8e21e06d 24.Op Fl m Ns Ar mac
5325ced3
CL
25.Op Fl V
26.Op Fl Q
27.Ar
28.Sh DESCRIPTION
29.Nm Roffbib
30is a shell script which prints out all records in a bibliographic database,
a395baec
KM
31in bibliography format rather than as footnotes or endnotes.
32Generally it is used in conjunction with
5325ced3
CL
33.Xr sortbib :
34.Pp
35.Dl sortbib database \&| roffbib
36.Pp
37.Nm Roffbib
a395baec 38accepts most of the options understood by
5325ced3
CL
39.Xr nroff 1 ,
40such as the
41.Fl T
a395baec 42flag to specify terminal type.
5325ced3 43.Pp
8e21e06d
CL
44If abstracts or comments are entered in the database following the
45.Cm %X
46field key,
5325ced3 47.Nm roffbib
a395baec 48will format them into paragraphs for an annotated bibliography.
8e21e06d
CL
49Several
50.Cm %X
51fields may be given if several
a395baec 52annotation paragraphs are desired.
5325ced3
CL
53.Pp
54Options exclusive to
55.Nm roffbib :
8e21e06d
CL
56.Bl -tag -width Fl x
57.It Fl x
58Suppresses the printing of
59.Cm %X
60abstracts.
61.It Fl V
5325ced3 62Send output to the Versatec (use vtroff).
8e21e06d 63.It Fl Q
5325ced3 64Queue the output to the default troff device.
8e21e06d 65.El
5325ced3
CL
66.Pp
67If neither the
68.Fl Q
69or
70.Fl V
71flags are given,
72.Nm
73sends the output to the standard output.
74The default macros for
75.Nm
76are in
77.Pa /usr/share/tmac/tmac.bib .
78These can be over ridden by
79specifying a user-defined set with the
80.Fl m
a395baec 81option.
5325ced3 82.Pp
a395baec
KM
83Four command-line registers control formatting style
84of the bibliography, much like the number registers of
5325ced3 85.Xr ms 7 .
a395baec 86The command-line argument
8e21e06d 87.Fl r Ns Ar N1
a395baec 88will number
5325ced3 89the references starting at one 1 .
a395baec 90The flag
8e21e06d
CL
91.Fl r Ns Ar V2
92will double space the bibliography,
a395baec 93while
8e21e06d 94.Fl r Ns Ar V1
a395baec
KM
95will double space references
96but single space annotation paragraphs.
97The line length can be changed from the default 6.5 inches
98to 6 inches with the
8e21e06d 99.Fl r Ns Ar L6i
a395baec
KM
100argument,
101and the page offset can be set from the default of 0
102to one inch by specifying
8e21e06d 103.Fl r Ns Ar O1i
a395baec
KM
104(capital O, not zero).
105Note: with the
5325ced3 106.Fl V
a395baec 107and
5325ced3 108.Fl Q
a395baec
KM
109flags
110the default page offset is already one inch.
5325ced3
CL
111.Pp
112.Nm Roffbib
113is limited, but it is a good script to copy and adopt
114for one's own needs, as it does demonstrate usage of
115.Xr refer 1 .
116.Sh FILES
8e21e06d
CL
117.Bl -tag -width /usr/share/tmac/tmac.bib -compact
118.It Pa /usr/bin/roffbib
119.Nm Roffbib
5325ced3 120script.
8e21e06d
CL
121.It Pa /usr/share/tmac/tmac.bib
122File of macros used by
5325ced3
CL
123.Xr nroff 1
124and
8e21e06d
CL
125.Xr troff 1 .
126.El
5325ced3
CL
127.Sh SEE ALSO
128.Xr refer 1 ,
129.Xr addbib 1 ,
130.Xr sortbib 1 ,
131.Xr indxbib 1 ,
132.Xr lookbib 1
133.Sh HISTORY
8e21e06d
CL
134The
135.Nm roffbib
136command appeared in
137.Bx 4.2 .
5325ced3 138.Sh BUGS
a395baec
KM
139Users have to rewrite macros
140to create customized formats.