# Undefined control sequence (\resetOptions) error

Would someone kindly help what's causing the following error:

! Undefined control sequence.
\resetOptions ->\@zero
=0\def \pst@linetype {0}\pstScalePoints (1,1){}{}\pss...
l.1900 \resetOptions

?
! Emergency stop.
\resetOptions ->\@zero
=0\def \pst@linetype {0}\pstScalePoints (1,1){}{}\pss...
l.1900 \resetOptions


MWE:

    \documentclass[english, landscape, a4paper]{slides}

\usepackage{graphics}
\usepackage{graphicx}
\usepackage{babel}
\usepackage{pst-eps}
\usepackage{pstricks}
\usepackage{multido}
\usepackage{pst-node}
\usepackage{pst-math}

\begin{document}
\begin{TeXtoEPS}
\setlength{\unitlength}{1cm}

\newsavebox{\EpsImgBox}
\savebox{\EpsImgBox}{%
\includegraphics[angle=90]{foo.eps}
}

\begin{pspicture}(\wd\EpsImgBox,\ht\EpsImgBox)
{
\rput[lb](0,0){
\usebox{\EpsImgBox}
}
}
\end{pspicture}
\end{TeXtoEPS}
\end{document}


Thanks.

• I've compiled with TeX Live 2007, 2008, 2009, 2010 and 2011/pretest and had no errors. Would you please add the list of file that you obtain by adding \listfiles at the start of the input? Jul 1, 2011 at 13:41
• @egreg: Nice collection! Jul 1, 2011 at 14:08
• @Andrey: not to mention that I can use universal-darwin and x86_64-darwin binaries both with 2010 and 2011 TeX Live! Jul 1, 2011 at 14:12
• I've added \listfiles to the start of my document. Here is the logfile pastebin.com/KceYcEhj . Thanks. Jul 1, 2011 at 14:13

Your PSTricks files are not up to date. You can run the TeXLIve manager when using TeXLive or the MiKTeX manager when running MiKTeX or get all current files from http://texnik.dante.de There you'll find all files or a tarzip which has all files in a TeX Directory Structure saved. You can simply copy all files over your current directory structure, run texhash and all should then be fine.
• I've upgraded my MiKTeX installation to version 2.9 but I'm getting the error message, ! Package xkeyval Error: transpalpha' undefined in families ,pstricks,pst-eps ,pst-node,pst-plot,pst-3d,pstricks-add'. See the xkeyval package documentation for explanation. Type H <return> for immediate help. Jul 1, 2011 at 16:04