improve latex exproting