diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-11 23:49:22 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-11 23:49:22 +0000 |
commit | 465c3a91c12b03e3e44ed760e4356fa340f830b8 (patch) | |
tree | 9bb1431edccd3171136bb2efbba1a426e289ccd1 /Master/texmf-dist/source/plain/pdcmac/fig2epsf | |
parent | b3e91602f5c5c87db7d26bc4e2422697cbfefdb8 (diff) |
trunk/Master/texmf-dist/source/plain
git-svn-id: svn://tug.org/texlive/trunk@114 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/plain/pdcmac/fig2epsf')
-rw-r--r-- | Master/texmf-dist/source/plain/pdcmac/fig2epsf | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/plain/pdcmac/fig2epsf b/Master/texmf-dist/source/plain/pdcmac/fig2epsf new file mode 100644 index 00000000000..210dd47edb8 --- /dev/null +++ b/Master/texmf-dist/source/plain/pdcmac/fig2epsf @@ -0,0 +1,36 @@ +#! /bin/sh + +# Convert Fig files to conformant EPSF-3.0 files +# Fig's PostScript translation creates EPSF files that cause +# many laser printers to abort in mid-document. +# This script attempts to remedy this. + +version="1.0 Time-stamp: <pdc 1995-03-24>" + +# Usage fig2epsf [ -m MAG ] [ -f FONT ] [ -s FSIZE ] [ + +case $1 in + -V|--version) + echo 'This is fig2epsf $version, using fig2dev from' + fig2dev -V + exit 0 +esac + +fig2dev -Lps $* | sed ' + s/^%!$/%!PS-Adobe-3.0 EPSF-3.0/ + s/^%!PS-Adobe-2.0 EPSF-2.0/%!PS-Adobe-3.0 EPSF-3.0/ + s/%%Pages: 0/%%Pages: 1/ + /\/\$F2psDict/d + /\$F2psDict begin/d + / end/d + /\/\$F2psBegin/d + /\/\$F2psEnd/d + /\$F2psBegin/d + /\/col-1/d + s/col-1//g + s,\$F2psDict /mtrx matrix put,/mtrx matrix def, + s/\$F2psEnd/showpage/ + /%%EndProlog/a\ +\ +%%Page: 1 1 +' |