5

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.

1 Answer 1

8

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.