Im using the usual counter for my book. That is, the theorems, lemmas, etc, are labeled according to the chapter and section (Ex Theorem 2.5.18).
I included an appendix just with the chapter title and it has no sections,
the commands I set were
\appendix
\chapter{a1}
but the theorems, lemmas
, def
, etc in this chapter are labeled with things like "Theorem A.0.5.", I want that it be in the form "A.5", that is, ommit the section countering.
Best Answer
This may depend heavily on the package you're using for your theorems/lemmas. However, in the default situation with
book
and using the traditional\newtheorem
command to create your theorems, the following works.The MWE below renews the display of the section number to only print the chapter number (since the section number is not needed). The image below shows an extract of pages 1 & 3 only:
Counter resetting with the stepping of other counters is achieved via
\@addtoreset
. However, other packages also provide this functionality, likechngcntr
(using\counterwithin
and\counterwithout
) andamsmath
(using\numberwithin
and\numberwithout
). See the UK TeX FAQ entry Master and slave counters.