I am using article class. There are no chapters in the document. I want the section numbers to read as 1.1, 1.2, .... and then 2.1, 2.2, ..., and then 3.1, 3.2, ...
I have tried the code below
\documentclass{article}
\begin{document}
\renewcommand{\thesection}{1.\arabic{section}} % one block of sections
\section{ section one}
\section{second}
\section{third}
\renewcommand{\thesection}{2.\arabic{section}} % another block of sections
\section{First section}
\section{Second}
\end{document}
The code above gives 1.1, 1.2, 1.3 and then 2.4, 2.5. What I want is 1.1, 1.2, 1.3 and then 2.1, 2.2. Is there any way to do this? Thank you in advance.