Le 28/09/2016 à 07:11, Vermeer Martin a écrit :

About the preview inset, I think I just don't understand the logic
here well enough (and I don't use preview as it's heavy on the CPU
with large docs), but if you can make the necessary change (and if
it's simple) just make it and go ahead.

So, the current state is that the preview from the external inset does
not really work. The simplest solution would be to disable the preview
from the external inset, so that the user who wants a preview is led to
use the preview inset gives much better results. Is it easy to disable
the external inset preview? Then, (and most importantly,) one would need
to update the doc to explain that.

Regarding the fact that instant preview is CPU-heavy, the solution for
you would be to enable it except for math.

I would not know how to further improve the situation without studying
the code, but maybe other people are ready to give it a try.


The non-scaling is intentional, as explained in the
external-templates comment. Fonts are scaled to the surrounding text
(unlike with XFig), a property that allowing rescaling here would
destroy. Rescaling should rather be done inside Inkscape, by actually
rescaling the figure. But sure, it could be enabled and the
responsibility left  to the user.


I enabled resize using the xfig code and I did not see anything
unexpected in the result: the fonts are just scaled with the image. I
suggest to let the user deal with the consequences of rescaling. This
can still be convenient sometimes. (However the preview inset does not
show scaling as in the output, strange.)

I see whether you want to make some modifications following my
suggestions and then I commit.

Apart from the above, there are two other bugs, in LyX probably:

* The previews (both form the external inset and the preview inset) are
not updated when the svg file is modified.

* Lots of messages "QFile::remove: Empty or null file name" in the
console.


Guillaume

Reply via email to