scripts for compiling the pdf