While typesetting the scientific documents the images and figures are essential to be inserted in a proper way. This tutorial will provide a complete guide about adding and inserting images and pictures in Latex in an easy way.

The code snippet is given below that how to insert an image?

\documentclass[11pt, oneside]{article}
\usepackage{graphicx}

\begin{document}
This is example code that how to insert an image or picture.

\begin{figure}[h!]
\centering
\includegraphics[width=3.0in]{myfigure}
\caption{Sample Image}
\label{simulationfigure}
\end{figure}

\end{document}

This will produce the output like this

inserting images and pictures in Latex

The necessary thing for inserting a picture is to include the package in the preamble of the document. As included in the example \usepackage{graphicx}.

The next important thing that the image must be placed in the same folder where the Latex code is saved.

Last Updated on