<div dir="ltr">Hi all,<div><br></div><div>Currently, `pstricks.tex` loads pgfkeys and pgffor using <div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>% lines 77--81</div></div><div><div>\ifx\pgfkeysloaded\relax\else</div></div><div><div>  \input pgfutil-common.tex</div></div><div><div>  \input pgfkeys.code.tex</div></div><div><div>  \input pgffor.code.tex</div></div><div><div>\fi</div></div></blockquote><div><br></div><div>This way, only the common pgf utility driver `pgfutil-common.tex` is loaded, and the per-format driver `pgfutil-(plain|latex|context).def` is missing.</div><div><br></div><div>This will cause problems with the latest pgf dev (<a href="https://github.com/pgf-tikz/pgf">https://github.com/pgf-tikz/pgf</a>), in which now `\pgfutil@protected`, a command defined only in per-format driver, is needed by `pgffor`. See commit</div><div>    <a href="https://github.com/pgf-tikz/pgf/commit/5d099a8399436f46fba0ea464b54c301b1656abe">https://github.com/pgf-tikz/pgf/commit/5d099a8399436f46fba0ea464b54c301b1656abe</a></div><div>and example below</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>\documentclass{article}</div><div>\usepackage{pstricks}</div><div>\begin{document}</div><div>\end{document}</div></blockquote><div><br></div><div>! Undefined control sequence.<br>l.1640 \pgfutil@protected<br>                         \def\pgfmathprintnumber{%<br></div><div><br></div><div>A simple workaround would be to load pgffor in `pstricks.tex` by</div><div><br></div><div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>% no need to provide \ProvidesPackageRCS</div></blockquote></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>\ifx\pgfkeysloaded\relax\else </div><div>  \ifdefined\@latexerr % format is latex</div><div>    \RequirePackage{pgffor} % pgffor depends on pgfkeys</div><div>  \else % format is plaintex</div><div>    \input pgffor.tex</div><div>  \fi</div><div>\fi</div></blockquote><div><br></div><div><br></div><div>best regards,</div><div>Yukai Chou</div></div>