Tex-PDF improvements