As a part of the InsetGraphics, a missing feature is to convert image formats to something useable for the document creation this means to convert the images to EPS when the output is Postscript[1], and to PNG when the output is PDF. [1] Actually the difference is in the route, if the route is through TEX->DVI->PS then its EPS, if it's TEX->PDF it's PNG. In InsetGraphics::Latex() I need to know what the route is and so to convert the image file if necessary. The question is what is the preferred route to do so, should I add a variable to the Buffer class and modify it before the makeLaTeXFile call, or should I add a parameter to all the called for methods and pass a variable to say what we are going to create. The variable in buffer class is the simplest and requires the least work, only change Buffer and InsetGraphics, the second way is a bit cleaner and doesn't require an additional variable in Buffer that has only a temporary meaning and only in a very specific code path. But the second way will require adding a variable all through that code path when mostly everything has no use for this information. What do you say? -- Baruch Even http://techst02.technion.ac.il/~sbaruch/ (My Site) http://www.redrival.com/jindor/ (My brothers AD&D site) " Learn to laugh ... it's the path to true love! " - The Angel in the movie Michael