I'm searching for a theorem style like that the one that is used in this book:
Elementary Analysis by Ross
I've got already most things working, except that I want to get a custom theorem like this:

When I type something like:
\begin{thm}[Rational Zeros Theorem]
...
\end{thm}
The rest of the styles that I want are:
- Having the number and theorem swapped
- Having a newline after the head of the theorem/defintion
- Having "Proof." in boldface instead of italic and a newline after it
- Having also a newline if the proof begins with a list
I've been already trying to implement 1,2 and 3, and if you are interested, you can find it on github: https://github.com/kasperpeulen/Ross-Theorem-Style
I've not yet solved 4, but I found some other posts here, so I think I can solve that by myself, but any help with that would be appreciated as well of course.


ntheoremandamsthm, for example, the italicness of the proof is hardwired. However, perhapsthmtoolsmay help you – daleif Oct 02 '14 at 11:02ntheoremthis is controlled by thebreakstyle. It is also easy to make mixed styles. We tend to use non-break for normal theorems and break for\begin{theorem}[Blah blah]– daleif Oct 02 '14 at 11:29