Closed goldbattle closed 5 years ago
I was able to fix this by removing the following in plugins/latex2svgextra.py
:
https://gist.github.com/goldbattle/c230bfcc56efdbb3442f385f486a5547/revisions#diff-4e8e7edf1a3bb5316b79ca3b5a5eafbf
< _patch_src = re.compile(r"""<\?xml version='1\.0' encoding='UTF-8'\?>
---
> _patch_src = re.compile(r"""<\?xml version='1\.0'\?>
Seems that the output of dvisvgm was slightly different, thus the regex failed. I am on Ubuntu 16.04 with dvisvgm (TeX Live) 1.9.2.
Hi, thanks for the report and sorry for my delayed reply -- been busy with other projects. I pushed the above as 29ddf48aa3e0cf46b60fd (ignoring the encoding
attribute if it's not there).
One note though -- 1.9.2 is extremely buggy and even though the above makes it work at least partially, I doubt it fixes the vertical misalignment (seen on the screenshot above). I was fighting this for a while until I ultimately gave up: https://github.com/mosra/m.css/pull/75 . If you can, upgrade to 2.2 (18.04) at least, the output will get much better :)
Fixed it for me, thanks!
Is there a specific syntax I should be following to get proper inline equation formatting? It looks like if I follow this the
m-math
class is not added properly to the svg. I am on commit 97e5cca1c99aed335107add0ac35dddfe57613c7.Example: