.TH hp "" "" Command
.PC "Prepare files for Hewlett-Packard LaserJet printer"
\fBhp [ -acflr ] [ -i\fImarg\fB ] [ -t\fItop\fB ] [ -p\fIlines \fB] [ \fIfile ... \fB]\fR
.PP
.II printer
.HS
.SH Options:
.IC \fB\-a\fR
Substitute ` ' for '
.IC \fB\-c\fR
Toggle cartridge in place switch
.IC \fB\-f\fR
Print pages in forward order (default)
.IC \fB\-l\fR
Landscape mode
.IC \fB\-i\fImarg\fR
Indent to \fImarg\fR
.IC \fB\-p\fIlines\fR
Page length is \fIlines\fR
.IC \fB\-r\fR
Print pages in reverse order (for LaserJet I).
.IC \fB\-t\fImarg\fR
Set top margin to \fImarg\fR
.HE
The command
.B hp
translates
.B nroff
font specifications into the 
correct escape sequences for an HP LaserJet compatible printer.
It also allows the user to set indentation, page length, landscape
mode, and so on.
Because some LaserJet printers stack pages in reverse
order as they are printed,
.B hp
can put pages out in reverse order.
.PP
.B hp
recognizes the following options:
.RS
.IP \fB\-f\fR 0.7i
Print pages in the normal order.
This is the default.
.IP \fB\-i\fImarg\fR
Set the page indentation to \fImarg\fR.
.IP \fB\-l\fR
Print pages in landscape mode.
.IP \fB\-p\fIlines\fR
Set the page length to \fIlines\fR.
.IP \fB\-r\fR
Print pages in reverse order (for LaserJet I).
.IP \fB\-t\fItop\fR
Set the top margin to \fItop\fR.
.SH Example
To generate listings of all C programs in the current directory, enter
the command
.DM
	pr *.c | hp | hpr -B
.DE
.SH "See Also"
.Xr "commands," commands
.Xr "hpd," hpd
.Xr "printer" printer
