Bug 170176 - Formula: "oper" function is incorrectly exported to DOCX
Summary: Formula: "oper" function is incorrectly exported to DOCX
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.4.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-30 21:56 UTC by Tex2002ans
Modified: 2025-12-30 23:37 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test.oper.Formula.-.Right-hand.Forward.Slash[Incorrect].docx (6.04 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-12-30 21:56 UTC, Tex2002ans
Details
Test.oper.Formula.-.Right-hand.Forward.Slash[Correct].odt (12.61 KB, application/vnd.oasis.opendocument.text)
2025-12-30 21:56 UTC, Tex2002ans
Details
GIF comparing ODT vs. DOCX formula (52.52 KB, image/gif)
2025-12-30 21:57 UTC, Tex2002ans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tex2002ans 2025-12-30 21:56:08 UTC
Created attachment 204864 [details]
Test.oper.Formula.-.Right-hand.Forward.Slash[Incorrect].docx

1\. Open attached DOCX. Compare with working ODT.

(Also see comparison GIF.)

On the right-hand side, the formula should look like a vertical:

b
/
a

- - -

BUG: In LibreOffice 25.8.4, it appears as a:

b
=
a

and this in Word 365 (Version 2511, Build 19426.20218):

b
⬚
a

where:

- LibreOffice 25.8 = EQUALS SIGN instead of a FORWARD SLASH.
- Word 365 = a "missing" DOTTED SQUARE instead of a FORWARD SLASH.

- - -

NOTE: This ODT and DOCX was created by:

0\. Open LibreOffice Writer.

1\. Insert > OLE Object > Formula Object

2\. This is the raw LibreOffice Math formula:

int from a to b f(x) dx = oper / from a to b F(x) newline
int from {a} to {b} {f} left (x right ) dx "="  csup {b} csub {a} F left (x right )

- - -

NOTE #2: Both LibreOffice and Word 365 opened the ODT version of the formula correctly. Only the DOCX had this issue.

- - -

NOTE #3: This exact bug was reported by the user wywhsoycd on the LibreOffice subreddit:

- https://www.reddit.com/r/libreoffice/comments/1pxggkk/libreoffice_vs_msoffice/nwcmy75/

- - -

Tested in:

Version: 25.8.4.2 (X86_64)
Build ID: 290daaa01b999472f0c7a3890eb6a550fd74c6df
CPU threads: 8; OS: Windows 11 X86_64 (build 22631); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 Tex2002ans 2025-12-30 21:56:30 UTC
Created attachment 204865 [details]
Test.oper.Formula.-.Right-hand.Forward.Slash[Correct].odt
Comment 2 Tex2002ans 2025-12-30 21:57:45 UTC
Created attachment 204866 [details]
GIF comparing ODT vs. DOCX formula
Comment 3 m_a_riosv 2025-12-30 23:37:25 UTC
Strange issue.
Reproducible on attached file with
Version: 26.8.0.0.alpha0+ (X86_64)
Build ID: 680(Build:0)
CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded

But saving the ODT as DOCX, open the DOCX correcting it, saving as DOCX, it opens fine.
Saving as ODT, resaving as DOCX, then opening the DOCX, seems fine.