Ce Thu, 21 Feb 2002 12:18:40 +0000 Angus Leeming <[EMAIL PROTECTED]> a écrit :
AL> AL> It had it's own, much more horrible problems that we would NEVER be able to AL> overcome. The current solution will eventually become "perfect", by which I AL> mean that you will be able to display graphics in ANY format, so long as you AL> can define a converter from that format to a "loadable format". For now, we AL> use libxpm to load the graphics files into memory, which means that the only AL> "loadable format" is XPM. Thus, you must define converters from any other AL> format to XPM. Eventually, we'll use the qt2 or xforms built-in image loading AL> routines, so we'll be able to load many more formats directly and your AL> complaints will cease! thank you for this really clear explanation. In fact as you say below, the actual implemantation is more generic and allow to do everything you want if you know how to use the converters. AL> AL> For now, however, you have all the power but you, personally, have to make a AL> little effort to use it. That is, you must define the converters. AL> AL> The only current REAL show stopper is that loading takes a long, long time AL> and blocks the rest of LyX. We have code that overcomes this, but it isn't AL> yet in cvs. A day or so only... AL> yes that's the problem, if you can type during the display of the graphics, it's ok for me. OK, so it will be ok for the final 1.2 release :-) AL> Anyway, these are my formats and converters, defined in my ~/.lyx/preferences AL> file. Note that I have to remove the converters from AL> /usr/local/share/lyx/lyxrc.defaults for this to work. (Or from AL> $LYXHOME/lib/lyxrc.defaults if you are using a cvs version of lyx that you AL> haven't installed.) AL> AL> # AL> # FORMATS SECTION ########################## AL> # AL> AL> \format "ppm" "ppm" "PPM" "" AL> AL> # AL> # CONVERTERS SECTION ########################## AL> # AL> AL> \converter "eps" "ppm" "convert $$i PPM:$$o" "" AL> \converter "ps" "ppm" "convert $$i PPM:$$o" "" AL> \converter "gif" "ppm" "giftopnm $$i > $$o" "" AL> \converter "jpg" "ppm" "convert JPG:$$i PPM:$$o" "" AL> AL> \converter "ppm" "xpm" "ppmtoxpm $$i > $$o" "" AL> AL> \converter "png" "eps" "convert $$i EPS:$$o" "" AL> \converter "ps" "eps" "convert $$i EPS:$$o" "" AL> \converter "xpm" "eps" "convert $$i EPS::$$o" "" AL> ok i will try this and tells you the results AL> > I think you should add a dependancy to imagemagick (if the is no other AL> > solution) for the install in order to avoid lots of messages about AL> > graphics AL> AL> Maybe. ok check which converter is installed and adapt the converter command lines or be more precis about these problem while they aren't solved. AL> Angus AL> AL> AL> -- Darth Vader: Impressive. Most impressive. Obi-wan has taught you well. You have controlled your fear. Now, release your anger! Only your hatred can destroy me! --------------------------------------------------------------- ( Yann MORERE ICQ=#97130491 mailto:[EMAIL PROTECTED] ) ( Tel.: 33 (0)3 87 54 70 87 Fax.: 33 (0)3 87 31 53 33 ) ( Maitre de Conférences http://ymorere.multimania.com/ )