TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How would I shift my whole set of equations/calculations at the left, to be aligned with "Example"?

enter image description here


\newtheorem{thm}{Theorem}[chapter] % reset theorem numbering for each chapter

\newtheorem{defn}[thm]{Definition} % definition numbers are dependent on theorem numbers
\newtheorem{exmp}[thm]{Example} % same for example numbers


\title{My Thesis Title}
\author{My Name}



Here is an example.
\begin{align} \nonumber
(a+b)^3 &= (a+b)^2(a+b)\\ \nonumber
&=(a^2+2ab+b^2)(a+b)\\ \nonumber
&=(a^3+2a^2b+ab^2) + (a^2b+2ab^2+b^3)\\ \nonumber
&=a^3+3a^2b+3ab^2+b^3 \nonumber
share|improve this question
The first problem I see is that you are using the align environment which centers automatically the equation. – azetina Mar 31 '12 at 18:06
Check this post problem using option fleqn in amsmath package – azetina Mar 31 '12 at 18:15
Thanks for your help. :) – Gary Mar 31 '12 at 18:25
No problem @gary. – azetina Mar 31 '12 at 18:27
up vote 6 down vote accepted

Change this line:


To these:


Strictly speaking, the amsmath package doesn't use \mathindent to control the left indent of displayed equations when the fleqn option is in effect: it uses an internal parameter \@mathmargin instead. However, for compatibility with existing LaTeX documentation, amsmath turns \mathindent into an alias for \@mathmargin. There is a small risk here: In the plain LaTeX implementation, \mathindent is a dimen register, but with amsmath \@mathmargin is a skip register and, by association, so is \mathindent. If any package or documentclass uses \mathindent in a way that depends on it being a dimen register, when used in conjunction with the amsmath package it may be vulnerable to a well-known pitfall having to do with the primitive TeX lookahead for a plus or minus key word. However if the standard LaTeX commands \setlength and \addtolength are used to modify \mathindent then this problem will not arise.

The above can be found at Technical notes on the amsmath package.

share|improve this answer
Thanks, works very well :) – Gary Mar 31 '12 at 18:25

Your Answer


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.