title: Theorem numbering in LaTeX
body: <p>I have a problem with theorem numbering in LaTeX. I can make it number by subsection, e.g</p>
  
  <blockquote>
    <p>Theorem 1.2.1</p>
  </blockquote>
  
  <p>for the first theorem in the second subsection of the first section. But I need it to show me 
  only the numbers of the subsection and the theorem, but not the section number, like this:</p>
  
  <blockquote>
    <p>Theorem 2.1</p>
  </blockquote>
  
  <p>I use</p>
  
  <pre><code>\newtheorem{thm}{Theorem}[subsection]
  </code></pre>
  
  <p>for the numbering.</p>