# How to make a PS file form a TeX document with graphics ?

Could someone explain me how to generate a PS file from a TeX file. I have included some graphics in my TeX file. I used graphicx package.

I am using TeXLive

Thank you.

-

Unless I misunderstood the question, I think something along the following lines should give you a PS file:

``````latex sample2e.tex
dvips sample2e.dvi
``````

(The `sample2e.tex` was slightly modified by adding `\usepackage{graphicx}` in the preamble, and inserting a sample image with `\includegraphics` at the end.)

This uses dvips about which there is extensive documentation. Should you want a PDF, you can just complete the above steps with `ps2pdf`.

-
And the file needs to be in ps or eps format right? thank you –  Niroshan Jan 10 '11 at 18:43
@Niroshan Yep, because of bounding box; `eps` is generally fine (IMO). –  chl Jan 10 '11 at 18:47
(For very new latex users) word "file" in my previous comment - I am referring to the image file –  Niroshan Jan 11 '11 at 10:10