Table of Contents

tex2eps

The script

#!/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

Usage

Preparation

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}

Conversion

Acknowledgements

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 ;-).