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?

18

Define \thesection without using \thechapter, such as

\renewcommand*{\thechapter}{\arabic{chapter}.0}
\renewcommand*{\thesection}{\arabic{chapter}.\arabic{section}}
| improve this answer | |
  • 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 8 '11 at 16:07
0

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}}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.