If you are working with pdflatex (direct compilation in pdf), you can use the graphicx package using the \includegraphics command. If your image is called foo.png , you can add the following command to your document.
\includegraphics{foo}
However, if you are working with latex (compilation in dvi first), you cannot use the "png" file as an image (with any package). You must first convert your image to "eps". If your image is called foo.png , you can convert it with any graphics software to foo.eps and use the following command to include the image.
\includegraphics{foo}
Here is a complete example showing the width:
\documentclass{article} \usepackage{graphicx} \begin{document} Here is my image. \includegraphics[width=\textwidth]{foo} \end{document}
Lohrun
source share