AFAIK, you don't need any of this crap.  Just don't put any extension
on the includegraphics, and let latex guess.

At least that works for plain old latex and pdflatex (not via lyx).

Reply via email to