LyX ⇒ part section numbering
part section numbering
Article has multiple parts and sections within each. The section numbering does not initialize after a new part. For example, if the last section in Part I is numbered 4, I would like the 1st section in Part II numbered 1; not 5.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
part section numbering
Two solutions are here: How to reset section numbering by part.
In short: either use a local layout in LyX: go into Document Settings, select Local Layout from the list, paste the contents of the Code section below into the box and click the Validate button, then click OK.
Or, add this code to your document preamble:

Stefan
In short: either use a local layout in LyX: go into Document Settings, select Local Layout from the list, paste the contents of the Code section below into the box and click the Validate button, then click OK.
Code: Select all
Counter section
Within part
End
Code: Select all
\usepackage{chngcntr}
\counterwithin*{section}{part}
Stefan
LaTeX.org admin
Re: part section numbering
Thank you. I have 2 other solutions. For me, no section numbering is acceptable. If it were important [thought contrary to LYX philosophy] the section numbers could be added to the section titles.