How to create PostScript from LaTeX |
If you are using LyX, you will find an option on the File menu to export as PostScript.
If you are working at the command prompt in a terminal window,
you first process a LaTeX document with the command
latex to create a DVI
(device
independent) file, which has the same format on every
computer system. To preview the output on the screen or to
print the output on paper, you further process the DVI
file with a driver program. (For example,
on a standard Unix installation, the command xdvi
filename.dvi opens the xdvi
previewer; on a MiKTeX
system on a PC, the command yap filename.dvi opens the
yap
previewer.) A common way to get hard copy is to use
the driver dvips
, which converts DVI
format to
PostScript.
It is possible to do a certain amount of post-processing to
LaTeX documents by using options with
the dvips
command or by tinkering with the PostScript file before sending it to the printer.
The most common situation is creating PostScript that you are
going to convert to PDF. In that case you should use the
command
dvips -Ppdf filename
to create the PostScript file. Here is another example: the command
dvips -y 1200 -o tortoise.ps -p 5 -n 3 hare.dvi
will take the input file hare.dvi and produce an output
file named tortoise.ps containing 3 pages starting at
page 5 and with the text magnified by a factor of 1.2. Of
course, if you use the -y
option, you need to be careful
not to magnify the text so much that it runs off the edge of the
paper. An option of the form -O 0.5in,-1.5cm will shift the
position of the text on the page one-half inch to the right and
one and one-half centimeters up. For further options, consult the
online documentation for dvips
.
How to create PostScript from LaTeX |