Here is another version, which checks for file extension first. If the graphics file is EPS, it does nothing but insert the appropriate \include... command. Any other graphics file is checked for its bounding box and the value is filled in after the include command. For this i use ebb.exe, which is part of the dvipdfm bundle, which in turn is part of every standard TeX distribution. So, no external program is needed any more.
Fritz
|
|