TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

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.

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

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

enter image description here

\usepackage{showframe}% http://ctan.org/pkg/showframe
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
  \sum_{\substack{a\leq1/2\\0<b\leq T}}\frac{2+a}{2|b|} &&

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.


    \[ \sum_{a\leq1/2}\frac{2+a}{2|b|} \]
share|improve this answer
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.