Am 23.12.2018 um 19:28 schrieb Robert Betz <robert.b...@newcastle.edu.au>: > > Anders, > > Stephen Witt mentioned that he was using RSVG-convert. So I installed, using > macports librsvg. I did a reconfigure on Lyx, and now the svgz snippets show > up. > > Don’t know why it is required to have this package, as Lyx should supply > everything it needs to make all these conversions work.
It’s a little bit more convoluted than you think. I’ve tried to disable rsvg-convert by making it a non-executable and the shell didn’t find it - but LyX detected it and couldn’t run it. So, it was not right to say, I’m having the same problem as you. My problem was to have a non-working rsvg-convert. Then I renamed rsvg-convert and the preview of SVG graphics snippets worked out-of-the-box again. Next I’ve installed inkscape 0.91 and immediately had your problem after reconfiguring LyX. LyX was able to find end execute inkscape but the converter script used contains a strange command line and the conversion failed because of it. The python script generated on the fly by LyX has two superfluous „$$p“ in front of the real path names of in and out files. # if os.system(r'inkscape --without-gui --file=$$p' + '"' + infile + '"' + ' --export-png=$$p' + '"' + outfile + '"' + '') != 0: This is a consequence of the auto detected converter configuration line in ~/Library/Application\ Support/LyX-2.3/lyxrc.defaults \converter svg png "inkscape --without-gui --file=$$p$$i --export-png=$$p$$o" "", I’m not sure how this should work - obviously it doesn’t work. It would be good to file a trac ticket about this issue. Stephan > > Just thought I would let you and others following this thread that this is > what made it work (for me anyway). > > > Regards, > > Bob > > > PROFESSOR ROBERT BETZ > School of Electrical Engineering and Computing > Faculty of Engineering and Built Environment > > T: +61 2 4921 6091 > M: +61 (0)419 249 948 > E: robert.b...@newcastle.edu.au > > The University of Newcastle (UoN) > University Drive > Callaghan NSW 2308 > Australia > > CRICOS Provider 00109J > > > > >> On 23 Dec 2018, at 3:06 pm, Anders Ekberg <a...@me.com> wrote: >> >>> >>> On 23 Dec 2018, at 13:05, Stephan Witt <st.w...@gmx.net> wrote: >>> >>> Am 22.12.2018 um 23:59 schrieb Robert Betz <robert.b...@newcastle.edu.au>: >>>> >>>> Daniel, >>>> >>>> I have tired all sorts of things on Mac OS X Mojave but I cannot get >>>> either SVG or SVGZ files to render in Lyx. Just get error generating >>>> loadable format. >>>> >>>> I was wondering if any other users on Mac OS X Mojave are having problems >>>> with rendering SVG and/or SVGZ? An easy way to test this is to load up >>>> the User Manual in Lyx and scroll down until you hit the small svgs >>>> snippets in the text (used to store pictures of screen buttons in the >>>> file). >>> >>> I’m sure it worked for me in the past. So I gave it a try on Mojave and it >>> works. >>> >>> Then I tried to break it and this is easy. My converter configuration does >>> the SVG to PNG conversion with rsvg-convert because I’ve installed it from >>> MacPorts. But the idea was to have a reasonable fallback for those not >>> having it. It looks like not working anymore. I changed my system to make >>> rsvg-convert unavailable and now I cannot display SVG anymore too. >>> >>> I’ll investigate the issue and report back. >>> >>> Stephan >> >> F.Y.I. svgs in the LyX 2.3.2 User’s guide do not render for me on Mojave >> with Inkscape installed, but no special converters defined. (No idea how it >> was before upgrading though…) >> >> /Anders >> >> >>> @Daniel: Does it work on Windows without inkscape? >>> >>>> >>>> Thanks. >>>> >>>> >>>> Regards, >>>> >>>> Bob >>>> >>>> >>>> PROFESSOR ROBERT BETZ >>>> School of Electrical Engineering and Computing >>>> Faculty of Engineering and Built Environment >>>> >>>> T: +61 2 4921 6091 >>>> M: +61 (0)419 249 948 >>>> E: robert.b...@newcastle.edu.au >>>> >>>> The University of Newcastle (UoN) >>>> University Drive >>>> Callaghan NSW 2308 >>>> Australia >>>> >>>> CRICOS Provider 00109J >>>> >>>> >>>> >>>> >>>>> On 20 Dec 2018, at 2:20 pm, Daniel <xraco...@gmx.de> wrote: >>>>> >>>>> On 20/12/2018 12:00, Robert Betz wrote: >>>>>> I don’t know whether anyone else is having trouble with the snippets in >>>>>> the Lyx User Guide, but on my Machine (Mac OS X V10.14.2 Mojave) the >>>>>> svgz snippets all get errors as below >>>>>> I anyone else having this problem. The Inkscape converter seems to be >>>>>> having problems with these. Works fine in Ubuntu. >>>>>> Regards, >>>>>> Bob >>>>> >>>>> Works fine under Win10. >>>>> >>>>> Daniel >