I work for a physics professor using revtex4
(just 4, not 4-1 or 4-2). I am using the amsmath
package. I have been using
\renewcommand{\thesection}{\arabic{section}}
\numberwithin{equation}{section}
\renewcommand{\theequation}{\arabic{section}.\arabic{equation}}
with great success to obtain equation numbers that have the form secnum.eqnum such as 1.1, 1.2, 1.3, 2.1, 2.2, 2.3, etc. Now my professor wants to create text like this:
Here are three elements:
(1) some text
(2) some more text
(3) even more text, which now must meet the following criteria:
(i) Descriptor
a+b=c (sample equation, which he wants numbered like this:) (5.1a)
(ii) Second descriptor
d+e=f (second equation, which he wants numbered like this:) (5.1b)
(iii) Third descriptor
g+h=i (5.1c)
(iv) Fourth descriptor. Followed by lots more text and then the final equation:
j+k=l (5.1d)
This appears to be the end of what I would have created in a nested enumerate environment.
His paragraph then continues, with the next equation numbered like so:
m+n=o (5.2)
So, I have two questions:
- Is the right approach to do the following:
Here are three elements:
\begin{enumerate}
\item some text
\item some more text
\item even more text, which now must meet the following criteria:
\begin{enumerate}
\item Descriptor
(some magical code here that will produce the equation I need numbered 5.1a)
\item Second descriptor
(some more magical code that will produce the second equation numbered 5.1b)
\item Third descriptor
(yet even more magical code that will produce the third equation numbered 5.1c)
\item Fourth descriptor. Followed by lots more text and then the final equation:
(which will have more magical code that will produce a number of 5.1d)
\end{enumerate}
\end{enumerate}
Continue with text until he wants his next equation
\begin{equation}
m+n=0 \label{eq:5.2}
\end{equation}
...or am I completely off-base already?
and my second question:
- What is the magical coding I need to accomplish this?