I would like to number everything within a section with the same counter: theorems, definitions, equations, subsections, etc. Everything that's numbered for reference (except for floats, since they are "out of sequence".) I am using the amsbook
class.
I have made a beginning to this by putting most things on the equation counter like so:
\documentclass{amsbook}
\numberwithin{section}{chapter}
\numberwithin{equation}{section}
\newtheorem{thm}[equation]{Theorem}
\newtheorem{crl}[equation]{Corollary}
\theoremstyle{definition}
\newtheorem{dfn}[equation]{Definition}
\begin{document}
\chapter{Introduction}
\section{Foo} % 1.1
\begin{thm} % 1.1.1
Some sets are finite.
\end{thm}
\begin{crl} % 1.1.2
Not all sets are infinite.
\end{crl}
\subsection{Bar} % 1.1.1
We find that
\begin{equation} % 1.1.3
2 = 1 + 1.
\end{equation}
\subsubsection{Baz} % 1.1.1.1
Furthermore,
\begin{equation} % 1.1.4
1 + 1 = 2.
\end{equation}
\section{Quux} % 1.2
Open questions remain.
\end{document}
In the example, I want subsection Bar to be numbered 1.1.3, its equation to be 1.1.4, subsubsection Baz to be 1.1.5, and its equation to be 1.1.6. Then everything resets with the new section.
\numberwithin
and\newtheorem{}[]{}
will do the job.