LyXAssumptions numbered by Chapter

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
NewLyxUser
Posts: 2
Joined: Tue Aug 02, 2011 4:02 am

Assumptions numbered by Chapter

Post by NewLyxUser »

Hi,
I want to have all theorems/lemmas/etc numbered by type within chapters. I added modules: AMS,Numbered by Type and Numbered by Type within Chapters. Everything works as I want, except I am missing assumptions. When I add AMS-Extended, Numbered by Type, I have assumptions, except they are numbered 1,2,3,.. instead of 1.1,1.2,...,2.1, as I want.
I tried adding all kinds of definitions in the Preamble, but nothing works. How do I do it?
Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

Assumptions numbered by Chapter

Post by Stefan Kottwitz »

You could use the amsmath command \numberwithin, such as

Code: Select all

\numberwithin{assumption}{chapter}
in the LyX document preamble, depending on you you named the assumptions and their counter, respectively.

Stefan
LaTeX.org admin
Post Reply