1

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:

    \usepackage{graphicx} 

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:

https://www.mediafire.com/?71cl62619ty6c9r

My preamble is this:

\documentclass[12pt,a4paper,twoside,openany]{report}
\usepackage[left=2.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
\parindent 1 true cm
\usepackage{graphicx}       
\usepackage{eufrak}
\usepackage[spanish]{babel}
\usepackage[latin1]{inputenc}  
\usepackage[T1]{fontenc}
\usepackage{times}   
\usepackage{amsmath}
\usepackage{multirow}
\usepackage{float}
\usepackage{color}
\usepackage[longnamesfirst,super]{natbib}
\setcitestyle{square}
\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}{}}
\lhead{\nouppercase}
\rhead{\nouppercase}
\fancyhead[LE]{{\sf \leftmark}}
\fancyhead[RE]{}
\fancyhead[RO]{{\sf \rightmark}}
\fancyhead[LO]{}
\fancyfoot[LE,RO]{\thepage}
\fancyfoot[CE,CO]{} 
\renewcommand{\headrulewidth}{0.0pt}                               
\renewcommand{\baselinestretch}{1.25}
\usepackage{adjustbox}
\usepackage{enumerate}  % Para poder poner un enumerar en I.
\usepackage{courier}
\usepackage[version=3]{mhchem}
\usepackage{rotating}
\usepackage[percent]{overpic} 
\begin{document}

Here is the code that introduces the image:

\begin{figure}
\centering

\includegraphics{image.jpg}

\label{image}

\end{figure}

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).

closed as unclear what you're asking by Ian Thompson, yo', egreg, Malipivo, Jesse Jul 22 '14 at 15:05

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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.