[Solved] alignl

Discuss the formula editor

[Solved] alignl

Postby jyri » Sun Feb 10, 2008 5:41 pm

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

Postby Hagar Delest » Sun Feb 10, 2008 8:13 pm

Remove the alignl parameter? Why do you need it?
AOO 4.1.7 on Xubuntu 19.10 and 4.1.5 on Windows 10 (with winPenPack port).
User avatar
Hagar Delest
Moderator
 
Posts: 28679
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: alignl

Postby jyri » Sun Feb 10, 2008 8:57 pm

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

Postby Hagar Delest » Sun Feb 10, 2008 9:41 pm

Can you post an example of such pile?
AOO 4.1.7 on Xubuntu 19.10 and 4.1.5 on Windows 10 (with winPenPack port).
User avatar
Hagar Delest
Moderator
 
Posts: 28679
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: alignl

Postby acknak » Sun Feb 10, 2008 11:45 pm

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
User avatar
acknak
Moderator
 
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: alignl

Postby jyri » Mon Feb 11, 2008 8:40 pm

That's exactly what I meant. Thanks for the idea!
jyri
 
Posts: 3
Joined: Sun Feb 10, 2008 5:31 pm

Re: alignl

Postby Hagar Delest » Mon Feb 11, 2008 9:40 pm

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 19.10 and 4.1.5 on Windows 10 (with winPenPack port).
User avatar
Hagar Delest
Moderator
 
Posts: 28679
Joined: Sun Oct 07, 2007 9:07 pm
Location: France


Return to Math

Who is online

Users browsing this forum: No registered users and 1 guest