1

I'm writing my thesis using the amsbook class. I would like to number theorems by

[Chapter.Section.counter of the Theorem].

If I use

\newtheorem{theorem}{Theorem}[chapter]

it gives only [Chapter.counter of the Theorem]. If I use

\newtheorem{theorem}{Theorem}[chapter] \numberwithin{theorem}{section}

it gives only [Section. counter of the theorem]

How can I do? Thank you in advance.

4
  • 2
    Why don't you use \newtheorem{theorem}{Theorem}[section]?
    – Bernard
    Apr 4 '18 at 16:34
  • This gives only [section.counter of theorem]. I would like also to count the chapter
    – Capublanca
    Apr 4 '18 at 19:40
  • 1
    Try \renewcommand{\thetheorem}{\thechapter.\thesection.\arabic{theorem}.
    – Bernard
    Apr 4 '18 at 22:03
  • @Bernard -- that should be the answer. please add it. Jun 10 '18 at 21:21
2

This answer really belongs to @Bernard.

The chapter number can be added to the output theorem counter without forcing the chapter number to appear as part of the section number by this redefinition:

\renewcommand{\thetheorem}{\thechapter.\thesection.\arabic{theorem}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.