views:

1162

answers:

2

Hi, is it possible to use a .bb file (generated with, for instance, the "ebb" program included in MiKTeX) to define the bounding box of .png files when using \includegraphics? I can define the bounding box in \includegraphics directly, for instance \includegraphics[bb=0 0 100 100]{file.png}, but I'd like to be able to define this outside of the code, using the generated .bb file. Is this possible?

Thanks in advance, Hallgeir

A: 

I figured it out. Applying

\DeclareGraphicsExtensions{.png, .bb}

\DeclareGraphicsRule{.png}{eps}{.bb}{}

before including graphics using \includegraphics{file} (without the extension) solved it. :)

Just in case someone have the same problem.

Hallgeir
A: 

Just to let you know I was having the same problem and your trick solved it. :-) Thanks!

Greg