0

I am trying to use the reaction environment from chemmacro. How to get the numbers with chapter number like for equation numbers (e.g 1.1, 2.1 and so on)

\chapter{The First Chapter}
\begin{reaction}
    a + b = c
\end{reaction}

\begin{equation}
 a + b =2
\end{equation}

enter image description here

manoj
  • 31
  • Welcome to TeX-SX! As a new member, it is recommended to visit the Welcome and the Tour pages to be informed about our format and also to know about Minimal Example. – R. N Feb 04 '20 at 10:06
  • 2
    found the answer, one needs to add in preamble \numberwithin{reaction}{chapter} https://tex.stackexchange.com/questions/134559/chemmacros-is-not-resetting-the-reactions-counter-in-the-new-chapter – manoj Feb 04 '20 at 10:19

0 Answers0