Bug Hunting Session
Bug 89865 - Formula Editor: correct need for excessive bracket controls in rendering fractions
Summary: Formula Editor: correct need for excessive bracket controls in rendering frac...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: Other All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
 
Reported: 2015-03-06 20:29 UTC by hardy
Modified: 2016-10-29 19:07 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
presentation document with this kind of formula (14.50 KB, application/vnd.oasis.opendocument.presentation)
2015-03-06 20:29 UTC, hardy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hardy 2015-03-06 20:29:08 UTC
Created attachment 113937 [details]
presentation document with this kind of formula

Here is how to reproduce the behavior:
* create a new Impress document, an empty one
* add a formula via the menu: insert - object - formula
* type in as content of the formula: 
  g(x) = f(x)  cdot  {nominator} over {denominator}

I assumed that I would get the f(x) part on the center line and the rest (the text inside the curly brackets) displayed as a fraction. But instead the "(x)" of "f(x)" also goes up into the nominator. This seems wrong to me.

This happened with LibreOffice 4.4.0.3 release (directly from homepage of documentfoundation) under Ubuntu Linux.

I will attach a small presentation document, that also shows the behavior.
Comment 1 V Stuart Foote 2015-03-07 23:54:27 UTC
correctly formatted with extra grouping:

g(x) = f(x)  cdot  {{7} over {8}}

or

g(x) = f(x)  cdot  ({7} over {8})

or even

g(x) = f(x)  cdot  left({7} over {8}right)

But, personally I find it much easier to prepare and save the formulas each individually as .ODF in the Math formula editor, and then Insert -> Object -> OLE Object from file (with or without link). YMMV.
Comment 2 hardy 2015-03-08 22:31:19 UTC
Yes, this kind of formula is properly formatted with "extra grouping", i.e. extra brackets of some kind. 

But this is still a BUG I think, because there are already enough brackets in the easy syntax "{nominator} over {denominator}". You are suggesting that the only generally working syntax is "{{nominator} over {denominator}}", is this really the intention?

When I remember LaTex right for example, the easy syntax is fully enough. And the current implementation of the formula editor fails to properly display it in some special cases.
Comment 3 V Stuart Foote 2015-03-08 23:25:35 UTC
OK, made it an enhancement and adjusted summary...