I am writing a thesis in a large .tex file in Vim. I have a .jpg and .png high quality native images, that converted to .eps result in very a low quality. Visually, it is a lower quality. Therefore, I would like to include the jpg's and png's directly.

In the preamble, I declare:


And I also have the graphicx.sty file in the same folder.

When I complie, I get this error:

enter image description here

Here is the link to direct download of the image, in order to check previously if a possible solution works:


My preamble is this:

\parindent 1 true cm
\usepackage{fancyhdr}   %llama al paquete para definiciĆ³n de estilo de pagina
\pagestyle{fancy}       %Idem                                 
\renewcommand{\chaptermark}[1]{\markboth{\thechapter .\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection .\ #1}{}}
\fancyhead[LE]{{\sf \leftmark}}
\fancyhead[RO]{{\sf \rightmark}}
\usepackage{enumerate}  % Para poder poner un enumerar en I.

Here is the code that introduces the image:





I would appreciate very much if someone could help me, making tests with the image provided above, using my preamble, and the code that introduces the image. (I am writing the thesis .tex file in Vim).

  • 3
    You have to use pdflatex, not latex – egreg Jun 18 '14 at 20:38
  • You are probably using latex rather than pdflatex: only direct PDF inclusion enables PNG and JPG inclusion. Either change your tool or convert your graphics to EPS format. – Joseph Wright Jun 18 '14 at 20:38
  • 2
    also you should not have graphicx.sty in the same folder, it is part of the core required latex distribution so you should never need a local copy (and having a local copy woul dbe bad if the core is everupdated) – David Carlisle Jun 18 '14 at 20:39
  • 2
    Welcome to TeX.SX! Please make your code compilable (if possible), or at least complete it with \documentclass{...}, the required \usepackage's, \begin{document}, and \end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem. – Martin Schröder Jun 18 '14 at 21:54
  • 2
    Your sample code is neither complete nor minimal nor self-contained. For example, using the well-known tiger.eps: \documentclass{report} \usepackage{graphicx} \usepackage{epstopdf} \begin{document} \includegraphics[width=0.5\linewidth]{example-image-a} \includegraphics[width=0.5\linewidth]{tiger} \end{document}. That works on my system. – Paul Gessler Jun 18 '14 at 22:18

Browse other questions tagged or ask your own question.