[texhax] Tight boundingbox and a colour background

Mike B. mb78aa at yahoo.com
Thu Jan 13 11:24:07 CET 2011

Hi All,

I have a latex document with text over a colour (non-white) background (say gray). I'm trying to obtain an EPS file whose bounding box (BB) encloses the text area only.

However, using ps2eps doesn't produce a smaller BB  since the script apparently seeks a whitespace but here the background is non-white. 

Would appreciate suggestions how to crack this. I'm looking for a way to automate the process as much as possible and not having to manually examine each PS file and extract the BB.


More information about the texhax mailing list