[Tex/LaTex] subsubsections numbering does not restart

sectioning

I have a list of sections in my document…

\section{animals}
\section{places}

etc..

I need to organize the contents within each section.
To do this I decided to use subsubsections instead of subsections in order to save some space…

\section{animals}
\subsubsection{cats}
\subsubsection{dogs}
\section{places}
\subsubsection{muntains}
\subsubsection{lakes}

My problem is that the numbering of the subsubsections does not restart with the new section…how do I fix this?

Thanks

Best Answer

Is it like this?

\documentclass{article}
\usepackage{etoolbox}
\renewcommand{\thesubsubsection}{\thesection.\arabic{subsubsection}}
\preto{\section}{\setcounter{subsubsection}{0}}
\begin{document}
  \section{animals}
  \subsubsection{cats}
  \subsubsection{dogs}
  \section{places}
  \subsubsection{muntains}
  \subsubsection{lakes}
\end{document}

enter image description here

With numbers:

\documentclass{article}
\usepackage{etoolbox}
\usepackage{fmtcount}
\renewcommand{\thesubsubsection}{\thesection.\Numberstring{subsubsection}}
\preto{\section}{\setcounter{subsubsection}{0}}
\begin{document}
  \section{animals}
  \subsubsection{cats}
  \subsubsection{dogs}
  \section{places}
  \subsubsection{muntains}
  \subsubsection{lakes}
\end{document}