4.4BSD/usr/src/old/lisp/vlp/vlp.1

Compare this file to the similar file:
Show the results in this format:

.\" Copyright (c) 1983, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"     @(#)vlp.1	6.3 (Berkeley) 4/23/91
.\"
.Dd April 23, 1991
.Dt VLP 1
.Os BSD 4.2
.Sh NAME
.Nm vlp
.Nd Format Lisp programs to
be printed with nroff, vtroff, or troff
.Sh SYNOPSIS
.Nm vlp
.Op Fl d
.Op Fl f
.Op Fl l
.Op Fl p Ar pointsize
.Op Fl v
.Op Fl T Ar title1
.Ar file1
.Bk -words
.Op Fl T Ar title2
.Ek
.Ar file2 Ar ...
.Sh DESCRIPTION
.Nm Vlp
formats the named files so that they can be run through
.Xr nroff 1 ,
.Xr vtroff 1 ,
or
.Xr troff 1
to produce listings that line-up and are attractive.
The first non-blank character of each line is lined-up vertically,
as in the source file.
Comments (text beginning with a semicolon)
are printed in italics.
Each function's name is printed in bold face next to the function.
This format makes Lisp code look attractive when it is printed with a 
variable width font.
.Pp
Normally,
.Nm vlp
works as a filter and sends its output to the standard output.
However,
the 
.Fl v
switch pipes the output directly to vtroff.
If no files are specified,
then
.Nm vlp
reads from the standard input.
.Pp
The following options are available:
.Bl -tag -width Ds
.It Fl d
The 
.Fl d
switch puts
.Nm vlp
into debugging mode.
.It Fl f
.Nm Vlp
has a filtered mode
in which all lines are passed unmodified,
except those lines between the directives
.Sy .Ls
and
.Sy .Le .
This mode can be used to format Lisp code that is embedded in a document.
The directive
.Sy .Ls
takes an optional argument that gives the point
size for the embedded code.
If not size is specified,
the size of the surrounding text is used.
.It Fl l
The
.Fl l
switch prevents
.Nm vlp
from placing labels next to functions.
This switch is useful for embedded Lisp code,
where the labels would be distracting.
.It Fl p Ar pointsize
The
.Fl p
switch changes the size of the text from its default value of 8 points
to one of 6, 8, 10, or 12 points.
Once set, the point size is used for all subsequent files.
This point size does not apply to embedded text (see
.Fl f
above).
.It Fl v
This switch cause
.Nm vlp
to send its output to vtroff rather than the
standard output.
.It Fl T Ar title
A title to be printed on each page may be specified by using the 
.Fl T
switch.
The 
.Fl T
switch applies only to the next
.Ar file
name given.
Titles are not printed for embedded text (see 
.Fl f ,
above).
This switch may not be used if
.Nm vlp
is reading from the standard input.
.El
.Sh FILES
.Bl -tag -width Pa
.It Pa /usr/lib/vlpmacs
.Xr troff/nroff
macros
.El
.Sh SEE ALSO
.Xr vgrind 1 ,
.Xr lisp 1
.Sh BUGS
.Nm vlp
transforms
.Ql \e
into
.Ql \e\e
so that it will be printed out.
Hence,
.Xr troff
commands cannot be embedded in Lisp code.
.Sh HISTORY
The
.Nm
command appeared in
.Bx 4.2 .