I “inherited” a .docx file with a lot of math formula objects in it. For some reason, LibreOffice is setting the default color scheme for math formula objects to white on white. Is there a way to change them all at once? There are about 400 of them in this file, and I have a few dozen other files with (likely) the same problem.
For better suggestions/solutions, always mention OS name (presumably W$ but which version) and exact LO release (with full 4 numbers).
Since this is a .docx, i.e. a non-native format for Writer, the document will first go through a conversion which is not guaranteed to deliver an exact representation of the original. Notably, the encoding of formulas radically differs between both formats.
Formula editing is not handled by Writer, but by its companion component Math. Unfortunately, Math has no “global” formatting styles (which anyway are not forwarded to Writer). Consequently, you can’t fix the issue in a single step.
As far as I know, you must handle every formula individually.
There may also be a “glitch”. Have you chosen a dark theme in your OS? Dark themes have some adverse effects on default formatting in Writer. If you did, try to change for a light theme to see if problem persists.
Can you upload a sample file here?
Sorry about not providing all the details.
I’m using macOS (Sonoma) and running LibreOffice 25.2.7.2 (the most recent version was crashing when I saved the file after changing the alt text on some images).
I’ve been wondering whether I should keep these files in their original format (.docx) instead of changing them to LO’s (.odt). It seems my intuition was correct on that, and I’ll do that in the future. (In the words of George Cain at Georgia Tech, “Never do anything for the first time.”
)
I’m not using Dark Theme with LO, so that’s not causing the problem.
Zizi64 also requested an upload, but the file is too big for me to do that.
(I never use MS “formats”, and dont need to accept MSO files sent to me. Therefore I don’t know in what way mathematical formulas are treated by the conversion.)
There is an extension FaF (Format all Formulas) here:
(I never used it myselt.)
There is also an .odt file from my workbench which contains user code doing as the name of the file says. Occasionally I use it myself:
harmonizeFormulasUsingOneOfThemAsTemplate_ReworkedSimplified.odt (65.7 KB)
(The “content” of that file is only a playground for testing.)
: