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
    Commented Apr 4, 2018 at 16:34
  • This gives only [section.counter of theorem]. I would like also to count the chapter
    – Capublanca
    Commented Apr 4, 2018 at 19:40
  • 1
    Try \renewcommand{\thetheorem}{\thechapter.\thesection.\arabic{theorem}.
    – Bernard
    Commented Apr 4, 2018 at 22:03
  • @Bernard -- that should be the answer. please add it. Commented Jun 10, 2018 at 21:21

1 Answer 1

3

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}}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .