summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/SIstyle/MPfig.bat
blob: 501b6cadea489f9b28c239a75222198b9895f268 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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