LaTeX forum ⇒ Generalnumbring in sections/subsection

LaTeX specific issues not fitting into one of the other forums of this category.
Jchen066
Posts: 13
Joined: Tue Aug 28, 2018 12:50 am

numbring in sections/subsection

Postby Jchen066 » Tue Oct 16, 2018 3:42 pm

hi there,

Try to create something like the attachment.

1. The Section and subsection create the title with automatic numbering. How can I turn it off.
2. Is there a way to provide automatic numbering for the examples under each section. For example, the first example in first section will be automatically numbered as 1.1 after the wording "Example", and second example in the same section will be given 1.2. The numbering will continue as long as it within the section regardless which subsection they are. If it come to the second section, the example will start from 2.1, 2.2 etc

Thanks
sam
Attachments
section.PNG
section.PNG (140.19 KiB) Viewed 7649 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 9223
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Tue Oct 16, 2018 4:09 pm

Hi Sam!

You can turn off numbering by \setcounter{secnumdepth}{0}.

You can number examples per section automatically, however without a section number it's very strange. You get examples 2.1 and 2.2 but there's nothing ever that has a 2 as a reference. I would think about it again.

Stefan
Site admin

Jchen066
Posts: 13
Joined: Tue Aug 28, 2018 12:50 am

Postby Jchen066 » Tue Oct 16, 2018 4:54 pm

Stefan Kottwitz wrote:Hi Sam!

You can turn off numbering by \setcounter{secnumdepth}{0}.

You can number examples per section automatically, however without a section number it's very strange. You get examples 2.1 and 2.2 but there's nothing ever that has a 2 as a reference. I would think about it again.

Stefan



Thanks for your advice.

It will be great if you can show me how to do the numbering for the examples. The numbering will be based the section and ranking of the example. And if I move the example around and the numbering will be updated automatically

Sam


Return to “General”

Who is online

Users browsing this forum: No registered users and 9 guests