[Tex/LaTex] How to make the numbering of subsections independent from the numbering of sections

numberingsectioningsections-paragraphs

I am writing a constitution for a society. I would like to have the subsections numbered independently of the way that the sections are numbered, i.e:

Section 1
    Subsection 1
    Subsection 2
Section 2
    Subsection 3

How can this be done?

Best Answer

You could use the chngcntr package:

\usepackage{chngcntr}
\counterwithout{subsection}{section}

Besides the numbering itself, in contrast to the remreset package, chngcntr can redefine \thesubsection for you to not include the section number within the subsection number.

UPDATE

Since 2018, \counterwithout has been in the LaTeX kernel, so loading the chngcntr package is no longer necessary.