BDU LaTeX Practical 8 : Inserting figures · caption · label · referencing

LaTeX Practical 8 – Blog Post

📘 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

  • figure environment creates a floating figure.
  • \centering centers the figure.
  • htbp defines 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
ARO Study Circle
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.

Post a Comment

0 Comments