3

I am currently writing an essay for a class in Functional analysis I'm taking. Now in one of the theorems I have it appears as :

enter image description here

How can I make it so that the number one comes before (Peter-Weyl)? Ideally, I would like the thing to appear as:

Theorem 1 (Peter-Weyl).

How can I do this? In my preamble at the moment I have:

\newtheorem{thm}{Proposition}[section]
\newtheorem{peterweyl}{Theorem (Peter-Weyl) }
4
  • Please indicate whether you load the amsthm or the ntheorem package (or if you do neither).
    – Mico
    Oct 14, 2013 at 14:24
  • I have amsthm. Oct 14, 2013 at 14:25
  • 2
    One usually does not do it that way but rather has a thm env that points to wards a Theorem header and then one writes \begin{thm}[Peter-Weyl], then one can have both named and unnamed theorems and the number is adter the heading.
    – daleif
    Oct 14, 2013 at 14:27
  • @daleif Code to do this? Oct 14, 2013 at 14:28

1 Answer 1

5
\newtheorem{thm}{Theorem}[section]
\newtheorem{prop}[thm]{Proposition}

in the text

\begin{thm}[Peter-Weyl] Blah blah
\end{thm}

The [thm] on the proposition is to make them share the number.

You must log in to answer this question.

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