blob: 27ba07313bf4303defb5e66a6186e11c2b1211b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
name=`basename $1 .mp`
figname=$name.$2
echo \\documentclass{article}\\usepackage[dvips]{epsfig}\\setlength{\\paperwidth}{8.2in}\\setlength{\\paperheight}{11.2in}\\setlength{\\textwidth}{8in}\\setlength{\\textheight}{11in}\\setlength{\\voffset}{-1in}\\setlength{\\hoffset}{-1in}\\setlength{\\topmargin}{0pt}\\setlength{\\headheight}{0pt}\\setlength{\\headsep}{0pt}\\setlength{\\oddsidemargin}{0pt}\\begin{document}\\pagestyle{empty}\\epsfig{file=$figname,height=\\textheight,clip=}\\end{document} > $figname.latex
latex $figname.latex
dvips -Pcmz -Pamz -E -o $figname.eps $figname.dvi
# epstopdf -d --nogs $figname.eps > $name.eps
# Modification of an original by J.M.C.Esteves
|