0

This question already has an answer here:

I tried to fix my problem with dotsymbols in pstricks (see my question) and end up with an update of several packages in miktex. Now (after update) pstricks stops working. I get the following error:

(C:\Users\flenk1\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/utilities\pgfkeysfi
ltered.code.tex
\pgfkeys@tmptoks=\toks20
))
(C:\Users\flenk1\AppData\Roaming\MiKTeX\2.9\tex/generic/pgf/utilities\pgffor.co
de.tex
Loading [

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.10 \ProvidesPackageRCS[v
                          \pgfversion] $Header: /cvsroot/pgf/pgf/generic/pgf...

? x

I tried the following compile commands:

C:\Program Files\MiKTeX 2.9\miktex\bin\x64\latex.exe
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\xelatex.exe
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\pdflatex.exe
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\lualatex.exe

but all end up with the same error. Even after a complete reinstallation of miktex the same error remains.

My Minimum example is really minimal:

\documentclass{scrartcl}
\usepackage{pstricks}
\begin{document}
This is a test
\end{document}

Is there a possibility to switch back to an older version of pstricks or pgf? Most of my files use pstricks, so for me this error is catastrophic.

Thanks for any help.

marked as duplicate by moewe, marmot tikz-pgf Feb 20 at 7:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Update MikTeX in admin and user mode. See tex.stackexchange.com/q/108447/35864 and tex.stackexchange.com/q/55437/35864. The log shows that pgf is installed as a user. If pstricks is installed as admin that could explain package incompatibilities. If you are using a multi-user installation and have packages installed both as user and as admin it is crucial to run the updater in both modes to avoid package version mismatches like these. (That is one of the reasons why people usually recommend single-user installs: You don't have that issue there.) – moewe Feb 18 at 11:07
  • @moewe This seems to solve the problem. Do you want to write an answer, or do you have another idea of what to do with this question? – marmot Feb 18 at 23:18
  • @marmot Structurally this should be a problem related to the recent tex.stackexchange.com/q/469005/35864 and friends. We could close this as a duplicate. – moewe Feb 19 at 6:13
  • This solves my problem. Thanks a lot to @moewe – Fritz Feb 19 at 9:24