diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/SIstyle/MPfig.bat')
-rw-r--r-- | Master/texmf-dist/source/latex/SIstyle/MPfig.bat | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/SIstyle/MPfig.bat b/Master/texmf-dist/source/latex/SIstyle/MPfig.bat new file mode 100644 index 00000000000..501b6cadea4 --- /dev/null +++ b/Master/texmf-dist/source/latex/SIstyle/MPfig.bat @@ -0,0 +1,30 @@ +@echo on
+
+copy %1.mp temp.mp /Y
+mpost -tex=latex temp.mp
+mpost -tex=latex temp.mp
+copy temp.1 %1.mps /Y
+del temp.mp
+del *.mpx
+del *.tmp
+
+@echo \input{mphead} > %1.tex
+@echo \usepackage[dvips]{graphicx} >> %1.tex
+@echo \pagestyle{empty} >> %1.tex
+@echo \begin{document} >> %1.tex
+@echo \includegraphics{temp.1} >> %1.tex
+@echo \end{document} >> %1.tex
+
+latex %1.tex
+dvips -Ppdf -G0 -E %1.dvi
+del temp.1
+del %1.1
+
+del %1.tex
+del %1.log
+del %1.aux
+del %1.dvi
+copy temp.log %1.log /Y
+del temp.log
+
+
|