Bug 103898 - + and - signs are incorrectly shifted in formulas
Summary: + and - signs are incorrectly shifted in formulas
Status: RESOLVED DUPLICATE of bug 103740
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.3.3 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-12 23:36 UTC by Ben
Modified: 2016-11-13 06:26 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Plus (1.28 KB, image/png)
2016-11-12 23:37 UTC, Ben
Details
Minus (1.12 KB, image/png)
2016-11-12 23:37 UTC, Ben
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben 2016-11-12 23:36:12 UTC
Description:
Plus sign in Writer formula does not align with division bar, minus sign does

Steps to Reproduce:
1. Created formula with + sign and brackets (removal of brackets gives correct results):
left [ 
2 sup 2 over 3
+
1 over 3
+
1 over 3 sup 2
right ]
2. + sign is shifted upwards
3.With - sign the alignment is correct, but shifted incorrectly:
left [ 
2 sup 2 over 3
-
1 over 3

-
1 over 3 sup 2
right ]




Actual Results:  
See attachments

Expected Results:
See attachments


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.35 Safari/537.36
Comment 1 Ben 2016-11-12 23:37:21 UTC
Created attachment 128709 [details]
Plus
Comment 2 Ben 2016-11-12 23:37:54 UTC
Created attachment 128710 [details]
Minus
Comment 3 Ben 2016-11-12 23:39:05 UTC
I would recommend to remove the brackets and add sub " " to elements with a superscript. You will see that the formatting varies.
Comment 4 V Stuart Foote 2016-11-13 06:26:28 UTC
Issue is with glyphs found in default OpenSymbol font used for the formula editor.

Bug 103740 will replace OpenSymbol's over weight plus sign. And the issue with the minus actually looks to be that the base line for the sm math module overbars are mispositioned, but the minus glyph could also be adjusted upward.  Would depend on the baseline used with the other operators in the font.

Meanwhile, if you use another font with Math symbol coverage (e.g. STIX, Asana Math, Noto Sans Symbols, or DejaVu Math TeX Gyre) may have more appealing layout.  Done from Tools -> Options -> Fonts: Apply replacement table check box and setting a replacement for OpenSymbol.  STIX have pretty good alignment across the operators and the Overbars.

*** This bug has been marked as a duplicate of bug 103740 ***