Up to main menu
Back to Text vs. PostScript; Viewing
Next: Graphics formats; PNG and JPG
Text vs. PostScript; Printing
Text files and PostScript files are the two types of files
which can be sent to the printer directly using a Unix command.
PostScript
Use the command lpr to print a PostScript file,
e.g.,
pascal> lpr graph.ps
Some ``encapsulated PostScript'' files will not print,
because they are intended only to be inserted into
larger documents or graphics.
If the keyword showpage is missing from
an Encapsulated PostScript file, then it
is not printable. Try
pascal> grep showpage filename.eps
Non-PostScript text files
A plain text file, such as an email message
or the source code for your Fortran program
or C program,
is best printed using enscript.
Like most Unix commands, it can be used with
any of a dozen options;
for a long (more than 64 lines) text file
you can use -2Gr,
which indicates that the text should be
printed in 2 columns on the page,
in landscape (sideways) orientation,
with a ``Gaudy'' header
(file name, date and time, page numbers).
See the manual page for enscript
for lots more options.
pascal> enscript -2Gr program.f90
Up to main menu
Back to Text vs. PostScript; Viewing
Next: Graphics formats; PNG and JPG
Bruce.Fast@Colorado.EDU