The following code is for inserting graphics or any figures into Latex. Make sure your figure is in PNG format
%------start here-----
\begin{figure}[htbp]
\centering
\includegraphics[width=4in,height=3in]{c:/picture/picture.png} % this is where the file is located
\caption{My Picture} % The name of the picture that will appear in your documents
\label{Figure:picture-1} % working like an index
\end{figure}
%------end here-----
If you want to refer to the picture, use the \ref{Figure:picture-1} command. the Figure:picture-1 should automatically appear on the latex file when you typing the \ref{
Enjoy the simple code!

No comments:
Post a Comment