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.

When I try to compile this file http://danjer.doudouke.org/_media/tech/dokutexit/playground.zip this error occurs:

! LaTeX Error: Unknown graphics extension: .ps.

I'm using TeXworks Version 0.4.3 (MiKTeX 2.9) and pdfLaTeX.

share|improve this question
Please read the FAQ. Your question is answered here. –  Martin Schröder Jan 21 '12 at 11:37
add comment

2 Answers

  1. You could compile with pdfLaTeX, if you add the line


    for automatic conversion of the PS images to PDF. It requires the option --enable-write18 set. Check the TeXworks preferences, Typesetting, Processing tools, pdfLaTeX:

    pdfLaTeX arguments

  2. You can compile it with XeLaTeX, which is directly supported by TeXworks. You can choose XeLaTeX in the drop-down menu.

    For compiling with XeLaTeX, remove these two lines from the preamble, as XeLaTeX natively supports UTF-8:

  3. Use LaTeX in DVI-mode, and convert as needed, using dvips and ps2pdf, or dvipdfm(x). You can call latex at the command prompt, or define a new tool for TeXworks in the preferences:

    TeXworks tools

share|improve this answer
Seems to work! But there are now different errors. I will figure this out... –  powtac Jan 20 '12 at 17:17
@powtac I was able to successfully compile that project both with pdfLaTeX and XeLaTeX, as described. If you encounter different problems or have follow-up questions, perhaps post a new question, with a link to this question. –  Stefan Kottwitz Jan 20 '12 at 17:26
add comment

pdflatex can insert graphics in jpeg, pdf, and png formats. Can you convert your postscript image (assuming postscript since it has the .ps extension)?

share|improve this answer
What else beside pdflatex can I use? –  powtac Jan 20 '12 at 17:12
you can use plain latex which can insert the postscript image, or stay with pdflatex but convert your image to png, pdf, or jpeg. –  Tim A Jan 20 '12 at 17:13
How can I receive plain latex in Windows? Is it part of GhostScript? –  powtac Jan 20 '12 at 17:16
add comment

Your Answer


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.