Tables & Figures
How to Insert Images in LaTeX
Use the graphicx package and \includegraphics to insert images. LaTeX supports PNG, JPG, and PDF formats.
Basic Image
Include the graphicx package and use \includegraphics:
\usepackage{graphicx}
\includegraphics{image.png}Set Image Width
Control size relative to text width:
\includegraphics[width=0.8\textwidth]{image.png}
\includegraphics[width=5cm]{image.png}
\includegraphics[scale=0.5]{image.png}Image as Figure
Wrap in figure environment for captions:
\begin{figure}[htbp]
\centering
\includegraphics[width=0.7\textwidth]{results.png}
\caption{Experimental results showing...}
\label{fig:results}
\end{figure}Specify Image Path
Set a graphics path to avoid typing full paths:
\graphicspath{{images/}{figures/}}
% Now you can just use:
\includegraphics{chart.png} % finds images/chart.png💡 Tips
- •Use PDF for vector graphics (diagrams, plots)
- •Use PNG for screenshots and images with transparency
- •Always use relative widths (\textwidth) for portability
Try This in Bibby AI
Write LaTeX faster with AI auto-complete and instant compilation.
Start Writing Free