[Tex/LaTex] How to get the numbers for theorems, lemmas, examples, etc. before the type

numberingtheorems

I am using the article document class with amsthm. I would like number the theorems/corollaries/examples, etc., consecutively as follows:

1.1 Theorem

1.2 Example

1.3 Example

1.4 Proposition

However, what my LaTeX renders is

Theorem 1.1

Example 1.2

Example 1.3

Proposition 1.4

How do I get a numbering as in the first?

Best Answer

Use

\swapnumbers

just before declaring your theorem-like structures. A little example:

\documentclass[11pt]{article}
\usepackage{amsthm}

\swapnumbers
\newtheorem{theo}{Theorem}[section]
\newtheorem{exam}[theo]{Example}

\begin{document}
\section{Test}
\begin{theo}
test
\end{theo}
\begin{exam}
test
\end{exam}
\end{document}
Related Question