Closed yalguzaq closed 1 year ago
The SVG images are generated using dvisvgm
, which post-process the .idv
file produced by tex4ht
. Maybe you have a different version of dvisvgm
on the server? There can be also different version of pgfsys-dvisvgm.4ht
? Maybe you have older version of TeX Live on the server?
Both dvisvgm --version
(2.13.3) and tex --version
(3.141592653) result in the same output on both machines. How do I check the version of pgfsys-dvisvgm.4ht
?
And do you have any idea why would dvisvgm
make all SVG elements transparent?
You can find it using:
$ kpsewhich pgfsys-dvisvgm4ht.def
And compare using diff
, for example.
Both files are identical, so this cannot be the cause either.
Thanks for your help though!
It is really strange then! On my system, the output is correct too.
Your intuition about dvisvgm
was correct, thanks for putting me in the right direction. The problem, however, was not dvisvgm
itself, but its dependencies:
dvisvgm -V1
in particular ghostscript
. Upgrading ghostscript
to the latest version resolved the problem.
This is not really an issue but just a question.
I have the same version of TeX Live 2022 (3.141592653) running on both the server and my local computer, both Linux machines. Yet when I run
via
make4ht file.tex 'mathml,mathjax'
on both of these machines, I get different output. On my local machine I get the desired output:whereas when I run the same command on the server, I get
The reason is that the second SVG is identical to the first one EXCEPT for
fill-opacity='0'
andstroke-opacity='0'
option for each element.I have been trying to debug this for hours but with no result. Maybe you have any intuition on what may be going on here?