0

I have a problem with images not showing up. The latex recognises them (see screenshot) but doesn't generate them to pdf document. They are in the same folder. I tried including image extensions and with the part that is commented. The images are .png.

Here is the code:

\documentclass[12pt,a4paper,draft,pdftex]{article}    
\usepackage[pdftex]{graphicx}  
\usepackage{mathtools}  
\usepackage{amsthm}  
\usepackage{amsfonts}   

%\graphicspath{name/Dropbox/projectProgramming/graphs/}

\begin{figure}[p]
\centering
\includegraphics[width=\textwidth]{avgP}
\caption{Average}
\end{figure}

Screenshot

4
  • 1
    Welcome to TeX.SX! What format is the avgP file?
    – egreg
    Apr 23, 2015 at 12:49
  • @egreg based on the screenshot, my guess is PNG. Apr 23, 2015 at 12:51
  • @egreg all the images are .png
    – Lior
    Apr 23, 2015 at 12:51
  • The cause is the draft option. The pdftex option should never be passed to either \documentclass or graphicx anyway.
    – egreg
    Apr 23, 2015 at 12:58

1 Answer 1

0

I found the solution by removing pdftex and draft from documentclass.

\documentclass[12pt,a4paper]{article}

Not the answer you're looking for? Browse other questions tagged or ask your own question.