12

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?

1 Answer 1

13

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}
1
  • thank you. I was testing your first suggestion in the body rather than in the preamble. Now that you have given an example, all is clear and it has worked.
    – Chulumba
    Commented May 9, 2011 at 14:39

You must log in to answer this question.

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