Commit | Line | Data |
---|---|---|
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 | |
30 | is a shell script which prints out all records in a bibliographic database, | |
a395baec KM |
31 | in bibliography format rather than as footnotes or endnotes. |
32 | Generally it is used in conjunction with | |
5325ced3 CL |
33 | .Xr sortbib : |
34 | .Pp | |
35 | .Dl sortbib database \&| roffbib | |
36 | .Pp | |
37 | .Nm Roffbib | |
a395baec | 38 | accepts most of the options understood by |
5325ced3 CL |
39 | .Xr nroff 1 , |
40 | such as the | |
41 | .Fl T | |
a395baec | 42 | flag to specify terminal type. |
5325ced3 | 43 | .Pp |
8e21e06d CL |
44 | If abstracts or comments are entered in the database following the |
45 | .Cm %X | |
46 | field key, | |
5325ced3 | 47 | .Nm roffbib |
a395baec | 48 | will format them into paragraphs for an annotated bibliography. |
8e21e06d CL |
49 | Several |
50 | .Cm %X | |
51 | fields may be given if several | |
a395baec | 52 | annotation paragraphs are desired. |
5325ced3 CL |
53 | .Pp |
54 | Options exclusive to | |
55 | .Nm roffbib : | |
8e21e06d CL |
56 | .Bl -tag -width Fl x |
57 | .It Fl x | |
58 | Suppresses the printing of | |
59 | .Cm %X | |
60 | abstracts. | |
61 | .It Fl V | |
5325ced3 | 62 | Send output to the Versatec (use vtroff). |
8e21e06d | 63 | .It Fl Q |
5325ced3 | 64 | Queue the output to the default troff device. |
8e21e06d | 65 | .El |
5325ced3 CL |
66 | .Pp |
67 | If neither the | |
68 | .Fl Q | |
69 | or | |
70 | .Fl V | |
71 | flags are given, | |
72 | .Nm | |
73 | sends the output to the standard output. | |
74 | The default macros for | |
75 | .Nm | |
76 | are in | |
77 | .Pa /usr/share/tmac/tmac.bib . | |
78 | These can be over ridden by | |
79 | specifying a user-defined set with the | |
80 | .Fl m | |
a395baec | 81 | option. |
5325ced3 | 82 | .Pp |
a395baec KM |
83 | Four command-line registers control formatting style |
84 | of the bibliography, much like the number registers of | |
5325ced3 | 85 | .Xr ms 7 . |
a395baec | 86 | The command-line argument |
8e21e06d | 87 | .Fl r Ns Ar N1 |
a395baec | 88 | will number |
5325ced3 | 89 | the references starting at one 1 . |
a395baec | 90 | The flag |
8e21e06d CL |
91 | .Fl r Ns Ar V2 |
92 | will double space the bibliography, | |
a395baec | 93 | while |
8e21e06d | 94 | .Fl r Ns Ar V1 |
a395baec KM |
95 | will double space references |
96 | but single space annotation paragraphs. | |
97 | The line length can be changed from the default 6.5 inches | |
98 | to 6 inches with the | |
8e21e06d | 99 | .Fl r Ns Ar L6i |
a395baec KM |
100 | argument, |
101 | and the page offset can be set from the default of 0 | |
102 | to one inch by specifying | |
8e21e06d | 103 | .Fl r Ns Ar O1i |
a395baec KM |
104 | (capital O, not zero). |
105 | Note: with the | |
5325ced3 | 106 | .Fl V |
a395baec | 107 | and |
5325ced3 | 108 | .Fl Q |
a395baec KM |
109 | flags |
110 | the default page offset is already one inch. | |
5325ced3 CL |
111 | .Pp |
112 | .Nm Roffbib | |
113 | is limited, but it is a good script to copy and adopt | |
114 | for 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 | 120 | script. |
8e21e06d CL |
121 | .It Pa /usr/share/tmac/tmac.bib |
122 | File of macros used by | |
5325ced3 CL |
123 | .Xr nroff 1 |
124 | and | |
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 |
134 | The |
135 | .Nm roffbib | |
136 | command appeared in | |
137 | .Bx 4.2 . | |
5325ced3 | 138 | .Sh BUGS |
a395baec KM |
139 | Users have to rewrite macros |
140 | to create customized formats. |