@echo off call pdfclose --file %1.pdf latex -src %1 call dvips -Ppdf -G0 %1.dvi call ps2pdf %1.ps %1.pdf call pdfopen --file %1.pdf