LaTeX Basics

4. Images and Figures

Including graphics with captions and labels.

6 min read Share

Images bring life to your document. You'll need the graphicx package.

Level 1: Basic Insertion

LaTeX
\includegraphics{chart.png}

This simply plops the image down at its original size.

Level 2: Resizing & Rotating

LaTeX
\includegraphics[width=0.5\textwidth, angle=45]{chart.png}

This scales the image to half the text width and rotates it.

Level 3: The Figure Environment

To let LaTeX manage the layout (avoiding large gaps at page bottoms), use "floats".

Source Code
Example OutputStatic
\begin{figure}[h] % [h] means "here" \centering \includegraphics[width=0.8\linewidth]{chart.png} \caption{Market Analysis 2024} \label{fig:market} \end{figure} As shown in Figure \ref{fig:market}, growth is up.
[chart.png]

Figure 1: Market Analysis 2024

As shown in Figure 1, growth is up.