[Solved] Match vertical alignment in multi-line formula

Discuss the formula editor

[Solved] Match vertical alignment in multi-line formula

 Edit: Split from Issue with formatting when aligning equations at the =
MrProgrammer wrote:
Screen Shot 2020-07-18 at 14.15.47.png
Use Format → Alignment → Centered then
`size 28 {   int f(x)dx    stack { ~=~ int {                  {2 x^2 + 3 x - 1} over {x^{1/3}}                } dx ~~~~~~~~~~~         # ~=~ int { left (                      { {2 x^2} over {x^{1/3}} } +                      { {3 x}   over {x^{1/3}} } -                     { 1       over {x^{1/3}} }               right ) } dx ~~~~~~         # ~=~ int {                   {2 x^{5/3} + 3 x^{2/3} - x^-{1/3}}               } dx ~~~~~         # ~=~ 2 cdot { 3 over 8 } x^{8/3} +                3 cdot { 3 over 5 } x^{5/3} -                       { 3 over 2 } x^{2/3} + C         # ~=~ { 3 over 4 } x^{8/3} +               { 9 over 5 } x^{5/3} -               { 3 over 2 } x^{2/3} + C ~~~~         } }`
It's more important to get the math right than spend hours fussing over tiny formatting details.

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the title. You can select the green checkmark icon at the same time.

I was able to get this one working. But is there a way to align the left side to the top instead of in the middle as you can see in your screencap? It looks like that on my computer, as well.
Last edited by MrProgrammer on Thu Aug 13, 2020 4:37 pm, edited 3 times in total.
Reason: Original question was about horizontal alisnment; New question requires new topic; Tagged ✓ [Solved]
OpenOffice 4.1.5 on Windows 10
22878

Posts: 20
Joined: Tue Jul 07, 2020 1:02 am

Re: Issue with formatting when aligning equations at the =

But is there a way to align the left side to the top instead of in the middle as you can see in your screencap?

Your original formula works for me, when I modified it by the usage the "alignc" command in proper bracing.

Formula.odt

Click on the picture for a better view.
Tibor Kovacs, Hungary; LO6.1.6, 6.2.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-6.4.5;AOO4.1.7
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.

Zizi64
Volunteer

Posts: 9591
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: Issue with formatting when aligning equations at the =

22878 wrote:But is there a way to align the left side to the top instead of in the middle as you can see in your screencap?
Of course. You can use a stack on the left too. It's more work for you and I don't think it adds much clarity to the layout, but the effect is not difficult to achieve. You may find the matrix operator more useful than stack if you want to match the left and right sides. I used stack when I replied to your original post (topic 102567) because it was easier and you didn't tell us there about this additional stipulation. It's simple enough to convert my stack operator from a week ago to matrix, so I'll leave that as a learning experience for you.
Align LHS to top, like RHS
`stack { a # {} # {} # {} } stack { {}=b # {}=c # {}=d # {}=e }`

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the title. You can select the green checkmark icon at the same time.
Mr. Programmer
AOO 4.1.7 Build 9800 on MacOS 10.14.6.   The locale for any menus or Calc formulas in my posts is English (USA).

MrProgrammer
Moderator

Posts: 3942
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA