Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Possible Duplicate:
Left align (to the page) displayed math

As you know the following equation will be in the center:

$$
\sum_{\substack{a\leq1/2\\0<b\leq T}}\frac{2+a}{2|b|}
$$

And the following is on the left but in small size and decrease the space:

$
\sum_{\substack{a\leq1/2\\0<b\leq T}}\frac{2+a}{2|b|}
$

But the below formula is similar to the first one, but on the left:

$
\displaystyle{\sum_{\substack{a\leq1/2\\0<b\leq T}}\frac{2+a}{2|b|}}
$

Does anyone know another way such that it works similar to the last one (put the formula on the left) but with:

\begin{xxxx}
*
\end{xxxx}
share|improve this question

migrated from stackoverflow.com Jul 31 '12 at 19:50

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Werner, egreg, lockstep, Thorsten, Peter Grill Aug 1 '12 at 6:45

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Possible duplicate of Left align (to the page) displayed math. –  Werner Jul 31 '12 at 19:53
1  
Also see Why is \[ … \] preferable to $$? –  Werner Jul 31 '12 at 19:54

2 Answers 2

You can use the flalign* environment from amsmath to put equations flush with the left hand side:

enter image description here

\documentclass{article}
\usepackage{showframe}% http://ctan.org/pkg/showframe
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
\begin{flalign*}
  \sum_{\substack{a\leq1/2\\0<b\leq T}}\frac{2+a}{2|b|} &&
\end{flalign*}
\end{document}​

The extra alignment characters && is required. The showframe is merely to highlight the text block boundary and not needed in your final document.

share|improve this answer

By passing the fleqn option to your document class, you can achieve that display style math is moved to the left instead of being centered.

\documentclass[fleqn]{article}

\begin{document}
    \[ \sum_{a\leq1/2}\frac{2+a}{2|b|} \]
\end{document}
share|improve this answer
1  
In combination with fleqn, you can use \mathindent to specify the indentation e.g. \setlength{\mathindent}{1cm}. –  Baldrick Jul 31 '12 at 23:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.