Page 1 of 1

[Solved] alignl

Posted: Sun Feb 10, 2008 5:41 pm
by jyri
When I use alignl, all parts of the formula align left, especially when the denominator is shorter than the numerator. What can I do to avoid it?
alignl x_1,2={2dq_1+-sqrt{4d^2 q^2_1-4(q_1-q_2)cdot q_1 d^2} }over {2(q_1-q_2)}

Re: alignl

Posted: Sun Feb 10, 2008 8:13 pm
by Hagar Delest
Remove the alignl parameter? Why do you need it?

Re: alignl

Posted: Sun Feb 10, 2008 8:57 pm
by jyri
When I do more than one formula in a pile using newline parameter, they are badly followed because they are centered. That's why I need that they are aligned left. So, any solution?

Re: alignl

Posted: Sun Feb 10, 2008 9:41 pm
by Hagar Delest
Can you post an example of such pile?

Re: alignl

Posted: Sun Feb 10, 2008 11:45 pm
by acknak
Yes, it's an odd design.

The only thing you can do is left-align the formula as a whole, then center-align the parts that need it, or break up the formula into separate parts, so the parts can be left-aligned by Writer, not by Math.

Compare these two:
  • alignl
    x = { A over { 4 times 3 times 2 times 1 } }
    newline
    y = { B over { 3 times 2 times 1 } }
and
  • alignl
    x = { alignc A over { 4 times 3 times 2 times 1 } }
    newline
    y = { alignc B over { 3 times 2 times 1 } }

Re: alignl

Posted: Mon Feb 11, 2008 8:40 pm
by jyri
That's exactly what I meant. Thanks for the idea!

Re: alignl

Posted: Mon Feb 11, 2008 9:40 pm
by Hagar Delest
You want to have that layout I guess:

Code: Select all

alignl
x_1,2={2dq_1+-sqrt{4d^2 q^2_1-4(q_1-q_2)cdot q_1 d^2} }over {alignc 2(q_1-q_2)}
newline alignl
x = { alignc A over { 4 times 3 times 2 times 1 } }
Thanks to add '[Solved]' in your first post title (edit button) if your issue has been fixed.