SVG in LibreOffice under MacOS
Brought to you by:
baudinr
Dear all:
First of all, many thanks for this wonderfull piece of software, which is really critical for my academic life—the only reason I keep up with LibreOffice actually.
I noticed that SVG equations now look horrible in presentation mode (they look fine in normal mode) in LibreOffice (6.4) under MacOS (10.15). I tried with and without OpenGL. Is there anything I can do to make it work? Thanks!
Martin
The LibreOffice team has probably changed the SVG API in version 6.4... I suggest you stick on the 6.3.x version.
Thank you! Unfortunately it also occurs with LO 6.3.4… Any idea where it
could come from? Thanks again!
Last edit: maaaaaaaartin 2021-03-17
TexMaths 0.48 should work as expected with LibreOffice 6.3.4.2 in MacOS X.
Could you should try to rename your LibreOffice profile and then reinstall TexMaths?
I think TeXMath works perfectly. It is just that the generated SVG, even
though they look perfect under Normal View, look ugly in Presentation
mode. Just created a new profile, installed TeXMath again, and am
getting the same result. Any idea where could it come from? Thanks anyway.
Last edit: maaaaaaaartin 2021-03-17
That's strange... Perhaps you could try to download again LibreOffice and reinstall it. Or try to use the previous version (6.2.x). What is your system version?
Very strange indeed.
Even stranger: on the presenter screen (i.e., the main screen, not the
external), SVG equations are rendered perfectly on the "next slide"
panel, but not on the "current slide" panel.
I use MacOS 10.15. I tried with LO 6.3 & 6.2. If I activate OpenGL it is
slightly better, but definitely not quite perfect.
Thanks anyway for your help.
Last edit: maaaaaaaartin 2021-03-17
Could you retest with TexMaths 0.49 in MacOS?
Unfortunately it is still the same w/ LO 7.1.1 & TeXMath 0.49, cf. attached screenshots. Upper equation is PNG 1200, lower is SVG. First screenshot is in view mode, second is in presenter mode. So weird. Thanks for your help!!
Last edit: maaaaaaaartin 2021-03-17
I did some tests in Linux, Windows and MacOS and seems there is some distortion of SVG images in presentation mode in Windows and MacOS. I don't see any distortion in Linux.
So perhaps, it's time to make a bug report for LibreOffice.
Could you send me a document example where the distortion is apparent?
Thanks.
Sorry for the delay. Here is an example with twice the same equation, the upper one being rendered in PNG (1200 DPI) while the lower one is rendered in SVG. Both equations look nice in normal view, but the lower one is distorted in presentation mode. Many thanks for your help!
Last edit: maaaaaaaartin 2023-05-31
Thanks for the document. However, when I compile the equations, I don't get the same result as you. Did you changed the preamble ?
Which TexMaths version do you use?
Using 0.49.
Here is my preamble:
OK, thanks, now I can recompile the equation.
The problem is a known LibreOffice bug (https://bugs.documentfoundation.org/show_bug.cgi?id=150531).
I've submitted your example to the LO debug team.
As a workaround, in Windows and Mac OS X, you can disable Skia rendering. For that, in Writer go to Tools / Options / View and uncheck Skia rendering (but keep Hardware Acceleration enabled).
Last edit: Roland Baudin 2023-06-05