Math & ScienceLeft Alignment for long Equations

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
pemfir
Posts: 23
Joined: Sun Aug 12, 2012 11:30 pm

Left Alignment for long Equations

Post by pemfir »

I am writing these for a two-columned document. I have quite long equations, and it has been a headache to split them so that they look nice and at the same time fit the column width.

Code: Select all

\documentclass{article}
\usepackage{mdwmath}
\usepackage{mdwtab}
\usepackage{array}
\usepackage{subfig}
\captionsetup{belowskip=0pt,aboveskip=0pt}
\usepackage{bm}
\usepackage{nccmath}
\begin{document}
\begin{fleqn}[0pt]
\begin{equation} \label{eq:11}
\begin{split}
A + B + C + A + B + C + \\ A + B + C + A + B + C + A + B + C + A + B  \\+ C + A + B + C + A + B + C + A + B + C + A + B +  C + A + \\ B + C + A + B + C + A + B + C + A + B + C + 
\end{split}   
\end{equation}
\end{fleqn}
\end{document}
But whatever i do, it still looks ugly, and for some reason equations appear to be right aligned (I want nice looking left aligned equations for only these long equations, the rest of the paper is okay). I have done everything I could.

Thanks for your help

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

Left Alignment for long Equations

Post by Stefan Kottwitz »

The split environment is for multi-line equations with alignment. Similar to the align environment, equations are aligned at the & symbols. If there's no such alignment symbol, they will be right aligned. Alignment of such split columns is: first column right aligned, second column left aligned. So, the quickest fix would be to start each line with a &.

Or use another environment, such as multline, or flalign.

Stefan
LaTeX.org admin
pemfir
Posts: 23
Joined: Sun Aug 12, 2012 11:30 pm

Left Alignment for long Equations

Post by pemfir »

That's really helpful. I was very close. I tried several configurations of & but not the one you suggested. Thank you!
Post Reply