6

I have just updated MiKTeX and have found that pstricks now appears to cause a problem. The error message I'm getting is

("C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\pstricks.tex"

! Undefined control sequence.

l.31 \if@check@engine

Not sure what's happening here. If I stop pstricks from being loaded things work ok.

Is there a known problem with the latest pstricks?

2 Answers 2

5

Wait for the next update or define until it happens:

\makeatletter
\newif\if@check@engine  \@check@enginetrue 
\makeatother

Report bugs to the PSTricks mailing list! See pstricks.tug.org

9
  • Thanks Herbert. Your code seems to work and I will report bug to mailing list. Commented Jan 2, 2018 at 7:55
  • next time! This time I already know the problem :-)
    – user2478
    Commented Jan 2, 2018 at 8:08
  • Where should the 'workaround' code be inserted - into pstricks.tex, or somewhere else? Commented Jan 4, 2018 at 14:34
  • Anywhere in the preamble before loading pstricks of your document. However, another update of TL or miktex should fix it
    – user2478
    Commented Jan 4, 2018 at 14:52
  • Herbert. Have tired to update miktex but no files show as needing updating. Also I 've updated pstricks manually and it didn't help the problem. Commented Jan 5, 2018 at 3:08
1

The log shows that the error happens at line 31 in pstricks.tex, so you can comment the code below (line 31~35 in the pstricks.tex) like this:

%\if@check@engine
%  \ifx\c@lor@to@ps\@undefined
%    \def\c@lor@to@ps{\PSTricks_Not_Configured_For_This_Format}%  message for a pdflatex run
%  \fi
%\fi

I do not know whether any side effects would happen, but anyway it works. :P

You must log in to answer this question.

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