Bug 98751 - mangled vertical centering of equations
Summary: mangled vertical centering of equations
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-18 15:22 UTC by [REDACTED]
Modified: 2016-03-23 20:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
printscreen (69.29 KB, image/png)
2016-03-21 07:28 UTC, raal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description [REDACTED] 2016-03-18 15:22:05 UTC
I have had a recurring problem for years in LibreOffice writer where equations inserted with fn-F3 are not vertically centered. Sometimes the equation is centered on creation, but at some later time it becomes uncentered upwards, and all new fn-F3 equations are uncentered as well. An example is

https://github.com/skewray/skewray_2/blob/master/doc/9908-379b.odt

vs

https://github.com/skewray/skewray_2/blob/master/doc/9908-379.odt

The first is okay, but the second is mangled. I’ve tried playing with various frames that make up the equation table, but nothing seems to work except starting the entire document over from scratch.

I don’t think the problem is with the equation itself, though. The equation is well-centered inside its own 'frame', and that frame is vertically offset inside the table cell. So if I F11, select Frame, right-click, select Modify, and then change alignment from top to center, nothing changes.

There is also an object around the equation, which is identified as “Table Contents”. Same type of object as the equation numbering, which is centered. It appears to have no way to vertically center. There is a choice for paragraph vertical center, which does nothing. An image is at

https://github.com/skewray/skewray_2/blob/master/doc/image.png 

Maybe there is a way to vertically center this object that is not obvious in the various menus?
Comment 1 raal 2016-03-21 07:28:57 UTC
Created attachment 123756 [details]
printscreen

Hello, you have set spacing of the object. Set it to 0 (zero). Right click on formula > Object > Wrap

I think we can close the bug?
Comment 2 [REDACTED] 2016-03-21 14:51:32 UTC
Almost, but not quite. Your suggestion fixes old equations, but not new ones. What do I have to modify so that new equations not also decentered?
Comment 3 [REDACTED] 2016-03-23 20:13:49 UTC
styles -> Formula (right click) Modify -> Wrap will fix all the equations at once, including new ones.  I vote to close.

I do wonder why this is hidden inside "Wrap." I am closing as NOTABUG, since clearly lowriter has an issue with menu layout, but it isn't wrong, just badly done.