Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 11 down vote accepted

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}
share|improve this answer
    
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 May 9 '11 at 14:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.