[Solved] alignl

Discuss the formula editor
Post Reply
jyri
Posts: 3
Joined: Sun Feb 10, 2008 5:31 pm

[Solved] alignl

Post 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)}
Last edited by Hagar Delest on Tue Jun 10, 2008 1:55 pm, edited 2 times in total.
Reason: tagged the thread as Solved.
User avatar
Hagar Delest
Moderator
Posts: 32716
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: alignl

Post by Hagar Delest »

Remove the alignl parameter? Why do you need it?
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
jyri
Posts: 3
Joined: Sun Feb 10, 2008 5:31 pm

Re: alignl

Post 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?
User avatar
Hagar Delest
Moderator
Posts: 32716
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: alignl

Post by Hagar Delest »

Can you post an example of such pile?
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: alignl

Post 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 } }
AOO4/LO5 • Linux • Fedora 23
jyri
Posts: 3
Joined: Sun Feb 10, 2008 5:31 pm

Re: alignl

Post by jyri »

That's exactly what I meant. Thanks for the idea!
User avatar
Hagar Delest
Moderator
Posts: 32716
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: alignl

Post 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.
LibreOffice 24.2 on Xubuntu 24.04 and 7.6.4.1 portable on Windows 10
Post Reply