Page 1 of 1

### [Solved] Center numerator and denominator on fraction bar Posted: 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?

### Re: Fractions Posted: 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?

### Re: Fractions Posted: 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!

n(n-1)...(n-k+1)
k!

and
n!
(n-k)k!

### Re: Fractions Posted: 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 ### Re: Fractions Posted: Mon Apr 07, 2008 12:37 am