Bug 112038 - when importing docx, formula are created at default font size
Summary: when importing docx, formula are created at default font size
Status: RESOLVED DUPLICATE of bug 129849
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: DOCX-Formula
  Show dependency treegraph
 
Reported: 2017-08-26 07:37 UTC by john
Modified: 2024-11-02 07:25 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
A DOCX with a simple formula (11.58 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2017-08-26 10:05 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description john 2017-08-26 07:37:41 UTC
Description:
The default size set in the Formula Editor is used when creating new formulae in an imported .docx Word file. In my case, if I have recently set my default font size to 28 pt, for the purpose of creating presentations with Impress, then my imported Word file will have many oversized formulas in it, and it's quite annoying to have to manually update them all.

The workaround is to dump the imported file, set the default Formula size, and then import again. However surely it should be possible to obtain the correct formula size from the .docx file? What if the imported file has formulae of differing sizes?

What needs to be fixed: the way the Writer sets the font size in Formulas in an imported .docx file.


Steps to Reproduce:
Tested on a clean install of Ubuntu 17.04 64-bit.

Actual Results:  
As above

Expected Results:
As above


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0
Comment 1 Mike Kaganski 2017-08-26 08:43:36 UTC
Please attach a test DOCX document with formula which demonstrates described behavior. Otherwise you expect those who would want to reproduce and fix it to have MS Word to create a reproducer themselves (most are on Linux). Also note that Word formulas can have different representation when created with different versions of Word, which could make reproduction even harder.
Comment 2 Mike Kaganski 2017-08-26 10:05:26 UTC
Created attachment 135803 [details]
A DOCX with a simple formula

Reproducible with Version: 5.4.0.3 (x64)
Build ID: 7556cbc6811c9d992f4064ab9287069087d7f62c
CPU threads: 4; OS: Windows 6.19; UI render: default; 
Locale: ru-RU (ru_RU); Calc: group

and LibreOffice 3.5.0rc3 
Build ID: 7e68ba2-a744ebf-1f241b7-c506db1-7d53735

Previous versions (up to 3.4) cannot import the formula at all.
Comment 3 QA Administrators 2019-04-03 02:57:10 UTC Comment hidden (obsolete)
Comment 4 john 2019-09-19 14:25:55 UTC
This bug is still present. Formulae are still created at the default text size, rather than inheriting a meaningful text size from the imported Word file.

Version: 6.2.6.2
Build ID: 1:6.2.6-0ubuntu0.18.04.1~lo1
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-AU (en_AU.UTF-8); UI-Language: en-US
Calc: threaded
Comment 5 QA Administrators 2021-09-19 03:43:11 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2023-09-20 03:05:57 UTC Comment hidden (obsolete)
Comment 7 john 2024-09-21 10:18:37 UTC
This bug is still present. 

Version: 7.6.7.2 (X86_64) / LibreOffice Community
Build ID: 60(Build:2)
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Ubuntu package version: 4:7.6.7-0ubuntu0.20.04.1~lo1
Calc: threaded
Comment 8 john 2024-09-21 10:22:48 UTC
I suspect that the issue here is that the 'modern equation editor' in Word somehow inherits equation detail font size from the text in which it is embedded. However the LibreOffice formula editor is still using some kind of OLE 'object' approach and perhaps doesn't get to know what the size of the surrounding text is. I suspect that the developers decided to just make all imported formulae from Word (or maybe also in Powerpoint) default to the Default formula text sizes, which at least are use-controllable.

And the other thing is that the default font size for formulas is set universally in the Formula editor. It is not possible to have different default sizes in Impress, Calc and Writer -- the same is always used for all three.
Comment 9 Mike Kaganski 2024-11-02 07:25:26 UTC

*** This bug has been marked as a duplicate of bug 129849 ***