On 6/1/22 14:20, Joseph Hesse wrote:
On 5/31/22 23:38, Richard Kimberly Heck wrote:
On 5/30/22 12:59, Tobias Hilbricht wrote:
Am Montag, dem 30.05.2022 um 05:38 -0500 schrieb Joseph Hesse:
Hello,
I am writing a text book and want to have numbered exercises at the
end of each section.  Please point me to the docs or packages that will
let me do this.
Thank you,
Joe Hesse

There probably is some pre-existing package you could adapt. But this would be relatively easy to do from scratch. My first thought would be as in the attached file. Is there something you need that isn't here?

Riki


Riki,
Thank you for your reply.
Your example is what I would like.  How do I get "Chapter Exercises" and "Reasoning/Exercise" to appear in the environment drop down list at the top left of lyx?

I actually had not noticed the "Chapter Exercises" environment. Looking at it now, it is meant for exactly this, but it seems kind of broken. It hasn't been touched really since 2003. (The environment is provided by the AMS Book document class, at least in LyX's version of it. See Settings > Document Class in the example file I sent.) Maybe I'll try to fix it for 2.4.

So I was doing things more manually.

The Exercises heading is just a Section*, and I've typed "Exercises" as the section title.

For the exercises themselves, I used the Exercise environment that's provide by the Theorems (AMS, Numbered by Type within Chapters) module. Look under Document > Settings > Modules to see where it came from. (In LyX 2.4, the modules will be better organized.)

Note that you can write modules yourself, if you wish, to generate new environments of this kind. See Chapter 5 of the Help > Customization manual for details. Of just look at the modules themselves (which are in your LyX system directory, named whatever.module) to see how they work.

Riki



--
lyx-users mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to