I have a document generated by doxygen with just \section
directives and no chapters, so they're getting numbered as
0.1 Section 1
0.2 Section 2
0.2.1 SubSection 1
How can I skip the chapter number and display 1.1, 1.2, instead?
chaptersnumberingsectioning
I have a document generated by doxygen with just \section
directives and no chapters, so they're getting numbered as
0.1 Section 1
0.2 Section 2
0.2.1 SubSection 1
How can I skip the chapter number and display 1.1, 1.2, instead?
Best Answer
Your Mistake
You are actually using the
book
orreport
class or something like that.So, your output looks like this as reported by you.
The Solution
Please use the
article
class in place ofbook
class.The above gives your desired output.
Relevant Explanations
book
class is for real books. Andarticle
class is for articles in scientific journals, presentations, short reports, program documentation, invitations.\chapter
command at the start, your chapter number is zero, which is reflected in your output as you have told us. Please remember that\chapter
command is not even recognized inarticle
class.