#!/bin/sh INPUT=$1 DVI=${INPUT%.*}.dvi if [ -n "$2" ] then OUTPUT=$2 else OUTPUT=${INPUT%.*}.eps fi latex $INPUT dvips -E -o $OUTPUT $DVI
First create a new LaTeX document containing your PSTricks image:
\documentclass{article} \usepackage{pst-eps} \pagestyle{empty} \begin{document} \TeXtoEPS % insert your PSTricks image here \endTeXtoEPS \end{document}
tex2eps infile.tex outfile.eps – Converts infile.tex to outfile.epstex2eps file.tex – Converts file.tex to file.eps
The script was based upon the commands described in this entry on this Semibyte wiki entry and put up here so that I don't forget this stuff again
.