Urtzi Jauregi wrote:

> 1. The info in [1] is wrong; to convert SVG to EPS, you have to disable
> the "convert text to path" function in Inkscape or your text will be
> exported as a picture, as explained in [2]. Do *not* use
> the--export-text-to-path switch with Inkscape.

I don't know why this instruction is in the wiki.

> 2. Automatic inclusion of LaTeX code via PSFrag fails, and I don't know
> why. Inkscape converts SVG to EPS correctly; if you insert manually these
> EPS files in your LyX document, PSFrag works perfectly. The problem is
> when you insert the original SVG in LyX and expect it to handle the
> conversion by itself (which is the whole point of doing all this!); in
> this case, the final document shows the text anchors instead of the LaTeX
> code whatever I do. I am still looking into this.
> [UPDATE: I solved it!  The trick is to declare the packages "graphicx"
> and "color" in your preamble, *even if you don't use any color at all*.
> Just declare them and wham! SVG previews + autoEPS + PSFrag. Took me a
> while to solve this one!]

This looks like a bug in LyX. You should not need to load any package in the
preamble manually. Can you please file this at http://bugzilla.lyx.org,
together with a minimal example .lyx file (with .svg file), and a
screenshot of the correct and incorrect preview?

> 3. A minor but annoying issue is that, while the PS documentis OK, when
> using Veiw->PDF, the figures look very degraded (and no PSFrag, of
> course). I am still looking into this.
> [UPDATE: Still doesn't work. The only PDF export that works roughly OK is
> ps2pdf, and the images still look worse on screen than on the PS. I
> haven't tried to print them though, so maybe the printed version will look
> better]

No need to look further. psfrags does not work with pdflatex, only with
latex, so you need to use dvi2ps or dvipdfm to produce your pdf. This is
documented.

> Hope all this is useful to somebody. Has anybody tried to do this? Did it
> work?

Why not add your information to the wiki (especially the bit about the
text-to-path switch)?


Georg

Reply via email to