On 08/11/2014 02:45 AM, Jane Shevtsov wrote:
On Sun, Aug 10, 2014 at 2:15 PM, Paul A. Rubin <ru...@msu.edu <mailto:ru...@msu.edu>> wrote:


    1. How are you generating the PDFs (pdflatex, dvipdfm, ...)?


I'm using pdflatex.

    2. How are you configured to convert SVGs? Please check Tools >
    Preferences
    ... > File Handling > Converters, look for the converter from SVG
    to your
    output format (e.g., "SVG -> PDF (graphics)" or "SVG -> PNG"), and
    report
    the contents of the "Converter" and "Extra flags" boxes. If you're
    not sure
    which one you're using, please report them all.


Here's what I found:
SVG -> EPS
Converter: inkscape --file=$$i --export-area-drawing --without-gui --export-eps=$$o
No extra flags

SVG -> PDF (graphics)
Converter: inkscape --file=$$i --export-area-drawing --without-gui --export-pdf=$$o
No extra flags

SVG -> PNG
Converter: inkscape --without-gui --file=$$i --export-png=$$o
No extra flags

Those settings seem to work fine for me (using Inkscape 0.48.4). I don't know what's going on, but here are some options:

1. You could try adding "--export-background-opacity=0" to the converter lines. That should not be necessary, but then you should not be seeing black backgrounds.

2. You could install librsvg2-bin (and any dependencies) from Canonical's repos, and use that instead of Inkscape. Once it is installed, I believe that reconfiguring LyX will cause LyX to choose it in preference to Inkscape. If not, I can supply the converter lines.

3. You could post one of the images causing problems to the list, in case it's something peculiar to those images. (You might want to run the conversion commands above against one of the images in a terminal and see if one of them coughs up a result with a black background.)

Paul

Reply via email to