Bug 153413 - Equations in Writer should be able to wrap to the page width
Summary: Equations in Writer should be able to wrap to the page width
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
 
Reported: 2023-02-06 13:20 UTC by Rafael Lima
Modified: 2023-02-07 12:56 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Long equation in MSO (wraps as expected) (85.44 KB, image/png)
2023-02-06 13:20 UTC, Rafael Lima
Details
Long equation in LO Writer (does not wrap) (71.40 KB, image/png)
2023-02-06 13:21 UTC, Rafael Lima
Details
Writer dummy text with OLE formula object, too wide to fit so needs to wrap (18.14 KB, application/vnd.oasis.opendocument.text)
2023-02-07 08:01 UTC, V Stuart Foote
Details
Equation used in the screenshots (12.57 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-02-07 12:45 UTC, Rafael Lima
Details
Long equation in a paragraph with text (12.25 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2023-02-07 12:56 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2023-02-06 13:20:18 UTC
Created attachment 185149 [details]
Long equation in MSO (wraps as expected)

A recurrent problem that I face when reading academic papers/theses using LO Writer is that long equations do not wrap to the page width.

Very often I receive DOCX files to review and occasionally some equations will be longer than the page width. In MSO these equations will wrap (see attachment), so that if a equation is longer than the line, then it will use multiple lines when rendered.

However in LO these equations do not wrap and they are rendered outside the page, so they became impossible to read.

The same problem happens with inline equations (equations that are written in a paragraph alongside text).

I know that this is a limitation of how LO Math works and fixing this is no easy task. But if we would like to make LO a viable alternative in the academic world (at least in areas where equations are used often as engineering and mathematics), we need to provide better equation support and allow for equations to flow with the paragraphs in Writer.
Comment 1 Rafael Lima 2023-02-06 13:21:12 UTC
Created attachment 185150 [details]
Long equation in LO Writer (does not wrap)

This is how the same equation appears in LO Writer.
Comment 2 Lesline 2023-02-06 23:46:05 UTC
Hello Rafael.

Thank you for reporting this bug.

I wasn't able to reproduce this issue using the following versions:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: a834bbad8295cba0ca88a91a524aad48640271ec
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded


Version: 7.4.3.2 (x64) / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded


Kind Regards
Comment 3 Roman Kuznetsov 2023-02-07 06:16:15 UTC
Rafael, could you please add some example with a long Math formula for testing. Thanks
Comment 4 V Stuart Foote 2023-02-07 08:01:51 UTC
Created attachment 185167 [details]
Writer dummy text with OLE formula object, too wide to fit so needs to wrap
Comment 5 V Stuart Foote 2023-02-07 08:12:04 UTC
Confirmed. No wrap of OLE formula (in-line or as stand alone). Formula anchored as character can be force shrunk to fit within margins, but no ability to wrap/auto-insert "newline" elements.
Comment 6 Rafael Lima 2023-02-07 12:45:38 UTC
Created attachment 185170 [details]
Equation used in the screenshots

This is the equation I showed in the screenshots.
Comment 7 Rafael Lima 2023-02-07 12:56:02 UTC
Created attachment 185172 [details]
Long equation in a paragraph with text

Note that the same problem happens with long equations in paragraphs with text. See this attachment as an example.

In MSO the equation will flow with the paragraph and part of the equation will be displayed in the first line, whereas the rest of the equation will be in the second line.

In LO the entire equation will be sent to the second line, making the paragraph look weird.