将方程式重命名为 14a 和 14b 但保持顺序

将方程式重命名为 14a 和 14b 但保持顺序

我有方程式、11等。我希望下一个方程式是和,但后面的方程式应该再次是,即保持顺序。我知道如何标记方程式,但之后的方程式会再次变成。这是一个 ME:121314a14b1514b14

 \documentclass{revtex4-1}

    \usepackage{amsmath}

    \begin{document}
    \begin{widetext}% I need this widetext thing. 
    \begin{subequations}
    \begin{equation}
      1 = 1 
    \end{equation}  
\end{widetext}  
The above equation should have (14a) as a label. Now come the next equation which should have label 14b. And the one following that should have label (15). 
\begin{widetext}    
\begin{equation}
                  \sin x = 1 
    \end{equation}
    \end{subequations}
    \end{widetext}
Now next equations should have a label (15). 
    \end{document}

答案1

\begin{subequations}只需按照以下示例重新排序和出现的位置\end{subequations}即可解决问题:

 \documentclass{revtex4-1}
    \usepackage{amsmath}

    \begin{document}
    \begin{subequations}        
        \begin{widetext}% I need this widetext thing. 
            \begin{equation}
              1 = 1 
            \end{equation}  
        \end{widetext}  
    The above equation should have (14a) as a label. Now come the next equation
 which should have label 14b. And the one following that should have label (15). 
        \begin{widetext}    
            \begin{equation}
                 \sin x = 1 
            \end{equation}
        \end{widetext}
    \end{subequations} 
    Now next equation **will** have a label (15). :D  
    \end{document}

相关内容