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.

Stefan Kottwitz
Site Admin
Posts: 10344
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}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
in the LyX document preamble, depending on you you named the assumptions and their counter, respectively.

Stefan
LaTeX.org admin
Post Reply