Hi,


I made some further test on the conversation method of LyX 1.5.5, and I found 
it's behavior very strange.

 

The point is that I copied the SVG -> PDF converter line from the Preferences:

 

    inkscape --file=$$i --export-area-drawing --without-gui --export-pdf=$$o

 

I replaced the $$ elements with my file names:

 

    inkscape --file=C:\GombSokszog.svg --export-area-drawing --without-gui 
--export-pdf=C:\GombSokszog.pdf

 

I opened the Run dialog of Windows, pasted it, executed it. The result was what 
is expected, the C:\GombSokszog.png was included in the PDF file as well as the 
other things.

So the converter of Inkscape seems to be good.

 

If I compile my LyX file then LyX copies the C:\GombSokszog.svg to the 
temporary directory (...\lyx_tmpdir2684a05928\lyx_tmpbuf0) but it doesn't copy 
the PNG file. A PDF file also appears in the temporary directory, but the PNG 
image is missing from the PDF.

 

Copying the PNG file into the temporary directory before compiling the LyX file 
doesn't help.

 

What is happening here? Why Inkscape doesn't find the PNG file at the moment of 
converting the SVG?

All the mensioned files are in the folder http://zaradek.hu/svg/files/.

 

Cheers, Máté

  ----- Original Message ----- 
  From: Máté Salát 
  To: Uwe Stöhr 
  Cc: lyx-users@lists.lyx.org 
  Sent: Wednesday, May 14, 2008 7:03 PM
  Subject: Re: SVG to PDF


  Thanks, I did what you told me. It works now, in LyX Preferences SVG 
converters appeared using Inkscape.

  I have a problem with SVGs containing raster picture. I made a capture to 
explain the case: http://zaradek.hu/svg/Linked_image_not_found.png. I use 
Inkscape to put captions made by LaTeX onto the 3D raster picture. I put it 
into LyX but the raster image is missing from the LyX window and (after 
compiling the LyX file) from the PDF as well. It would be great to fix this 
problem.

  The other thing I noticed (but it's not relevant for me) is that if I open 
the SVG file from LyX then the toolbar of Inkscape collapses, the button images 
aren't shown up: http://zaradek.hu/svg/Crashed_toolbar.png.

  Cheers, Máté

    ----- Original Message ----- 
    From: Uwe Stöhr 
    To: Máté Salát 
    Cc: lyx-users@lists.lyx.org 
    Sent: Tuesday, May 13, 2008 2:13 PM
    Subject: Re: SVG to PDF


    Máté Salát schrieb:

    > I use LyX and Inkscape on Win XP. I compile my documents exclusively with 
pdflatex.
     > If I insert an SVG image into my LyX document and compile it then the 
automatic
     > conversation gives a wrong sized image with wide white border on the 
bottom and on
     > the right side. So it won't be centered on the page and so on. If I open 
the SVG in
     > Inkscape and save it in PDF then I get the Image with the right size. 
The mentioned
     > files are at http://zaradek.hu/svg.

    When you install LyX using this installer:
    http://wiki.lyx.org/Windows/LyXWinInstaller

    Inkscape is used to convert the SVG to PDF as you want it.
    The whitespace problem you described was a bug in ImageMagick (that also 
appears for PDF and PS 
    images). To get a fixed version:

    - uninstall the Existing ImageMagick (if you have it installed)
    - reinstall LyX 1.5.5 using the obove mentioned installer that delivers the 
latest ImageMagick

    regards Uwe

Reply via email to