Graphics, Figures & Tables ⇒ Figure numbering
Figure numbering
Right now my figures are numbered per chapter, like Figure 1.1, Figure 2.3, etc..
But i want to have my figures numbered per section or subsection or even subsubsections like Figure 2.3.1.1
Any idea how i can achieve this?
Thanks!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10350
- Joined: Mon Mar 10, 2008 9:44 pm
Figure numbering
welcome to the board!
You could use the chngcntr package for this, for example:
Code: Select all
\documentclass[12pt]{book}
\usepackage{chngcntr}
\counterwithin{figure}{subsection}
\begin{document}
\chapter{One}
\section{Section One}
\subsection{Subsection One}
\begin{figure}[ht]
\centering
\caption{Test figure}
\end{figure}
\end{document}

Stefan
Re: Figure numbering
