Code: Select all
\begin{eqnarray}
ax^2+by^2+c=0
\end{eqnarray}
Code: Select all
\begin{eqnarray}
ax^2+by^2+c=0
\end{eqnarray}
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
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\usepackage{nccmath}
\begin{document}
\begin{fleqn}
\begin{align}
2+2=4 % this will be left aligned
\end{align}
\end{fleqn}
\begin{align}
3+5=8 % this will be centered
\end{align}
\end{document}
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