I'm making some un-numbered chapters for my thesis but I'm adding numerated sections. The thing is that the enumeration doesn't reset when I add a new chapter, so I have
Chapter 1 > Section 1 - Section 2
Chapter 2 > Section 3 - Section 4
Instead of
Chapter 1 > Section 1 - Section 2
Chapter 2 > Section 1 - Section 2
This is a MWE, because I'm running fancyhdr and Creff, but I guess this does the work well enough portraying my problem
\documentclass[oneside]{amsbook}
\usepackage[utf8]{inputenc}
\usepackage{manfnt}
\usepackage{mathtools}
\usepackage{tikz-cd}
\usepackage{latexsym,mathrsfs}
\usepackage{amsmath,amsthm,amsfonts,amssymb,enumerate}
\begin{document}
\chapter*{Ch 1}
\input{chapters/ch1}
\chapter*{Ch 2}
\input{chapters/ch2}
\end{document}
Where each "ch" looks like this:
\section{Sec 1}
\subsection{Subsec 1}
\begin{theorem} \label{thmc1}
Thm
\end{theorem}
\section{Sec 2}
\subsection{Subsec 2}
\begin{theorem} \label{thmc2}
Thm
\end{theorem}
I'll add an image to make it easier to visualize:
What I'm looking for is a way to reset the numeration of each section and subsection, etc. in each chapter, so it says 1. Sec 1 - 1.1 Subsec 1 in chapter 2, etc.
Thanks!
\setcounter{section}{0}
to restart the section counter. Since you mentioned hyperlinks, the following question might also be interesting: Reset section numbering between unnumbered chapters