I want get the formula number like the first picture enter image description here

but when I use the code:

\alpha_{i} \alpha_{j}&=-\alpha_{j} \alpha_{i}\\
\alpha_{i} \beta&=-\beta \alpha_{i}

I can only get the formula number like the second picture: enter image description here

What should I do to get the formula number I want?


Instead of nesting an aligned environment inside an equation environment, you should nest an align environment inside a subequations environment.

enter image description here


\usepackage{amsmath} % for 'align' and 'subequations' environments
\setcounter{section}{2} % just for this example

\alpha_{i} \alpha_{j}&=-\alpha_{j} \alpha_{i}\\
\alpha_{i} \beta&=-\beta \alpha_{i}

| improve this answer | |
  • 2
    Oh thank you, the problem has been solved perfectly. – Terrell Jan 17 at 12:38
  • @user248841 - Glad you found my answer useful. If you feel like, do please click the check-mark symbol next to the vote count "button" to accept this answer. ;-) – Mico Jan 17 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.