%%% ==================================================================== %%% @LaTeX-file{ %%% author = "American Mathematical Society", %%% version = "1.2beta", %%% date = "12-Oct-1994", %%% time = "15:22:26 EDT", %%% copyright = "Copyright (C) 1994 American Mathematical Society, %%% all rights reserved. Copying of this file is %%% authorized only if either: %%% (1) you make absolutely no changes to your copy, %%% including name; OR %%% (2) if you do make changes, you first rename it %%% to some other name.", %%% address = "American Mathematical Society, %%% Technical Support, %%% Electronic Products and Services, %%% P. O. Box 6248, %%% Providence, RI 02940, %%% USA", %%% telephone = "401-455-4080 or (in the USA and Canada) %%% 800-321-4AMS (321-4267)", %%% FAX = "401-331-3842", %%% checksum = "03856 188 616 6178", %%% email = "tech-support@math.ams.org (Internet)", %%% codetable = "ISO/ASCII", %%% keywords = "latex, amslatex, ams-latex, amstex", %%% supported = "yes", %%% abstract = "This is part of the AMS-\LaTeX{} distribution. %%% It is a sample document illustrating the use of %%% subequations environment and the effect of %%% the fleqn option. %%% docstring = "The checksum field above contains a CRC-16 %%% checksum as the first value, followed by the %%% equivalent of the standard UNIX wc (word %%% count) utility output of lines, words, and %%% characters. This is produced by Robert %%% Solovay's checksum utility.", %%% } %%% ==================================================================== \documentclass[fleqn]{article} \title{Test of subequations environment} \author{mjd} \usepackage[noamsfonts]{amstex} \numberwithin{equation}{section} \newcommand{\env}[1]{{\normalfont\texttt{#1}}} \AtEndDocument{% \clearpage \typeout{% **********************************************************************} \typeout{% Note: This document needs to run through LaTeX three times, instead of} \typeout{% the usual two, to resolve indirect cross-references.} \typeout{% **********************************************************************} } \begin{document} \section{Prime equation numbers} First an equation. \begin{equation}\label{e:previous} A=B \end{equation} That was equation \eqref{e:previous}. Then the same, with a prime on the number. \begin{equation}\tag{\ref{e:previous}$'$}\label{e:prevprime} C=D \end{equation} And that was equation \eqref{e:prevprime}. Notice, by the way, that when a \verb"\ref" occurs inside a \verb"\tag", and that \verb"\tag" is then \verb"\label"'d, a \verb"\ref" for the the second \verb"\label" requires {\em three\/} runs of \LaTeX{} in order to get the proper value. (If you run through the logic of \LaTeX{}'s cross-referencing mechanisms as they apply in this case, you will see that this is necessary.) \section{Subnumbered equations} Here is a,b,c sub-numbering. \begin{subequations}{a} \begin{eqnarray} A&=&B\\ D&=&C \label{e:middle}\\ E&=&F \end{eqnarray} \end{subequations} That was produced with the \env{eqnarray} environment; the middle line was labeled as \eqref{e:middle}. An equation following the end of the \verb"subequations" environment should revert to normal numbering: \begin{equation}\label{e:check} H