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?


Wait for the next update or define until it happens:

\newif\if@check@engine  \@check@enginetrue 

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

  • Thanks Herbert. Your code seems to work and I will report bug to mailing list. – Paul Walker Jan 2 '18 at 7:55
  • next time! This time I already know the problem :-) – user2478 Jan 2 '18 at 8:08
  • Where should the 'workaround' code be inserted - into pstricks.tex, or somewhere else? – Johnny Canuck Jan 4 '18 at 14:34
  • Anywhere in the preamble before loading pstricks of your document. However, another update of TL or miktex should fix it – user2478 Jan 4 '18 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. – Paul Walker Jan 5 '18 at 3:08

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:

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.