On 23/11/2018 15:13, Bernt Lie wrote:
I use LyX 2.3.1 on Windows 10, 64 bit.
It seems like LyX sometimes has problems handling SVG files,
specifically lines with arrow heads.
Here is one example; the original file in Inkscape:
In Inkscape, this looks fine. However, when I import this svg file into
a LyX float figure, this is what it looks like:
Observe that some of the arrowheads seems to have a “broken neck”...
If I generate a pdf from Inkscape and import the drawing as a pdf into
LyX, then there is no problems. But then the preview in LyX looks pixelated.
Q: where is the problem? Is it Inkscape that uses corrupted svg files,
or is it LyX that doesn’t properly handle arrow heads?
-B
It's always good if you can provide the file to test.
By default LyX uses rsvg-convert and not Inkscape for the conversion.
And there might be a bug in rsvg-convert. You can see how the file looks
in a browser which normally use their own svg interpreter.
You can try to use Inkscape instead and see whether that fixes the
problem, for example, by renaming the rsvg-convert.exe (usually in
C:\Program Files (x86)\LyX 2.3\bin if you have installed LyX for all
users) and then running Reconfigure in the Tools menu in LyX.
Daniel