I've been trying to understand how LyX's new (in 1.6.7) ability to
import svg via inkscape can cooperate with LaTeX markup.  I've been
experimenting with the inkscape "textext" extension, but, as others
have noticed, it is a bit dicey to install and sometimes has
unpredictable output.

As an alternative approach, it appears that inkscape 0.48 has an
exporter to make pdf_tex.  It is very similar to the ps+TeX approach
we used to use with xfig before LyX made the external document
interface to fig files.

There's a mention of this here:

http://wiki.inkscape.org/wiki/index.php/LaTeX

That points to CTAN here:

http://www.ctan.org/tex-archive/info/svg-inkscape/

I'm trying to see how that might work.  In the inkscape document, I
inserted text with markup $\gamma$.
Then in LyX I import as graphics, but the Latex markup does not get
converted to math.  It just appears as $\gamma$.

I've tested the CLI approach:

$ inkscape -D -z --file=draw.svg --export-pdf=draw.pdf --export-latex

It does work to create

draw.pdf

and

draw.pdf_tex

I can't seem to understand the last step of using that with LyX.

Suggestions?

-- 
Paul E. Johnson
Professor, Political Science
1541 Lilac Lane, Room 504
University of Kansas

Reply via email to