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
General ⇒ numbring in sections/subsection
numbring in sections/subsection
- Attachments
-
- section.PNG (140.19 KiB) Viewed 9458 times
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
numbring in sections/subsection
Hi Sam!
You can turn off numbering by
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
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
LaTeX.org admin
numbring in sections/subsection
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