I posting this question but once I posted in this topic ''LaTeX - Image not showing up'' I have bben told that to create new question that everyone can see. I have a problem with .eps format when I want to convert my text form TeXworks to pdf file. I always get the blank rectangle with name of the image! I removed draft, and I am using IEEEconfran template. Here is the results:enter image description here

Thanks a lot in advance!

  • 2
    .eps does not work with pdf directly. It seems that you have enabled the draft option either of your documentclass or of \usepackage{graphicx} or it is some setting with TeXWorks – user31729 Jan 8 '17 at 15:28
  • 2
    Even if EPS isn't directly supported by pdflatex, the graphicx package should convert EPS graphics to PDF automatically. But a MWE will be helpful here (as Christian indicated, it's almost certainly a draft option somewhere). – Mike Renfro Jan 8 '17 at 15:36
  • 2
    You should convert your .eps file to .pdf format with Siep Koonenberg's excellent tool: epspdf, with option Compute tight bounding box. – Bernard Jan 8 '17 at 15:39
  • it looks to me like you are using [draft] option which suppresses the image inclusion and just prints the filename. – David Carlisle Jan 8 '17 at 17:07
  • I was wondering, how can I find out that I am using draft, I eliminated the draft name in my .tex file. here is my document class \documentclass[conference]{IEEEtran} and I am using the following packages: \usepackage[numbers]{natbib} % bibliography style \usepackage[final]{epstopdf} \usepackage{graphicx} \usepackage{float} \usepackage{amsmath} \usepackage{mathtools} \usepackage{subfig} \usepackage{environ} %\usepackage{lipsum} \usepackage{etoolbox} \usepackage[english]{babel} \epstopdfsetup{update} \usepackage{amssymb}. Please let me know if I have mistake! – ymn Jan 8 '17 at 17:49

Try adding something like this just after \documentclass. This of course assumes you have xetex installed.

  • Thanks, I received the following error: ! LaTeX Error: Option clash for package graphicx. l.283 \DeclareGraphicsExtensions {.pdf,.jpeg,.png} – ymn Jan 9 '17 at 10:53
  • I just compiled the following code with a eps figure showing up with no bug using both latex and xelatex:\documentclass[conference]{IEEEtran} \ifCLASSINFOpdf \usepackage[pdftex]{graphicx} \DeclareGraphicsExtensions{.pdf,.jpeg,.png} \else \usepackage[dvips,xetex]{graphicx} \DeclareGraphicsExtensions{.eps} \fi \begin{document} \begin{figure} \includegraphics[width = 1\textwidth, clip = true, trim = 0in 0in 0in 0in]{test.eps} \end{figure} \end{document} – Wes W. Jan 10 '17 at 3:02
  • Thanks a lot! finally I could. I used both LaTex and XeLaTex and I could able to convert .eps to .pdf format, I do appreciate. – ymn Jan 10 '17 at 9:12

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.