I have one main equation and a few initial/boundary conditions I want to display. The first should have label 3.3 only and the conditions ideally have labels 3.3a, 3.3b, etc.
The first eq is also somewhat unique in that I want it displayed in a table-like format as it spans 3 lines and has a pattern to it. The align
environment messes up the spacing so I opted for alignat
:
\usepackage[tbtags]{amsmath}
\newcommand{\s}{\hspace{0.12cm}}
The 2D form of Equation \eqref{eq:pathenum1} is thus
\vspace{-0.4cm}
\begin{subequations}\label{eq:pathenum2}
\begin{alignat}{3}
\xi_2(x,y,t+1) \s &=\s \xi_2(x-1,y+1,t) \s &+& \s \xi_2(x,y+1,t) \s &+& \s \xi_2(x+1,y+1,t) \nonumber\\
&+\s \xi_2(x-1,y,t) \s &+& \s \xi_2(x,y,t) \s &+& \s \xi_2(x+1,y,t) \tag{\label{eq:pathenum2}}\\
&+\s \xi_2(x-1,y-1,t) \s &+& \s \xi_2(x,y-1,t) \s &+& \s \xi_2(x+1,y-1,t), \nonumber
\end{alignat}
and the 3D form is displayed in Appendix Equation \eqref{appeq:pathenum3}. Initial and boundary
conditions for the 2D (and for any $D$) case are also the same as in 1D as the theory behind them
still applies and is carried forward:
\vspace{-0.45cm}
\begin{align}
&\xi_2(0,0,1) = 1, \label{eq:pathenum2a}\\
&\xi_2(x,y,t) = 0 \quad \mathrm{for} \quad \forall t<0, \; \forall x,y, \label{eq:pathenum2b}\\
&\xi_2(x,y,t) = 0 \quad \mathrm{for} \quad \forall|x|,|y| > t. \label{eq:pathenum2c}
\end{align}
\end{subequations}
As you can see the numbering doesn't quite work for my main eq -- I've managed this for one-line equations elsewhere in my work but how do I fix it for this case?