Bug 149052 - Change internal spacing of formulas to Zero for better MS Word compatibility
Summary: Change internal spacing of formulas to Zero for better MS Word compatibility
Status: RESOLVED DUPLICATE of bug 65067
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.3.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: needsUXEval
Depends on:
Blocks:
 
Reported: 2022-05-12 14:03 UTC by Rafael Lima
Modified: 2022-05-12 15:00 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample ODT file (11.63 KB, application/vnd.oasis.opendocument.text)
2022-05-12 14:03 UTC, Rafael Lima
Details
Sample DOCX file (12.13 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2022-05-12 14:04 UTC, Rafael Lima
Details
Comparison between the two files (47.70 KB, application/vnd.oasis.opendocument.graphics)
2022-05-12 14:04 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***