Hello there
I've only just discovered LyX, so please keep any answers nice and simple.
I'm trying to write an introductory physics tutorial to include numbered exercises/problems, the solutions of which will be at the end of the document. I'm using the 'article' document class, though I'm happy to change that.
The document will include about half a dozen sections, each section probably divided into subsections, subsubsections etc. In each section I'd like to include several exercises/problems for the student to solve. I'd like the exercises to be section numbered only, eg Exercise 1.1, Exercise 1.2, Exercise 1.3 etc (for section 1); Exercise 2.1, Exercise 2.2, Exercise 2.3 etc (for section 2), ie I don't want the exercises to be numbered 1.2.1 referring to the subsections, or 1.2.1.5 referring to the subsubsections. I don't need that degree of complexity.
Is there a straightforward way of doing this? Forgive me if I've missed the blindingly obvious.
Thank you
LyX ⇒ Excercises numbered by Section
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
Excercises numbered by Section
Hi,
it depends on how you create the exercises/problems. What do you use for it? theorem environments perhaps? This would be a good choice.
The chngcntr package can be used to customize the numbering. Without further details about your document, such as a code example, it's hard to say more.
Stefan
it depends on how you create the exercises/problems. What do you use for it? theorem environments perhaps? This would be a good choice.
The chngcntr package can be used to customize the numbering. Without further details about your document, such as a code example, it's hard to say more.
Stefan
LaTeX.org admin
Re: Excercises numbered by Section
Stefan
I'm struggling here. I've opened the MikTex Package Manager and installed chngcntr plus several other addons that looked interesting. I've restarted Lyx, but I can't see any reference to chngcntr, though I'm not sure I'm looking in the right place. Any suggestions?
Thanks
Peter
I'm struggling here. I've opened the MikTex Package Manager and installed chngcntr plus several other addons that looked interesting. I've restarted Lyx, but I can't see any reference to chngcntr, though I'm not sure I'm looking in the right place. Any suggestions?
Thanks
Peter