[Solved] Center numerator and denominator on fraction bar

Discuss the formula editor

[Solved] Center numerator and denominator on fraction bar

Postby dchallener » Thu Apr 03, 2008 12:29 am

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
dchallener
 
Posts: 3
Joined: Thu Apr 03, 2008 12:25 am

Re: Fractions

Postby keme » Thu Apr 03, 2008 8:12 am

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 3.4.1/4.1.2/4.1.3, on Ms Windows 7/10 and Mac OS-X 10.8.5 and 10.11.
LibreOffice 4.3.3.2 on Mepis Antix MX 14
User avatar
keme
Volunteer
 
Posts: 3305
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Fractions

Postby dchallener » Sun Apr 06, 2008 3:45 am

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!
dchallener
 
Posts: 3
Joined: Thu Apr 03, 2008 12:25 am

Re: Fractions

Postby RGB » Sun Apr 06, 2008 10:23 am

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
RGB
 
Posts: 1455
Joined: Mon Oct 08, 2007 1:34 am

Re: Fractions

Postby keme » Mon Apr 07, 2008 12:37 am

Menu Format - Alignment...
Select Centered
Apache OO 3.4.1/4.1.2/4.1.3, on Ms Windows 7/10 and Mac OS-X 10.8.5 and 10.11.
LibreOffice 4.3.3.2 on Mepis Antix MX 14
User avatar
keme
Volunteer
 
Posts: 3305
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway


Return to Math

Who is online

Users browsing this forum: No registered users and 2 guests