I'd like to start my subsection at "1". So when I would start a section and ask for \thesubsection , the output should be "1". And when I start a subsection and ask again , then \thesubsection should be "2"
I've tried to solve this problem by including a new, independent counter enumi. I added it into the titlesec but it won't work
And the way to use \setcounter just works for the first section
Code: Select all
\documentclass[a5paper]{scrbook}
%% Language and font encodings
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[a5paper,top=1cm,bottom=1cm,left=1cm,right=1cm,marginparwidth=1.75cm]{geometry}
\usepackage{amsmath}
\begin{document}
\setcounter{chapter}{1}
\setcounter{subsection}{1}
\thesubsection
\section{Introduction}
\section{Some examples to get started}
\thesubsection
\subsection{How to add Comments}
\end{document}