Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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