Page 1 of 1

[Solved] Fraction bar alignment

PostPosted: Tue Jun 05, 2018 7:11 pm
by lechat
Hi there,

I am having trouble with my fractions in some of my formulas. In some cases some fraction bars are shifted slightly below or above the other fraction bars. In some of the formulas i could get rid of this weird behaviour by just deleting the formula, inserting a new one and copy the same code for the formula i want. This is already weird enough and unfortunately in some cases it doesn't work. In the attachment i have an example of such a formula. the last two fractions and denominators are somehow shifted upwards with respect to the others. Furthermore, the fraction bars in my formulas are sometimes aligned to minus signs, equal signs etc. and sometimes they are not and again, sometimes it helps to just re-insert the formula sometimes it does not. I use OO 4.1.2. Has anyone ever encountered a similar problem and found a solution to just generally sort of force the fraction bars to align at a certain level? Or is there perhaps a saver way of generating fractions than {}over{} ?

Thx

Re: fraction bar alignment

PostPosted: Tue Jun 05, 2018 7:48 pm
by Zizi64
Try to group the parts of the formula:

Code: Select all   Expand viewCollapse view
c^{-1} {partial E}over{partial t} sim {{1}over{c} {E}over{T}} sim {{1}over{c}{} {v}over{c} {B}over{T}}

Re: fraction bar alignment

PostPosted: Tue Jun 05, 2018 11:37 pm
by MrProgrammer
lechat wrote:In some cases some fraction bars are shifted slightly below or above the other fraction bars
It's impossible to determine what your difficulty is because your attachment contains a picture of your formula instead of the actual formula document. Either attach the .ODF document or attach an .ODT document with the formula embedded in it (Insert → Object → Formula or Insert → Object → OLE Object → Formula). Insert → Picture is not helpful.

Another way to group.
c^{-1}{{partial E} over {partial t}} sim {1 over c} {E over T} sim {1 over c} {v over c} {B over T}

Re: fraction bar alignment

PostPosted: Wed Jun 06, 2018 11:28 am
by lechat
the file i attached IS an .odt file. But anyway, the trick with grouping the fractions actually worked. Thank you guys... :super:

Re: fraction bar alignment

PostPosted: Wed Jun 06, 2018 4:36 pm
by Zizi64
the file i attached IS an .odt file. But anyway, the trick with grouping the fractions actually worked.


The .odf is "open document formula" type file. The .odf is one of the ODF (Open Document Format) file types. The formula editor works in same way in every applications (Calc, Writer, Draw, Impress...) of the AOO/LO.