Bug 149052

Summary: Change internal spacing of formulas to Zero for better MS Word compatibility
Product: LibreOffice Reporter: Rafael Lima <rafael.palma.lima>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: libreoffice-ux-advise, rb.henschel
Priority: medium Keywords: needsUXEval
Version: 7.3.2.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Sample ODT file
Sample DOCX file
Comparison between the two files

Description Rafael Lima 2022-05-12 14:03:55 UTC
Created attachment 180078 [details]
Sample ODT file

In Writer, when the user enters a formula alongside a paragraph, the formula object has unnecessary internal spacing, causing it to look weird with excessive spacing between text and the formula (See attached ODT sample file). This is caused by two factors:

1) The frame style "Formula" has internal Left and Right spacing of 0.2 cm (this should be zero)
2) The formula object itself adds another 1pt of internal left/right spacing. To see it, double click the formula object and go to Format - Spacing and choose Borders in the Category dropdown. This spacing should be zero as well.

In MS Word when the user does the same procedure, the result is more natural, since the spacing between the text and the formula is zero. See the attached MS Word sample file, or the ODG file with screenshots for comparisons.

Moreover, when Writer opens the DOCX file, the formula is imported correctly with zero left/right spacing in the frame, as well as zero spacing in the object.

Hence, I would like to propose that we set all these spacing options to zero, so that we have the same behavior both in Writer and Word.

Maintaining this additional spacing in formulas is a problem, because if the user wants to write text and formulas together, he/she will always have to change the frame style as well as the internal spacing of all formula objects.

System info:
Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 4351a6ca782e1d2081ba819338ebbf6a2d2ee2b2
CPU threads: 16; OS: Linux 5.13; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL
Comment 1 Rafael Lima 2022-05-12 14:04:23 UTC
Created attachment 180079 [details]
Sample DOCX file
Comment 2 Rafael Lima 2022-05-12 14:04:55 UTC
Created attachment 180080 [details]
Comparison between the two files
Comment 3 Regina Henschel 2022-05-12 15:00:59 UTC

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