Build LaTeX document in main build script