Changes to latex build scripts