I am in a document square in latex. How do I load an image saved as a .png file?
If you select pdflatex
(directly compiling PDF), you Using the graphic x
package, you can use the \ includegraphics
command. If your image is called foo.png
, you can add the following command to your document. However, if you work with latex
(previously compiled in DVI),
\ includegraphics {foo}
So you can not use the 'PNG' file as the image (with any package). You have to convert your image to 'EPS' first. If your image is called foo.png
, then you can convert it to foo.eps
with any graphics software, and to include the image below You can use the order.
\ includegraphics {foo}
Here is a full example with width specification:
\ documentclass {article } \ Usepackage {Graphicx} \ start {document} Here is my image: \ Includivedraphics [width = \ textwidth] {foo} \ end {document}
Comments
Post a Comment