Your formula code applied in my LibreOffice 6.2.8:
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
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 wrote:Your formula code applied in my LibreOffice 6.2.8:
Formula in LO.png
Do you see how the numerators and denominators in the fractions are shifted to the left side of the fraction bar instead of being centered? That's what I'm trying to fix.
Do you see how the numerators and denominators in the fractions are shifted to the left side of the fraction bar instead of being centered? That's what I'm trying to fix.
Ahhh... I meant the integral signs in your image above.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
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.
alignr nospace{int f(x)dx} # {}={} # alignl nospace{ 2 x^2 + 3 x - 1 } over {alignc {x^{1/3}}}dx ##
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
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.
As formatted with OpenOffice 4.1.7 on Mac OS 10.14.6
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.
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7, iMac Intel. The locale for any menus or Calc formulas in my posts is English (USA).
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 am using format > alignment > centered, and your code doesn't line everything up, but it does make it so the numerators and denominators aren't shifted to the left. What are these ~? It seems you are just adding spaces to line things up? Also, I know there were mistakes in my first post, I fixed them in my image before you responded.
I cannot understand why everything is shifted to the left.
Because you have used the alignl (= align left) command inside the formula. Use the alignc (= align ceter) command for the relevant parts of the formula, as I pointed it above. Use the braces for the parts of the formla what you want to align center.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
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.
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.
This is amazing. This is the correct solution to my problem, because it uses the method recommended to line up equations at the equals sign, so you don't have to use the space hacks, which don't completely line up the equals signs, like this does, plus you need another stack or something to get the left half of the equation at the top with the other method. Bravo, Tibor.