I want to number my equations in a manner similar to this. However, what I want is that when the equation is not within a theorem
environment, there should be normal numbering 1,2,3,4. However, each equation within the theorem
environment should be subnumbered. For example, in the code like below:
\begin{equation}
\lim x = 0 % Suppose this equation is numbered 55
\lim x = 0 % Then this equation should be numbered 56
\end{equation}
\begin{theorem}
\begin{equation}
\lim x = 1 %This equation should be numbered 57.1
\end{equation}
\begin{equation}
\lim x = 1 %This equation should be numbered 57.2
\lim x = 1 %This equation should be numbered 57.3
\end{equation}
\begin{theorem}
\begin{equation}
\lim x = 1 %This equation should be numbered 58
\end{equation}
Is such a thing possible? If it helps, I am using the following declaration in my package.
\usepackage[amsthm, framed, thmmarks]{ntheorem}
EDIT: I want to change my question a little bit. Is it possible to define a discontinuous environment so that I can subnumber my equations within that environment? For example, I already know that I can use environments like align
with conditions so that the equations are subnumbered within that environment, but then, it is a consecutive sets of equations which are subnumbered, I am looking for something which would enable me to separate the environment while still maintaining the numbering.
This is useful when I am discussing equations both inside and outside of a theorem
environment. Sometimes a proof of the theorem is very long and there are a lot of substitutions, and a lot of equations are numbered, however, the numbering then takes the focus away from the nested-property of the equation making the equation numbers hard to follow. For example, you are more likely to remember equations 4.1
4.2
inside a theorem rather than equations 117
and 118
since you are in that proof reading mode and hence, you can more easily remember the first equation in that proof or ninth equation in that proof.
So probably something like \startsubnumbering
,\endsubnumbering
commands which I can then insert at the beginning of whatever I see fit.