Neal Becker wrote:
I want to include grace (.agr) graphics. I want to export to pdf.
The default setup works, but grace is converted to png. I want to convert
to pdf instead.
How do I convince lyx?
I tried:
\converter "agr" "pdf2" "gracebat -hardcopy -printfile $$o -hdevice PDF $$i
2>/dev/null" ""
I did this with lilypond files. It works well, because I use an
external inset. So I get conversion to .pdf for pdflatex,
.eps for plain latex, and .png for the instant preview in lyx.
I am not sure about how lyx handles graphichs included via
the graphichs inset, if that is what you use. Perhaps someone
else can help with that.
The external inset way works - in addition to converters, you
will need to modify the file "external_templates. Feel free to ask
if you want some help with that. A nice thing about external
insets is that you also may specify an editor for your .agr files.
That way, you can click on your graphichs in lyx, and have lyx
launch the proper editing app.
Helge Hafting