Automated Build Script From Tex