I would like my numbering of theorems to be like "Theorem 1.2.3.4" where 1 is the chapter, 2 is the section, 3 is the subsection, and 4 refers to the fourth theorem in this subsection.
A solution is using \numberwithin{mytheorem}{subsection}:
Theorem numbering as chapter.section.subsection.theorem number
However, if I place a theorem in a section, so not in a subsection, I get "Theorem 1.2.0.4". Is it possible to get "Theorem 1.2.4" in this case?
\newtheorem{thm}{mytheorem}[section]and put somemytheorem's in sections and some in chapters? (because then I get "Theorem 0.1") – Carucel Jun 05 '16 at 20:10