SCCS-vsn: old/refer/refer/refer.1 6.7
SCCS-vsn: old/refer/OTHERS/roffbib.1 6.6
SCCS-vsn: usr.bin/bc/bc.1 6.8
.\"
.\" %sccs.include.redist.roff%
.\"
.\"
.\" %sccs.include.redist.roff%
.\"
-.\" @(#)roffbib.1 6.5 (Berkeley) %G%
+.\" @(#)roffbib.1 6.6 (Berkeley) %G%
.Dd
.Dt ROFFBIB 1
.Os BSD 4.2
.Dd
.Dt ROFFBIB 1
.Os BSD 4.2
.Op Fl o
.Op Fl r
.Op Fl s
.Op Fl o
.Op Fl r
.Op Fl s
-.Oo
-.Op Fl T Ar term
-.Oo
.Fl T
flag to specify terminal type.
.Pp
.Fl T
flag to specify terminal type.
.Pp
-If abstracts or comments are entered in the database following the %X field key,
+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.
.Nm roffbib
will format them into paragraphs for an annotated bibliography.
-Several %X fields may be given if several
+Several
+.Cm %X
+fields may be given if several
annotation paragraphs are desired.
.Pp
Options exclusive to
.Nm roffbib :
annotation paragraphs are desired.
.Pp
Options exclusive to
.Nm roffbib :
-.Tp Fl x
-Suppresses the printing of %X abstracts.
-.Tp Fl V
+.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).
Send output to the Versatec (use vtroff).
Queue the output to the default troff device.
Queue the output to the default troff device.
of the bibliography, much like the number registers of
.Xr ms 7 .
The command-line argument
of the bibliography, much like the number registers of
.Xr ms 7 .
The command-line argument
will number
the references starting at one 1 .
The flag
will number
the references starting at one 1 .
The flag
-.Cx Fl r
-.Ar V2
-.Cx
-will double space the biblio\%graphy,
+.Fl r Ns Ar V2
+will double space the bibliography,
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
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
argument,
and the page offset can be set from the default of 0
to one inch by specifying
argument,
and the page offset can be set from the default of 0
to one inch by specifying
(capital O, not zero).
Note: with the
.Fl V
(capital O, not zero).
Note: with the
.Fl V
for one's own needs, as it does demonstrate usage of
.Xr refer 1 .
.Sh FILES
for one's own needs, as it does demonstrate usage of
.Xr refer 1 .
.Sh FILES
-.Dw /usr/share/tmac/tmac.bib
-.Di L
-.Dp Pa /usr/bin/roffbib
-.Nm
+.Bl -tag -width /usr/share/tmac/tmac.bib -compact
+.It Pa /usr/bin/roffbib
+.Nm Roffbib
-.Dp Pa /usr/share/tmac/tmac.bib
-file of macros used by
+.It Pa /usr/share/tmac/tmac.bib
+File of macros used by
.Sh SEE ALSO
.Xr refer 1 ,
.Xr addbib 1 ,
.Sh SEE ALSO
.Xr refer 1 ,
.Xr addbib 1 ,
.Xr indxbib 1 ,
.Xr lookbib 1
.Sh HISTORY
.Xr indxbib 1 ,
.Xr lookbib 1
.Sh HISTORY
-.Nm Roffbib
-appeared in 4.2 BSD.
+The
+.Nm roffbib
+command appeared in
+.Bx 4.2 .
.Sh BUGS
Users have to rewrite macros
to create customized formats.
.Sh BUGS
Users have to rewrite macros
to create customized formats.
.\"
.\" %sccs.include.proprietary.roff%
.\"
.\"
.\" %sccs.include.proprietary.roff%
.\"
-.\" @(#)refer.1 6.6 (Berkeley) %G%
+.\" @(#)refer.1 6.7 (Berkeley) %G%
.Dd
.Dt REFER 1
.Os ATT 7th
.Dd
.Dt REFER 1
.Os ATT 7th
.Op Fl b
.Op Fl c
.Op Fl e
.Op Fl b
.Op Fl c
.Op Fl e
-.Oo
-.Op Fl f Ar n
-.Op Fl k Ar x
-.Op Fl l Ar m,n
-.Oo
+.Op Fl f Ns Ar n
+.Op Fl k Ns Ar x
+.Op Fl l Ns Ar m,n
-.Oo
-.Op Fl s Ar keys
-.Op Fl B Ar l.m
-.Oo
+.Op Fl s Ns Ar keys
+.Op Fl B Ns Ar l.m
containing these keywords anywhere in the title, author, journal, etc.
The input file (or standard input)
is copied to standard output,
containing these keywords anywhere in the title, author, journal, etc.
The input file (or standard input)
is copied to standard output,
-except for lines between \&.[
-and \&.]
+except for lines between
+.Ql \&.[
+and
+.Ql \&.]
delimiters,
which are assumed to contain keywords,
and are replaced by information from the bibliographic database.
delimiters,
which are assumed to contain keywords,
and are replaced by information from the bibliographic database.
By default references are flagged by footnote numbers.
.Pp
The following options are available:
By default references are flagged by footnote numbers.
.Pp
The following options are available:
-.Tw Fl
-.Tc Fl a
-.Ar n
-.Cx
+.Bl -tag -width flag
+.It Fl a Ns Ar n
Reverse the first
.Ar n
author names (Jones, J. A. instead of J. A. Jones).
If
.Ar n
is omitted all author names are reversed.
Reverse the first
.Ar n
author names (Jones, J. A. instead of J. A. Jones).
If
.Ar n
is omitted all author names are reversed.
Bare mode: do not put any flags in text (neither numbers nor labels).
Bare mode: do not put any flags in text (neither numbers nor labels).
Capitalize (with C\s-2APS\s+2 S\s-2MALL\s+2 C\s-2APS\s+2)
the fields whose key-letters are in
.Ar keys .
Capitalize (with C\s-2APS\s+2 S\s-2MALL\s+2 C\s-2APS\s+2)
the fields whose key-letters are in
.Ar keys .
Instead of leaving the references where encountered,
accumulate them until a sequence of the form
Instead of leaving the references where encountered,
accumulate them until a sequence of the form
+.Bd -literal -offset indent -compact
is encountered, and then write out all references collected so far.
Collapse references to same source.
is encountered, and then write out all references collected so far.
Collapse references to same source.
Set the footnote number to
.Ar n
instead of the default of 1 (one).
With labels rather than numbers,
this flag is a no-op.
Set the footnote number to
.Ar n
instead of the default of 1 (one).
With labels rather than numbers,
this flag is a no-op.
Instead of numbering references, use labels as specified in a
reference data line beginning
.Ar \&%x ;
Instead of numbering references, use labels as specified in a
reference data line beginning
.Ar \&%x ;
-.Tc Fl l
-.Ar m , n
-.Cx
Instead of numbering references, use labels made from
the senior author's last name and the year of publication.
Only the first
Instead of numbering references, use labels made from
the senior author's last name and the year of publication.
Only the first
or
.Ar n
is omitted the entire name or date respectively is used.
or
.Ar n
is omitted the entire name or date respectively is used.
Do not search the default file
.Pa /var/db/Ind .
If there is a
Do not search the default file
.Pa /var/db/Ind .
If there is a
in this case the
.Fl n
flag has no effect.
in this case the
.Fl n
flag has no effect.
-.Tc Fl p
-.Ws
-.Ar bib
-.Cx
Take the next argument
.Ar bib
as a file of references to be searched.
The default file is searched last.
Take the next argument
.Ar bib
as a file of references to be searched.
The default file is searched last.
Sort references by fields whose key-letters are in the
.Ar keys
string;
Sort references by fields whose key-letters are in the
.Ar keys
string;
which sorts on the senior author and then date; to sort, for example,
on all authors and then title, use
.Fl sA+T .
which sorts on the senior author and then date; to sort, for example,
on all authors and then title, use
.Fl sA+T .
Bibliography mode.
Take a file composed of records separated by blank lines,
and turn them into
Bibliography mode.
Take a file composed of records separated by blank lines,
and turn them into
defaulting to
.Cm \&.AP
(annotation paragraph).
defaulting to
.Cm \&.AP
(annotation paragraph).
-.Tp Fl P
-Place punctuation marks .,:;?! after the reference signal,
+.It Fl P
+Place punctuation marks
+.Ql ".,:;?!" after the reference signal,
rather than before.
(Periods and commas used to be done with strings.)
rather than before.
(Periods and commas used to be done with strings.)
Produce references in the Natural or Social Science format.
Produce references in the Natural or Social Science format.
.Pp
To use your own references,
put them in the format described below.
.Pp
To use your own references,
put them in the format described below.
composed of records separated by blank lines.
A record is a set of lines (fields),
each containing one kind of information.
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 ``%'',
+Fields start on a line beginning with a
+.Ql % ,
followed by a key-letter, then a blank,
and finally the contents of the field,
followed by a key-letter, then a blank,
and finally the contents of the field,
-and continue until the next line starting with ``%''.
+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
The output ordering and formatting of fields
is controlled by the macros specified for
.Xr nroff 1
The following environment variable is used by
.Nm refer
if it exists.
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.
Specify an alternate default search file for publication lists.
+.Bd -literal -offset indent
%A M. E. Lesk
%T Some Applications of Inverted Indexes on the UNIX System
%B UNIX Programmer's Manual
%A M. E. Lesk
%T Some Applications of Inverted Indexes on the UNIX System
%B UNIX Programmer's Manual
%I Bell Laboratories
%C Murray Hill, NJ
%D 1978
%I Bell Laboratories
%C Murray Hill, NJ
%D 1978
-.Dw /usr/share/dict/papers
-.Di L
-.Dp Pa /usr/share/dict/papers
-directory of default publication lists.
-.Dp Pa /var/db/Ind
-default search file (for
+.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
-.Dp Pa /usr/share/dict/eign
-contains common words.
-.Dp Pa /usr/libexec
-directory where companion programs reside.
-.Dp
+.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 ,
.Sh SEE ALSO
.Xr addbib 1 ,
.Xr sortbib 1 ,
.Xr indxbib 1 ,
.Xr lookbib 1
.Sh HISTORY
.Xr indxbib 1 ,
.Xr lookbib 1
.Sh HISTORY
-appeared in Version 7 AT&T Unix.
+command appeared in
+.At v7 .
.Sh BUGS
Blank spaces at the end of lines in bibliography fields
will cause the records to sort and reverse incorrectly.
.Sh BUGS
Blank spaces at the end of lines in bibliography fields
will cause the records to sort and reverse incorrectly.
.\"
.\" %sccs.include.proprietary.roff%
.\"
.\"
.\" %sccs.include.proprietary.roff%
.\"
-.\" @(#)bc.1 6.7 (Berkeley) %G%
+.\" @(#)bc.1 6.8 (Berkeley) %G%
.\"
.Dd
.Dt BC 1
.Os ATT 7th
.Sh NAME
.\"
.Dd
.Dt BC 1
.Os ATT 7th
.Sh NAME
.Nd arbitrary-precision arithmetic language and calculator
.Sh SYNOPSIS
.Nd arbitrary-precision arithmetic language and calculator
.Sh SYNOPSIS
.Op Fl c
.Op Fl l
.Ar
.Sh DESCRIPTION
.Op Fl c
.Op Fl l
.Ar
.Sh DESCRIPTION
is an interactive processor for a language which resembles
C but provides unlimited precision arithmetic.
It takes input from any files given, then reads
the standard input.
is an interactive processor for a language which resembles
C but provides unlimited precision arithmetic.
It takes input from any files given, then reads
the standard input.
+.Pp
+Options available:
+.Bl -tag -width flag
+.It Fl l
allow specification
of an arbitrary precision math library.
allow specification
of an arbitrary precision math library.
is actually a preprocessor for
is actually a preprocessor for
which it invokes automatically, unless the
.Fl c
compile only.
option is present.
In this case the
which it invokes automatically, unless the
.Fl c
compile only.
option is present.
In this case the
input is sent to the standard output instead.
input is sent to the standard output instead.
programs is as follows;
L means letter a-z,
E means expression, S means statement.
.Pp
Comments
programs is as follows;
L means letter a-z,
E means expression, S means statement.
.Pp
Comments
+.Bd -unfilled -offset indent -compact
are enclosed in /* and */.
are enclosed in /* and */.
+.Bd -unfilled -offset indent -compact
simple variables: L
array elements: L [ E ]
The words `ibase', `obase', and `scale'
simple variables: L
array elements: L [ E ]
The words `ibase', `obase', and `scale'
+.Bd -unfilled -offset indent -compact
arbitrarily long numbers with optional sign and decimal point.
\&( E \&)
sqrt ( E )
length ( E ) number of significant decimal digits
scale ( E ) number of digits right of decimal point
L ( E , ... , E )
arbitrarily long numbers with optional sign and decimal point.
\&( E \&)
sqrt ( E )
length ( E ) number of significant decimal digits
scale ( E ) number of digits right of decimal point
L ( E , ... , E )
+.Bd -unfilled -offset indent -compact
\&+ \- * / % ^ (% is remainder; ^ is power)
\&++ \-\- (prefix and postfix; apply to names)
\&== <= >= != < >
\&= += \-= *= /= %= ^=
\&+ \- * / % ^ (% is remainder; ^ is power)
\&++ \-\- (prefix and postfix; apply to names)
\&== <= >= != < >
\&= += \-= *= /= %= ^=
+.Bd -unfilled -offset indent -compact
E
{ S ; ... ; S }
if ( E ) S
E
{ S ; ... ; S }
if ( E ) S
null statement
break
quit
null statement
break
quit
+.Bd -unfilled -offset indent -compact
define L ( L ,..., L ) {
auto L, ... , L
S; ... S
return ( E )
}
define L ( L ,..., L ) {
auto L, ... , L
S; ... S
return ( E )
}
.Pp
Functions in
.Fl l
math library
.Pp
Functions in
.Fl l
math library
+.Bl -tag -width j(n,x) -offset indent -compact
+.It s(x)
.Pp
All function arguments are passed by value.
.Pp
.Pp
All function arguments are passed by value.
.Pp
.Ar scale
influences the number of digits to be retained on arithmetic
operations in the manner of
.Ar scale
influences the number of digits to be retained on arithmetic
operations in the manner of
Assignments to
.Ar ibase
or
Assignments to
.Ar ibase
or
empty square brackets must follow the array name.
.Pp
For example
empty square brackets must follow the array name.
.Pp
For example
+.Bd -literal -offset indent
scale = 20
define e(x){
auto a, b, c, i, s
scale = 20
define e(x){
auto a, b, c, i, s
defines a function to compute an approximate value of
the exponential function and
.Pp
defines a function to compute an approximate value of
the exponential function and
.Pp
the first ten integers.
.Sh FILES
.\" /usr/lib/lib.b mathematical library
the first ten integers.
.Sh FILES
.\" /usr/lib/lib.b mathematical library
-.Dw Dc(1)
-.Di L
-.Dp Pa dc(1) desk calculator proper
-.Dp
+.Bl -tag -width xxxxx -compact
+.It Xr \&dc 1
+Desk calculator Proper.
+.El
-.Xr dc 1
-.br
-L. L. Cherry and R. Morris,
-.Em BC \- An arbitrary precision desk-calculator language
+.Xr \&dc 1
+.Rs
+.%A L. L. Cherry
+.%A R. Morris
+.%T "BC \- An arbitrary precision desk-calculator language"
+.Re
-.Nm bc
-command appeared in Version 7 AT&T UNIX.
+.Nm \&bc
+command appeared in
+.At v6 .
.Sh BUGS
No &&, \(or\\(or, or ! operators.
.Sh BUGS
No &&, \(or\\(or, or ! operators.
.Ql For
statement must have all three E's.
.Ql For
statement must have all three E's.
.Ql Quit
is interpreted when read, not when executed.
.Ql Quit
is interpreted when read, not when executed.