4

I am using the EPFL thesis template to write a LaTex document. I need to compile it using pdfLaTex. Also, I want to use these same template - I can't use any other template. I have many EPS figures which I am unable to include as it throws me the following error

Package epstopdf Info: Source file: (epstopdf)

date: 2014-03-22 17:37:02 (epstopdf) size: 1694

bytes (epstopdf) Output file:

(epstopdf) Command:

-to.pdf images/logo> (epstopdf) \includegraphics on input line 14.

runsystem(repstopdf--outfile=images/logo-eps-converted-to.pdf images/logo.eps)...executed safely (allowed).

Package epstopdf Info: Result file: .

! Package pdftex.def Error: File `images/logo-eps-converted-to.pdf' not found.

I have included the graphicx and epstopdf packages but to no change.I have installed MacTex packages and I am using TexStudio as my LaTex editor.

Is there a way I can include EPS figures without running into these problems? Please note that if I don't use this template and write a normal LaTex document these problems do not arise. I have also tried with other thesis templates and I receive exactly the same problem. I would like to find a solution for such a thesis template itself.

Thanks!

Edit1

Someone has asked me for a piece of code. The zip file for the EPFL thesis template has a file named titlepage.tex. This file includes the EPFL logo (as PDF) within LaTex. I just need to include an EPS image. Here's the relevant code but it's a standard piece of code to include figures in LaTex. logo is the EPS image.

\begin{tabular} {cc}
\parbox{0.3\textwidth}{\includegraphics[width=4cm]{images/logo}}
&

I am able to include PNG, PDF and JPG images but I want to include EPS images for many reasons.

Edit2

This seems to be a TexStudio issue (also mentioned here). It works absolutely good with TexShop. Strange!

Dexter
  • 161
  • Have you tried to convert the files from eps to pdf using something like ghostscript or Adobe Destiller? I know it's not really an easy solution if you have many eps-figures, but a solution none the less. – Argo Mar 22 '14 at 13:58
  • Can you add a simple example of code? – egreg Mar 22 '14 at 14:09
  • @Argo I can do that, but it defeats the purpose - doesn't it? – Dexter Mar 22 '14 at 14:12
  • @egreg The EPFL zip file for the thesis template has a file named titlepage.tex and it includes LaTex code to include the EPFL pdf image. I want to include an eps image instead of PDF. In any case, I will add some code in the original question. – Dexter Mar 22 '14 at 14:14
  • @Dexter I can't understand the xxx-eps-converted bit: it should have a different name than xxx. – egreg Mar 22 '14 at 14:17
  • @egreg xxx is a pseudonym. Replace xxx by your favourite file name. FooBar? :) – Dexter Mar 22 '14 at 14:19
  • I see no EPS file in the ZIP archive – egreg Mar 22 '14 at 14:25
  • @egreg Yes, there is no EPS in the ZIP archive like I mentioned in my edit. They use a PDF image but I want to include a EPS image. – Dexter Mar 22 '14 at 14:27
  • I put an EPS file inside images and added \includegraphics{name} in the sample document; after adding \usepackage{epstopdf} to the preamble everything went smooth. Do you have a space in the file name? – egreg Mar 22 '14 at 14:29
  • @egreg Where did you add \usepackage{epstopdf}? I added it to two files settings_custom.tex as well as my_thesis.tex. Both gives me the same converted-pdf not found error. – Dexter Mar 22 '14 at 14:32
  • @Dexter What's the name of the EPS file? The package can be loaded in settings_custom.tex. But spaces in the file name are not allowed. – egreg Mar 22 '14 at 14:36
  • @egreg - the name of the file is logo.eps and I have used \includegraphics{logo} in my LaTex file. – Dexter Mar 22 '14 at 14:38
  • @Dexter Did you put it in the images directory? If you did, you should use \includegraphics{images/logo} – egreg Mar 22 '14 at 14:39
  • @Dexter: (a) Please, clean up the file name mess in the question. (b) Check, if the .eps file can be converted at all (epstopdf or ps2pdf). – Heiko Oberdiek Mar 22 '14 at 14:40
  • @HeikoOberdiek - Done both and the image can be converted to a PDF. I still get the ! Package pdftex.def Error: Fileimages/logo-eps-converted-to.pdf' not found.` error. – Dexter Mar 22 '14 at 14:46

1 Answers1

1

You should check the source file which you run the tex. I had same error, than I realised that I copied my tex file from another file. so you need to look at path file of your pdf or eps extended figure maybe.

\graphicspath{{C:/blabla/blabla//figures/}}

hope this fix the problem

muzo583
  • 11