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.

How can I do something like

\begin{align*}
b &= cq_1+r_1, & 0 < r_1 < c, \\
c &= r_1q_2+r_2, & 0 < r_2 < r_1, \\
r_{j-2} &= r_{j-1}q_j+r_j, & 0 < r_j < r_{j-1},
\end{align*}

such that all of the zero's are aligned to the left? Mine defaults to align on the right...

share|improve this question
3  
Use && instead of & between the two statements on each line. –  Charles Staats Sep 28 '13 at 16:49
    
@CharlesStaats Ah! Thank you. Is there a way to make the space between each "column" smaller? –  Paul Elfish Sep 28 '13 at 16:53
2  
There's no natural way to do that using the align environment. But check out alignat. –  Charles Staats Sep 28 '13 at 16:57
2  
Regarding your formula, I suggest treating the conditions as a secondset of formula and align them as well: b &= cq_1+r_1, & 0 < r_1 &< c, –  Toscho Sep 28 '13 at 17:11
1  
@CharlesStaats fancy making your comments into a complete answer? :) –  cmhughes Sep 28 '13 at 19:05

1 Answer 1

Here's an alternate way to approach the answer:

\documentclass{article}
\usepackage[usestackEOL]{stackengine}[2013-09-11]
\stackMath
\begin{document}
\[
\Longstack[r]{b\\c\\r_{j-2}}
\mathrel{\Longstack[l]{= cq_1+r_1,\\= r_1q_2+r_2,\\= r_{j-1}q_j+r_j,}}
\qquad\qquad\qquad
\Longstack[l]{0 < r_1 < c,\\0 < r_2 < r_1,\\0 < r_j < r_{j-1},}
\]
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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