2

I'm using Texmaker + MikTex on Windows. A couple of years ago I've written my thesis successfully. Now I have to write another one, so I've copied the structure of the previous one and modified it. One thing I've noticed is that the \includegraphics doesn't work anymore. I have the caption but not the picture, it only shows a white box. I've recompiled my previous original thesis and the pictures are gone too. I've tried removing the graphics and graphicx files from miktex and redownloaded them but it didn't work. The code used is:

\begin{figure}
\centering
\includegraphics[width=\textwidth,natwidth=650,natheight=251]{ZeusCompare.jpg}
\caption{Caption}
\end{figure}

Any idea on what I could do? The file is in the same folder as the latex file.

  • Welcome to TeX.SX! Look for a draft option somewhere. – egreg Mar 1 '18 at 15:48
  • 1
    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. – Stefan Pinnow Mar 1 '18 at 15:58
  • Are you compiling with pdflatex, latex, or something else? – user36296 Mar 1 '18 at 15:58
  • Don't use the natwidth and natheight keys. – Ulrike Fischer Mar 1 '18 at 16:00
3

The natheight and natwidth keys are wrong here. While they didn't do harm in the past they currently lead to missing images (this will perhaps change in the future).

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.