4

Consider the following MWE:

\documentclass{article}
\usepackage{pstricks}
\begin{document}
A
\end{document}

It produces the error

Runaway argument?
] {pgffor.code.tex} 
! Paragraph ended before \ProvidesPackageRCS@i was complete.
<to be read again> 
                   \par 
l.11

How do I fix this?

3 Answers3

10

Update

This fix is no longer needed in current tex systems. MikTeX users should keep in mind that they may have to run the updater in admin and user mode in case the involved packages reside in different trees of a multi-user installation.

Old Answer

Until pstricks has been adapted to the new pgf version you could try to replace in a local copy of pstricks.tex (you find it in tex/generic)

\def\ProvidesPackageRCS{\@ifnextchar[\ProvidesPackageRCS@i{\ProvidesPackageRCS@i[] }}%$ 

by

\def\ProvidesPackageRCS#1{}
Ulrike Fischer
  • 327,261
  • Just to mention that the update has been available in MikTeX and TeX live for quite a while now. So an update of the system should fix things. MikTeX users should keep in mind that they may have to run the updater in admin and user mode in case the involved packages reside in different trees of a multi-user installation (cf. https://tex.stackexchange.com/q/108447/35864 and https://tex.stackexchange.com/q/55437/35864). – moewe Feb 20 '19 at 06:41
  • 2
    @moewe I have edited the answer. And I really hope that my feature request leads to something, I think we had (at least) five user/admin woes in the last three days. – Ulrike Fischer Feb 20 '19 at 08:51
6

use pstricks.tex from http://archiv.dante.de/~herbert/texnik/tex/generic/pstricks/ or wait one or two days for the update. It has a slightly other solution.

2

For texlive-pstricks in MacPorts, it worked to uninstall and deactivate pgf and then install pgf-devel (on 2019-03-15).

Mensch
  • 65,388