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) }
  • Please indicate whether you load the amsthm or the ntheorem package (or if you do neither). – Mico Oct 14 '13 at 14:24
  • I have amsthm. – Ben Lim Oct 14 '13 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 '13 at 14:27
  • @daleif Code to do this? – Ben Lim Oct 14 '13 at 14:28
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.

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.