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?
[Solved] Center numerator and denominator on fraction bar
-
- Posts: 3
- Joined: Thu Apr 03, 2008 12:25 am
[Solved] Center numerator and denominator on fraction bar
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
Reason: tagged the thread as Solved.; changed subject, was: Fractions
Re: Fractions
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?
What alignment do you get in your fractions?
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
-
- Posts: 3
- Joined: Thu Apr 03, 2008 12:25 am
Re: Fractions
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!
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!
Re: Fractions
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
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
openSUSE Leap with KDE Plasma / LibreOffice
Re: Fractions
Menu Format - Alignment...
Select Centered
Select Centered
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10