16

The default numbering for chapters is this:

1 Chapter
1.1 Section

What I want is this:

1.0 Chapter
1.1 Section

However, if I add the zero to \thechapter, what I get is this:

1.0 Chapter
1.0.1 Section

How do I get that ".0" appended to the chapter header?

DevSolar
  • 7,857

2 Answers2

19

Define \thesection without using \thechapter, such as

\renewcommand*{\thechapter}{\arabic{chapter}.0}
\renewcommand*{\thesection}{\arabic{chapter}.\arabic{section}}
Stefan Kottwitz
  • 231,401
  • 1
    ...and the numbering of \subsection etc. picks up that "definition without \thechapter" from \thesection... sweet. Why didn't I see this? :-D – DevSolar Aug 08 '11 at 16:07
1

Expanding on @Stefan's answer for the article document class

When you are using the book document class, you have chapters, but not when using article. For that use case, you redefine \thesection as above, without redefining \thechapter, and then follow that with redefining \thesubsection instead. That gives you the same result as sought in the OP without having to use the book document class:

\renewcommand*{\thesection}{\arabic{section}.\arabic{subsection}}
\renewcommand*{\thesubsection}{\arabic{section}.\arabic{subsection}}