## [Solved] alignl

Discuss the formula editor

### [Solved] alignl

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)}
Last edited by Hagar Delest on Tue Jun 10, 2008 1:55 pm, edited 2 times in total.
Reason: tagged the thread as Solved.
jyri

Posts: 3
Joined: Sun Feb 10, 2008 5:31 pm

### Re: alignl

Remove the alignl parameter? Why do you need it?
AOO 4.1.7 on Xubuntu 20.04 and 4.1.5 on Windows 10 (with winPenPack port).

Hagar Delest
Moderator

Posts: 28949
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

### Re: alignl

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?
jyri

Posts: 3
Joined: Sun Feb 10, 2008 5:31 pm

### Re: alignl

Can you post an example of such pile?
AOO 4.1.7 on Xubuntu 20.04 and 4.1.5 on Windows 10 (with winPenPack port).

Hagar Delest
Moderator

Posts: 28949
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

### Re: alignl

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 } }
AOO4/LO5 • Linux • Fedora 23

acknak
Moderator

Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

### Re: alignl

That's exactly what I meant. Thanks for the idea!
jyri

Posts: 3
Joined: Sun Feb 10, 2008 5:31 pm

### Re: alignl

You want to have that layout I guess:
Code: Select all   Expand viewCollapse view
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.
AOO 4.1.7 on Xubuntu 20.04 and 4.1.5 on Windows 10 (with winPenPack port).

Hagar Delest
Moderator

Posts: 28949
Joined: Sun Oct 07, 2007 9:07 pm
Location: France