in my project all equations and figures are indexed like 1,2,3...n. Could you help me, how to make indexing (for example) like 2.1,2.2,2.3....3.1,3.2... for eq. and fig.??
Thank you
PS: sry for my bad english

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
Code: Select all
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{bindingoffset=1cm,centering,includeheadfoot,margin=2cm]{geometry}
\usepackage{amsmath}
\usepackage{txfonts}
\usepackage{blindtext}
% Changing float numbering (caption)
\captionsetup{%
figurewithin=section,
tablewithin=section
}
% Changing equation numbering (amsmath)
\numberwithin{equation}{section}
\begin{document}
\section{First section}
\blindtext
\begin{figure}[!ht]
\centering
\rule{8cm}{4.5cm}
\caption{A dummy figure}\label{fig:dummy}
\end{figure}
\section{Second section}
\blindtext
\begin{equation}\label{eqn:einstein}
E=mc^2
\end{equation}
\blindtext
\end{document}
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