Hi, i am trying to create a DOS batch file to run:
.tex --> .dvi : latex filename.tex
.dvi --> .ps : dvips -o filename.ps filename
.ps --> .pdf : ps2pdf filename.ps
I tried:
latex %1
dvips -o %~n%1.ps %n%1
ps2pdf %~n%1.ps
assuming that ~n
will give me the file name without the extension of a passed file. However, it doesn't work (apart from the first line). Does anyone know the correct version?