bmeps + dvips add-on

Usage

Preparing LaTeX sources

In the header section of your TeX source write

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

This advises LaTeX to treat PNG graphics as EPS. Bounding box information is retrieved from files having the suffix .bb. The bmeps program can be used to create .bb-files, i.e.
	bmeps -b file1.png file1.bb
creates the bounding box for graphics file file1.png and stores the bounding box data into file1.bb.
You can use shell scripts like the following to create bounding box files for all PNG files in a given directory:
	#! /bin/csh
	foreach png (*.png)
	  set j = $png:r
	  set bb = ${j}.bb
	  bmeps -b ${png} ${bb}
	end

New dvips command line options

Options can be given on command line via

	-I <conversion-options>

where conversion-options is a string containing the following characters: If no command line options are given dvips consults the environment variable EPSOUTPUT.

Option examples