LaTeX Aligning and numbering equations in LaTeX

  • Thread starter Thread starter shomuban
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
To align and number two equations in LaTeX, the user seeks to vertically align the equal signs of two equations while assigning a single equation number. The initial attempt using the split environment did not achieve the desired alignment. The recommended solution is to use the aligned environment, which allows for proper alignment of the equal signs and additional terms. This approach effectively meets the formatting needs for presenting equations in a clear and organized manner. The user expresses gratitude for discovering the aligned command.
shomuban
Messages
3
Reaction score
0
I have not been able to find any help for the following problem. I have two equations of the type


blahbli=0 j=1,2,..., S
blahbla=0 k=1,2,..., T

where I want the first and second equal signs on each line to line up vertically with the corresponding equal signs on the second line AND I want to assign a single equation number to the pair of equations. I tried

\begin{equation}
\begin{split} blahbli &=0 \qquad j=1,2,\ldots, S\\
blahbla &=0 \qquad k=1,2,\ldots, T.
\end{split}
\end{equation}

but that does not align the second equal sign and looks ugly. Any way around this? Appreciate your help!
 
Physics news on Phys.org
Use aligned rather than split.

<br /> \begin{aligned} blahbli &amp;=0 &amp;j&amp;=1,2,\ldots, S\\<br /> blahbla &amp;=0&amp;k&amp;=1,2,\ldots, T.<br /> \end{aligned}<br />
 
Thank you so much! I had never used the aligned command before.
 
Back
Top