Shell script to generate a PDF from latex filex removed