Math & Science ⇒ Aligning equations to the left
-
- Posts: 4
- Joined: Sun Jun 27, 2010 11:08 am
Aligning equations to the left
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?
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Aligning equations to the left
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}
-
- Posts: 4
- Joined: Sun Jun 27, 2010 11:08 am
Re: Aligning equations to the left
Yes but it does it for all the equations. I just want to do it for some of them.
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Aligning equations to the left
Hi,
you could use flalign, note the & at the end of the line:
Stefan
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}
LaTeX.org admin