#!/bin/sh # Generate an Encapsulated Postscript file (eps) from the # PLplot pstex driver generated files. if test $# = "0"; then echo -e "\n\ Usage: pstex2eps \n\ \n\ Where is the name of the output file you specified\n\ with the -o option in PLplot.\n\ There must exist two files, the postscript file without text,\n\ , and the latex file with the text, .\n\ The output file will be named .\n\ \n\ The Computer Modern Type 1 fonts will be included in the output\n\ eps file. If you intent to use the plot figure in LaTeX, just\n\ use a plain \include{} in your latex file.\n" exit 1 fi if test ! -e $1 -o ! -e $1_t; then echo "$1 or $1_t don't exist. Exiting." exit 1 fi ifile=$1 ofile=`mktemp pstex2eps.XXXXXX` cat > ${ofile}.tex < /dev/null \ && dvips -Pcmz -o ${ifile}.eps $ofile 2> /dev/null rm ${ofile}*