When I add image in my Latex file with TexMaker in windows, I got an error

3.2k views Asked by At

when I add image in my Latex file with TexMaker in windows, I got an error. My code is following:

\begin{figure}[hbtp]
\centering
\includegraphics[scale=1]{first1.png}
\caption{iamgeTitle}
\end{figure}

show error: undefined control sequence \includegraphics

after that when I try to add \usepackage{graphicx} show error: Can be used only in preamble.

I googled it for solve the problem but failed. How can I solved the problem.

0

There are 0 answers