Yes, it will fall back on inkscape. I get the same result as you. So, I quickly checked with your file using Inkscape figure via

Insert > File > External Material

which uses Inkscape as converter in any case and there the arrows are fine.

Daniel

On 23/11/2018 16:56, Bernt Lie wrote:
Hi again,

Ah -- here is the svg-file. It opens correctly in, e.g., MS Edge.

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.

Does this mean to *change name* on file "rsvg-convert.exe", e.g., to "rsvg-convert_rename.exe"? 
When I "reconfigure" LyX, will LyX then detect that "rsvg-convert.exe" and:
* automatically fall back to using the Insckape interpreter?
* or ask me which interpreter I want to use?

-Bernt

-----Original Message-----
From: lyx-users@lists.lyx.org <lyx-users@lists.lyx.org> On Behalf Of Daniel
Sent: Friday, November 23, 2018 16:11
To: lyx-users@lists.lyx.org
Subject: Re: LyX & svg files

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

Reply via email to