First of all, my previous question was closed bcz it was considered as a duplicate. But it is not. I've checked for duplicate links and the link is irrelevant because it only discusses image numbering. So, i'll ask again for the same topic.
I want the numbered tag on \begin{align} based on the section.
So, for example if i have section 2.3 (2.3 means Chapter 2 and Section 3) my tag must be automatically 2.3.1, 2.3.2,, and so on.
Can you help me? Thanks in advance
My MWE:
\documentclass{book}
\usepackage{blindtext}
\usepackage{amsmath}
\begin{document}
\chapter{One}
\section{one}
\blindtext
\chapter{Two}
\section{one}
\blindtext
\section{two}
\blindtext
\section{three}
\begin{align}
c = \sqrt{a^2 + b^2}
\end{align}
\end{document}
To be clear the result of my equation should be:
\counterwithin{equation}{section}or (since you employ theamsmathpackage)\numberwithin{equation}{section}. Since your document uses thebookdocument class, either method produces the desired formatting of equation numbers. – Mico Aug 08 '20 at 03:16begin{equation}. Cz one of my formulas using symbol "\" to enter. And some of them only tagged on the bottom. Not on the center, which\begin{align}is required. – user516076 Aug 08 '20 at 04:07begin{align}but the numbered automatically based on the section. Thanks. Hope you can help me – user516076 Aug 08 '20 at 04:09equationis both the name of a counter and the name of an environment. Theequationcounter is incremented byequation,align,gather,multlineand quite a few more display-math environments. It's the counter's appearance that you need to modify. – Mico Aug 08 '20 at 04:11alignwhen there are multiple lines and you specify alignment between them with&. Useequationfor single line equations or you will get incorrect vertical spacing. – David Carlisle Aug 08 '20 at 08:24