📘 LaTeX Practical 8
Inserting figures · caption · label · referencing
❓ Question 8: Insert a figure into a LATEX document with an appropriate caption and label, and refer to the figure within the text.
⌨️ LaTeX Source Code
\documentclass[12pt]{article}
\usepackage{graphicx}
\title{Figures in \LaTeX}
\author{ARO Study Circle}
\date{\today}
\begin{document}
\maketitle
\section{Introduction}
Figure \ref{fig:example} shows an example figure.
\begin{figure}[htbp]
\centering
\includegraphicx{logo}
\caption{Example Figure}
\label{fig:example}
\end{figure}
The figure is referenced in the text using the \ref{ } command.
\end{document}
📖 Explanation of Commands
figureenvironment creates a floating figure.\centeringcenters the figure.htbpdefines the position of the image. means here, top, bottom, at the end of the page\caption{}provides the figure caption.\label{}assigns a reference name to the figure.\ref{}refers to the figure number.
📄 Compiled PDF Output
Figures in LaTeX
August 21, 2026
1 Introduction
Figure 1 shows an example figure.
Figure 1: Example Figure
The figure is referenced in the text using the \ref command.

0 Comments