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

This is a follow up from my previous question, Positioning of equations. I managed to get my equations alligned to the left, but in my latex document, I have also been using:

X^2 := x^2 - 123. \nonumber

I have alot of other equations that I want to be centered. For example, for all my equations wrapped around:


How would I center it? Thanks, my code is below.

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

A simple equation:
X^2 := x^2 - 123. \nonumber
share|improve this question
Why should some equations go centered and other left aligned? – egreg Mar 31 '12 at 19:20
up vote 4 down vote accepted

A more general solution is to load the nccmath package and wrap each equation you want flush-left in a fleqn environment:

Which implies
    \[ 0\ne 5 \]
    \[ 2\ne 3 \]

If nccmath causes problems, you could also define fleqn like this:

share|improve this answer
Thansk so much, really appreciate it rdhs! – Gary Mar 31 '12 at 19:02
If you are considering using nccmath please do have a look at Is there a replacement for nccmath?. – Peter Grill Mar 31 '12 at 20:12

Instead of using the [fleqn] option which is a global option, leave the default centering behaviour but use flalign rather than align environment when you want flush left alignment.

share|improve this answer
I was about to say the same thing. :-) – azetina Mar 31 '12 at 18:41
How would I use the flalign command in my case? – Gary Mar 31 '12 at 18:48
@Gary write \begin{flalign} and \end{flalign} instead of the usual align environments. flalign probably has a starred version as well. – jmc Mar 31 '12 at 19:08

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.