I want to define a command for chemical equations, using the mhchem package. The objective is to obtain this:
A + B = C (R1) C + D = E (R2) Following the mhchem manual this should be something like:
\newcommand\reaction[1]{\begin{equation}\ce{#1}\end{equation}} \newcounter{reaction} \renewcommand{\thereaction}{R\,\arabic{reaction}} which is similar to the solution given here Create New Type of Align Environment with Unique Counter
The command works(\reaction{A + B -> C}), but the counter does not. It looks like it keeps using the counter for the equation environment. What am I getting wrong?




mathtoolsdocumentation the way to customise equation labels, with the\newtagformand\usetagformcommands.