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?

16
  • 2
    The only way currently imho is to go back to an older pgf version until pstricks is fixed (I wrote the author already) Commented Jan 7, 2019 at 17:42
  • @UlrikeFischer Hi Ulrike. Thanks for the answer. Do you know where I can find an older version of PGF? :-) Commented Jan 7, 2019 at 17:43
  • 1
    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{} Commented Jan 7, 2019 at 17:52
  • @UlrikeFischer That did the trick. Thank you very much! Commented Jan 7, 2019 at 18:05
  • @UlrikeFischer: To whom do you send a bug report?
    – user2478
    Commented Jan 7, 2019 at 18:58

3 Answers 3

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{}
2
  • 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. tex.stackexchange.com/q/108447/35864 and tex.stackexchange.com/q/55437/35864).
    – moewe
    Commented Feb 20, 2019 at 6: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. Commented Feb 20, 2019 at 8: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.

3
  • I didn't try to make a real solution - suppressing all message are naturally not right. Commented Jan 7, 2019 at 19:04
  • There is only a problem, if someone uses a development version of pstricks.tex and an old pgf. Later it will be the same as you already suggested.
    – user2478
    Commented Jan 7, 2019 at 19:10
  • Sorry. Where is the horizontal 0 labels in my answer here? Commented Jan 8, 2019 at 17:52
2

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .