Bug 163755 - Math : incorrect size for fractions of fractions
Summary: Math : incorrect size for fractions of fractions
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: MathML
  Show dependency treegraph
 
Reported: 2024-11-03 19:43 UTC by Robert Cabane
Modified: 2024-11-04 14:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Test result (3.50 KB, image/png)
2024-11-03 19:44 UTC, Robert Cabane
Details
As it sould be (9.15 KB, image/png)
2024-11-03 19:45 UTC, Robert Cabane
Details
Test file (17.94 KB, application/octet-stream)
2024-11-04 07:46 UTC, Robert Cabane
Details
Rendering under Google docs (6.80 KB, image/png)
2024-11-04 07:51 UTC, Robert Cabane
Details
Screenshot in Word (52.22 KB, image/png)
2024-11-04 12:24 UTC, m_a_riosv
Details
Screenshot from MS Word 2017 (21.66 KB, image/png)
2024-11-04 14:48 UTC, Robert Cabane
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Cabane 2024-11-03 19:43:15 UTC
Description:
Nesting fractions is sometimes needed. The Formula Editor component doesn't deal neatly with such formulaes, giving all characters the same size.
In order to enhance the rendering, at least three character sizes are needed (normal / small / x-small).

Steps to Reproduce:
1. Create a Math formula
2. Type the following formula source : {1} over {{5} over {7}}
3. Close the Formula editor and watch the result

Actual Results:
Kind of "double fraction", readable but ambiguous.
See attached image.

Expected Results:
The "over" part should have small size (the 1 and the bar) while the "under" part should have x-small size (the 5/7 fraction).
See attached image.


Reproducible: Always


User Profile Reset: No

Additional Info:
Try this with LaTeX !
Comment 1 Robert Cabane 2024-11-03 19:44:02 UTC
Created attachment 197379 [details]
Test result
Comment 2 Robert Cabane 2024-11-03 19:45:33 UTC
Created attachment 197380 [details]
As it sould be

A better-looking nested fraction
Comment 3 m_a_riosv 2024-11-03 22:25:44 UTC
{1} over { size 9{{5} over {7}}}
Comment 4 Robert Cabane 2024-11-03 22:39:27 UTC
Sure, you can do that !
However, it won't work when importing a Word document (docx) with math formulaes. This is precisely what happened to me.
Comment 5 m_a_riosv 2024-11-03 22:41:04 UTC
Please attach a sample file, reduce the size as much as possible without private information.
Comment 6 Robert Cabane 2024-11-04 07:46:03 UTC
Created attachment 197383 [details]
Test file

A minimalist test file, showing a context where the fraction's ambiguity is problematic. The file is in docx (OOXML) format, just as it appeared to me, sent by a colleague.
The same file looks better in MS Word (e.g. the lower fraction is displayed in smaller size).
Comment 7 Robert Cabane 2024-11-04 07:50:10 UTC
I tried to open the test file in Google Docs. Looks like it should be. Image attached.
Comment 8 Robert Cabane 2024-11-04 07:51:28 UTC
Created attachment 197384 [details]
Rendering under Google docs

Result when imported in Google Docs.
Comment 9 m_a_riosv 2024-11-04 12:24:36 UTC
Created attachment 197391 [details]
Screenshot in Word

How I see it with Word
Microsoft® Word para Microsoft 365 MSO (versión 2410 compilación 16.0.18129.20100) de 64 bits
Comment 10 Robert Cabane 2024-11-04 14:44:30 UTC
Office 365 isn't as complete as the "true" MS Office. I add a new screenshot showing how the fraction looks like in my MS Office 2017.
Comment 11 Robert Cabane 2024-11-04 14:48:44 UTC
Created attachment 197396 [details]
Screenshot from MS Word 2017

The nested fraction is properly treated in MS Office 2017.
Comment 12 Robert Cabane 2024-11-04 14:50:48 UTC
FYI
Compare the length of the fraction bars. They aren't the same.