Add latex build script and ignore generated files