|
In the UNIX world,
postscript is the standard in text processing and formatting.
All major computer, printer, and typesetting vendors support
the Postscript language as a standard. Many software packages,
by default, generate postscript output for text and graphics.
Consequently, producing Postscript documents and presentations
for previewing and, then printing, is very strongly encouraged.
Fortunately, there are utilities that will take ASCII text
files and encapsulate them with Postscript operators. Two
helpful programs are:
/usr/transcpript/bin/enscript
/usr/lib/lp/postscript/postprint
The following examples
show aliases that one could place in one's .kshrc and/or .cshrc
file to insure definition for each login session. To print
in landscape mode:
ksh
alias land='/usr/lib/lp/postscript/postprint -pland -l46'
alias land='/usr/transcript/bin/enscript -Php5si -r'
csh
alias land '/usr/lib/lp/postscript/postprint -pland -l46'
alias land '/usr/transcript/bin/enscript -Php5si -r'
Then, to print to
hp5si, one would enter the command:
land filename(s) |
lp -dhp5si (for postprint)
land filesname(s) (for enscript)
To print two colums
(two pages on one page) and landscape mode:
ksh
alias 2upland='/usr/lib/lp/postscript/postprint -pland -l46
-n2'
alias 2upland='/usr/transcript/bin/enscript -Php5si -r -2'
csh
alias 2upland '/usr/lib/lp/postscript/postprint -pland -l46
-n2'
alias 2upland '/usr/transcript/bin/enscript -Php5si -r -2'
Then, use the same
command as for the first example substituting "2upland"
for "land". To use another printer, just substitute
another queue name for hp5si. If one uses the environment
variable LPDEST to define a default queue, the references
to hp5si in the examples can be deleted in the aliases and
the commands. There are more options available with both commands;
enter "man enscript" and "man postprint"
for more detailed explanations. The following utilities are
also available for translating different text formats to Postscript.
For more details, type "man xxxx", sustituting "xxxx"
with the utility name.
a2ps - formats
an ascii file for printing on a postscript printer
lpman - formats manual pages to postscript
hp2ps - FIDAP utility for hpgl to postscript conversion
posttek - PostScript translator for Tektronix 4014
files
dvips - convert a TeX DVI file to PostScript
Return
to Top
|