Bug 165538 - FILEOPEN: DOCX: Bold or non-italics in equations ignored
Summary: FILEOPEN: DOCX: Bold or non-italics in equations ignored
Status: RESOLVED DUPLICATE of bug 127821
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-02 18:56 UTC by Alvaro Segura
Modified: 2025-03-03 20:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Doc with two equations with formatting (10.27 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-03-02 18:59 UTC, Alvaro Segura
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alvaro Segura 2025-03-02 18:56:24 UTC
Description:
Equations containing formatted text, such as bold or non-italics loose the format when loaded in LO Writer. So, all text in equations becomes italics and non-bold, as is the default for math variables. MS Word allows that formatting but LO Writer ignores it.

Such formatting is important sometimes: e.g. for vectors and matrices (often bold and non-italics) or units (usually non-italics.



Steps to Reproduce:
1. Create a .docx file containing formatted equations
2. Open it in LO Writer


Actual Results:
Formatting lost

Expected Results:
Formatting retained.


Reproducible: Always


User Profile Reset: No

Additional Info:
Seems related but not the same as https://bugs.documentfoundation.org/show_bug.cgi?id=127821

BTW. I thought maybe LO does not support such formatting, but it does.

bold{...} -> sets bold
"..." -> sets regular text, i.e. non-italics 

So an equation with this code would do it:

bold{"B"} =k bold{"A"} ^ {-1}
Comment 1 Alvaro Segura 2025-03-02 18:59:46 UTC
Created attachment 199566 [details]
Doc with two equations with formatting

The first equation should show A and B as bold and non-italics (representing matrices)

The second equation should show *mm* as non-italics (being units of millimeters)

(As explained before, bold can be obtained with bold{A} and non-italics with "mm". But that is lost when loading.
Comment 2 m_a_riosv 2025-03-02 21:49:39 UTC
Please if you are not agreed reopen it.

*** This bug has been marked as a duplicate of bug 127821 ***
Comment 3 Alvaro Segura 2025-03-03 20:52:00 UTC
Is it solved now? I saw this behavior in the latest release 25.2.1.2.

And regarding this being a *duplicate* of Bug 127821, I'm not sure it is the same. That bug is about format lost when *saving the file in LO*, but this one is about losing format when *loading in LO the file created with MS Word*.

They are most probably related, any way.