[Tex/LaTex] Align and label in chemical equation

labelsmhchemvertical alignment

  1. How to only label the second, third and sixth line with 1, 2, 3?

  2. the arrow with catalyst in first line is a little bit longer than others. How can I extend others or let it shorter?

  3. How to label the second and third line with A, and fourth, fifth and sixth with B?

enter image description here

\begin{align*}
    \ce{3H+ + 3BrO3^- + 5CH2(COOH)2 & ->[Ce3+] 3BrCH(COOH)2 + 4CO2 + 5H2O + 2HCOOH}\\
    \mathrm{A:} \ce{Br- + BrO3^- + 2H+ & -> HBrO2 + HBrO}\\
      \ce{Br- + HBrO2 + H+ & -> 2HBrO}\\
    \mathrm{B:}\ce{Br- + BrO3^- + 2H+ & -> HBrO2 + HBrO}\\
      \ce{BrO2. + Ce3+ H+ & -> HBrO2 + Ce4+}\\
      \ce{2HBrO2 &-> BrO3- + H+ +HBrO}
\end{align*}

Best Answer

For the first objective, change from an align* to an align environment and use \notag directives on lines 1, 4, and 5.

For the second, load the mathtools package and replace ->[Ce3+] with & ->[$\mathclap{\ce{Ce3+}}$].

For the third, simply use two extra implicit columns and insert \textnormal{(A)} and \textnormal{(B)} directives as needed.

And do replace \mathrm{A:} with \textnormal{A}\colon.

enter image description here

\documentclass{article}
\usepackage{mathtools,mhchem}
\usepackage[a4paper,margin=2.5cm]{geometry} % set page size parameters appropriately
\begin{document}
\begin{align}
&&\ce{3H+ + 3BrO3^- + 5CH2(COOH)2 
  & ->[$\mathclap{\ce{Ce3+}}$] 
     3BrCH(COOH)2 + 4CO2 + 5H2O + 2HCOOH} \notag\\
\textnormal{(A)}&&
\textnormal{A}\colon \ce{Br- + BrO3^- + 2H+ 
  & -> HBrO2 + HBrO}\\
\textnormal{(A)}&&
\ce{Br- + HBrO2 + H+ 
  & -> 2HBrO}\\
\textnormal{(B)}&&
\textnormal{B}\colon \ce{Br- + BrO3^- + 2H+ 
  & -> HBrO2 + HBrO} \notag\\
\textnormal{(B)}&&
\ce{BrO2. + Ce3+ H+ 
  & -> HBrO2 + Ce4+} \notag\\
\textnormal{(B)}&&
\ce{2HBrO2 
  &-> BrO3- + H+ +HBrO}
\end{align}
\end{document}
Related Question