Math & ScienceAligning equations to the left

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
anthony_91
Posts: 4
Joined: Sun Jun 27, 2010 11:08 am

Aligning equations to the left

Post by anthony_91 »

I want to align equations to the left. So for example, \begin{align} aligns the equations in the centre. How do you align them to the left?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

Aligning equations to the left

Post by torbjorn t. »

By adding fleqn as an option for the documentclass.

Code: Select all

\documentclass[fleqn]{article}
\usepackage{amsmath}

\begin{document}
\begin{align}
  E &= mc^2
\end{align}
\end{document}
anthony_91
Posts: 4
Joined: Sun Jun 27, 2010 11:08 am

Re: Aligning equations to the left

Post by anthony_91 »

Yes but it does it for all the equations. I just want to do it for some of them.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Aligning equations to the left

Post by Stefan Kottwitz »

Hi,

you could use flalign, note the & at the end of the line:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{flalign}
  E &= mc^2 &
\end{flalign}
\end{document}
Stefan
LaTeX.org admin
Post Reply