
I want to number definitions, lemmas and theorems on the left side of the paper, like 2.4. lemma, 2.5. theorem, etc. But equations numbers still be on the right.
How can I do this?
Thank you very much.
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mathtools} % loads »amsmath«
\usepackage{amsthm}
\swapnumbers
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
\theoremstyle{definition}
\newtheorem{definition}{Definition}
\begin{document}
\begin{theorem}[Einstein]
\begin{equation}
E=mc^2
\end{equation}
\end{theorem}
\begin{lemma}[Binomi]
\begin{subequations}
\begin{align}
(a+b)^2 &= a^2+2ab+b^2 \\
(a+b)^2 &= a^2+2ab+b^2 \\
(a+b)(a-b) &= a^2-b^2
\end{align}
\end{subequations}
\end{lemma}
\begin{definition}[Schroedinger]
\begin{equation}
i\hbar\,\frac{\partial}{\partial t}\,|\psi(t)\rangle = \hat{H}|\psi(t)\rangle
\end{equation}
\end{definition}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.