Math & Science ⇒ Align one formula to the left
Align one formula to the left
If I use:
\usepackage[fleqn]{amsmath}
i have formulas aligned to the left.
But how to align just one (or more) math formula (align, etc) to the left, and others to the right.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Align one formula to the left
Take a look at the following simple example:
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\usepackage{nccmath}
\begin{document}
% A centered formula:
\begin{align}
a &= b\\
&= c
\end{align}
% A flushed left formula:
\begin{fleqn}
\begin{align}
a &= b\\
&= c
\end{align}
\end{fleqn}
% A centered formula:
\begin{align}
a &= b\\
&= c
\end{align}
\end{document}
Re: Align one formula to the left
Just out of curiosity: in your example, how i can flush right (center, left, center, right)?
Best wishes
Align one formula to the left
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\usepackage{nccmath}
\begin{document}
% A centered formula:
\begin{align*}
a &= b\\
&= c
\end{align*}
% A flushed left formula:
\begin{fleqn}
\begin{align*}
a &= b\\
&= c
\end{align*}
\end{fleqn}
% A centered formula:
\begin{align*}
a &= b\\
&= c
\end{align*}
% A flushed right formula:
\begin{flalign*}
&& a &= b\\
&& &= c
\end{flalign*}
\end{document}
Re: Align one formula to the left
However, is very useful for my handouts and homeworks.
Best wishes ,
jcc