TransWikia.com

How to make the numbering of subsections independent from the numbering of sections?

TeX - LaTeX Asked by Cal Paterson on April 9, 2021

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?

2 Answers

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.

Correct answer by Stefan Kottwitz on April 9, 2021

although the numbering of sub/sections depends on the document class you're using, there is a little package called remreset that contains the command that will undo the "numbering within".

Answered by barbara beeton on April 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP