Table of contents


NAME

hpset - construct control sequences for the Hewlett-Packard Laser Jet printer

SYNOPSIS

hpset [ -auto ] [ -copies nnn ] [ -cpi nnn ] [ -eject ] [ -envelope ] [ -f1bold ] [ -f1face ( lineprinter | pica | elite | courier | helvetica | timesroman | gothic | script | prestige )" ] [ -f1height nnn ] [ -f1light ] [ -f1medium ] [ -f1pitch nnn ] [ -f2bold ] [ -f2face ( lineprinter | pica | elite | courier | helvetica | timesroman | gothic | script | prestige )" ] [ -f2height nnn ] [ -f2light ] [ -f2medium ] [ -f2pitch nnn ] [ -landscape ] [ -left nnn ] [ -lpi nnn ] [ -manual ] [ -page nnn ] [ -portrait ] [ -reset ] [ -right nnn ] [ -top nnn ] [ -vmi nnn ] [ -wrapoff ] [ -wrapon ]

DESCRIPTION

hpset creates binary control sequences for the Hewlett-Packard Laser Jet printer from human-readable switch settings on the command line.

It can conveniently be used in printer filter scripts.


OPTIONS

One or more of the following switches may be specified. The order is not significant, except that if the -reset switch is given, its control sequence will be sent first. Switch values can be in either letter case.
-cpi nnn
Set characters/inch to nnn.
-copies nnn
Set number of copies of each page.
-eject | -manual | -auto | -envelope
Set paper feed control.
-portrait | -landscape
Set print orientation on page.
-f1face( lineprinter | pica | elite | courier |
helvetica | timesroman | gothic | script | prestige )" Set primary font face.
-f1bold | -f1medium | -f1light
Set primary font stroke weight.
-f1pitch nnn
Set primary font pitch, with nnn in characters/inch.
-f1height nnn
Set primary font height in points.
-f2face( lineprinter | pica | elite | courier |
helvetica | timesroman | gothic | script | prestige )" Set secondary font face.
-f2bold | -f2medium | -f2light
Set secondary font stroke weight.
-f2pitch nnn
Set secondary font pitch, with nnn in characters/inch.
-f2height nnn
Set secondary font height in points.
-left nnn
Set left margin to nnn characters.
-lpi nnn
Set lines/inch to " nnn".
-page nnn
Set page size to nnn lines.
-reset
Reset to power-on state.
-right nnn
Set right margin to nnn characters.
-top nnn
Set top margin to nnn lines.
-vmi nnn
Set vertical motion index in 1/48 inch units.
-wrapon | -wrapoff
Set auto line wrap on or off.

EXAMPLE

Typical values for a letter page with the resident Courier font are:
hpset -left 10 -right 10 -top 6 -page 60 -cpi 10 \
      -lpi 6 -auto -portrait
Normally, one should not need to set the right margin, since this could cause truncation of output text.

If -reset is not given, then previous parameters set in the printer are left intact.

If more than one option from an option group above is given, the last one on the command line is the one actually used.


BUGS

None known.

AUTHOR

Nelson H. F. Beebe, Ph.D.

Center for Scientific Computing

Department of Mathematics

South Physics Building

University of Utah

Salt Lake City, UT 84112

Tel: (801) 581-5254

FAX: (801) 581-4148

Email: <beebe@math.utah.edu>