# Figures doesn't show up in sharelatex

I am using sharelatex.com to draft a manuscript for jjap/ apex. Using the jjap.cls file for template. I've use

\usepackage{graphics}


Figures syntax:

\begin{figure}[ht]
\centering
\includegraphics[width=2cm,height=5cm]{peak.jpg}
\caption{\label{figure_2}vvv}
\end{figure}


However, the figures does not show up after compiled and error in output.pdf.

• welcome to tex.se! what is error? – Zarko Jul 3 '18 at 14:54
• Images do not show up in the final pdf file though the correct syntax are used. I am also wondering what is the error. – Jen Jul 3 '18 at 14:56
• The question was 'which error message do you see in ShareLaTeX', rather than 'what is the issue causing this'. Somewhat unrelated: the \label should be placed outside of the caption (see tex.stackexchange.com/a/32326). More on-topic: did you upload the image file? Is the original filename also in lower case? – Marijn Jul 3 '18 at 15:00
• And welcome to the site, of course :) – Marijn Jul 3 '18 at 15:00
• Possible solution: replace \usepackage{graphics} by \usepackage{graphicx} (with an x), see tex.stackexchange.com/questions/23075/…. – Marijn Jul 3 '18 at 15:42

This solved my problem though sharelatex setting was at "normal". \includegraphics[draft=false,width=8cm,height=5cm]{fig.jpg}
• and how suppose should we know, that you use draft option in your document? – Zarko Jul 4 '18 at 12:00