# Customizing Section Numbering without affecting Subsection Numbering in amsbookclass

I am using amsbook class. Is it possible to customize Section Numbering without affecting Subsection Numbering as follows.

\documentclass{amsbook}

\begin{document}
\section{Some Section}
\subsection{Some Subsection}
\section{Some Section}
\subsection{Some Subsection}
\subsection{Some Subsection}
\end{document}


My goal is to get the following numbering:

Unit 01-01 Some Section

1.1.1 Some Subsection

Unit 01-02 Some Section

1.2.1 Some Subsection

1.2.2 Some Subsection

I guess you want something as follows:

\documentclass{amsbook}

\usepackage{fmtcount}

\renewcommand{\thesubsection}{\decimal{chapter}.\decimal{section}.\decimal{subsection}}
\begin{document}
\chapter{Some Chapter}
\section{Some Section}
\subsection{Some Subsection}
\section{Some Section}
\subsection{Some Subsection}
\subsection{Some Subsection}

\end{document}


• Sorry. I forgot to mention that it should not affect the newtheorem[section]. Is there a way around? – user61681 Feb 26 at 17:28
• Something like this \newcounter{mycount} \setcounter{mycount}{section} theoremstyle{newstyle} \newtheorem{thm}{\textbf{Theorem}}[mycount] – user61681 Feb 26 at 17:39
• Sorry, it's unclear for me what you are asking for. Maybe you can ask a new question, providing a full, compilable code which illustrates your question. The workaround of the solution won't affect (default) theorem numbering, anyway. – bmv Feb 26 at 17:58