[Solved] Center numerator and denominator on fraction bar

Discuss the formula editor
Post Reply
dchallener
Posts: 3
Joined: Thu Apr 03, 2008 12:25 am

[Solved] Center numerator and denominator on fraction bar

Post by dchallener »

When I try to make a fraction, for example like this:
(matrix{n##k}) = {}_n C_k = {n(n-1) ...(n-k+1)} over {k!} = {n!} over {(n-k)k!}
I would like the numerator and denominator to be centered over the fraction bar.
But they are not. What am I doing wrong?
Last edited by MrProgrammer on Wed Feb 12, 2020 10:02 pm, edited 3 times in total.
Reason: tagged the thread as Solved.; changed subject, was: Fractions
User avatar
keme
Volunteer
Posts: 3704
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Fractions

Post by keme »

I copied your example and pasted into Math. Both fractions look OK to me, using versions 2.3.1 and 2.4.0 on Windows XP.

What alignment do you get in your fractions?
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
dchallener
Posts: 3
Joined: Thu Apr 03, 2008 12:25 am

Re: Fractions

Post by dchallener »

The fractions are sort of "ok", but I get the k! in the first fraction all the way to the left of the denominator, and the n! in the numerator of the second fraction all the way to the left of the numerator. In the first case, the numerator is centered, and in the second the denominator is centered.
I would like it to look like this:
n(n-1)...(n-k+1)
k!

(assuming a bar between them)
and
n!
(n-k)k!

instead I see
n(n-1)...(n-k+1)
k!

and
n!
(n-k)k!
User avatar
RGB
Posts: 1456
Joined: Mon Oct 08, 2007 1:34 am

Re: Fractions

Post by RGB »

Which OOo version are you using on which OS? On 2.4 under Linux, everything is as it should be.

Formatting tip, this code:
left( binom{n}{k} right) = {C lsub n}_k = {n(n-1) ...(n-k+1)} over {k!} = {n!} over {(n-k)!k!}
looks better ;)
There are two types of people: those who believe that there are two types of people and those who do not.

openSUSE Leap with KDE Plasma / LibreOffice
User avatar
keme
Volunteer
Posts: 3704
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Fractions

Post by keme »

Menu Format - Alignment...
Select Centered
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
Post Reply