Georg Baum wrote: > Helge Hafting wrote: > >> 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? > > By changing the source code, function findTargetFormat in > src/insets/insetgraphics.C. > >>> I tried: >>> \converter "agr" "pdf2" "gracebat -hardcopy -printfile $$o -hdevice PDF >>> $$i 2>/dev/null" "" > > You should use pdf instead of pdf2 if there would not be the hardcoding > problem. > >> 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. > > Neal sent a message to the devel list with an external agr inset, but it > does not work. I have no idea why, and did not have the time yet to look > at it. > >> 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. > > It is hardcoded to png conversion for pdflatex, and yes, we need to change > 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. > > That does also work with graphic insets. > > > Georg
Thank you. Let me know if I can help with any testing.