1

We know that the book class follows the structure below for numbering equations:

Chapter 1

First Equation (1.1)

Second Equation (1.2)

Chapter 2

First Equation (2.1)

Second Equation (2.2)

Third Equation (2.3)

I want the custom numbering format described below:

Chapter 1

First Equation (1)

Second Equation (2)

Chapter 2

First Equation (1)

Second Equation (2)

Third Equation (3)

As you can see the chapter number is not shown in the equation tag, but the equation numbers are reset as a new chapter is introduced. In addition, the equations are counted within each chapter.

Please tell me how to perform this action in LaTeX?

1 Answer 1

2

All you need to do is execute

\renewcommand{\theequation}{\arabic{equation}}

in the preamble.

A minimal working example (MWE):

\documentclass{book}
\renewcommand{\theequation}{\arabic{equation}}

\begin{document}   

\chapter{AAA}
\begin{equation} aaa \end{equation}
\begin{equation} bbb \end{equation}

\chapter{BBB}
\begin{equation} ccc \end{equation}
\begin{equation} ddd \end{equation}
\begin{equation} eee \end{equation}

\end{document}
5
  • 4
    you don't need \makeat... or \@addtoreset here. Oct 23, 2021 at 5:01
  • 1
    I've taken the liberty of editing your posting and simplifying the relevant code.
    – Mico
    Oct 23, 2021 at 6:08
  • 1
    Sir @Mico it's my pleasure....Legends like you have full rights to modify my suggestions...
    – MadyYuvi
    Oct 23, 2021 at 7:09
  • We don't need mathtools package. \renewcommand{\theequation}{\arabic{equation}} is sufficient. Oct 23, 2021 at 7:32
  • 1
    @ArindamBandyopadhyay I've just added the package mathtools because of, if the OP want to use amsmath environments like align, gather, etc. nothing related with the equation numbers...
    – MadyYuvi
    Oct 23, 2021 at 7:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .