rem call with ps4pdf.bat FILE without suffix @echo off set FILE=%1 latex %FILE%.tex dvips -Ppdf -o %FILE%-pics.ps %FILE%.dvi ps2pdf -dAutoRotatePages#/None %File%-pics.ps %File%-pics.pdf texify -b -l latex -p %File%.tex %.tex