I copied the code that yields the diagram presented in this answer but all I get is the error message

! LaTeX Error: File `pst-calculate.sty' not found. Type X to quit or to proceed, or enter new name. (Default extension: sty) Enter file name: ! Emergency stop.

I have just updated all my packages. When I look up the name of the missing style file, I find pst-calculate.tpm in the directory

C:\Program Files\MiKTeX 2.9\tpm\packages\pst-calculate.tpm

Also, the missing file can be found here. Will my problem be solved if I just save it to the correct folder? If so, which is it? Let me know if I need to give you more information.


Following UlrikeFischer's advice I managed to install the package pst-calculate, and after some tweaks, it worked. Thanks to Ulrike for the help.

  • It works fine for me. Did you check for updates as user and as admin? – Ulrike Fischer Dec 26 '18 at 22:50
  • @UlrikeFischer I forgot to run miktex update as admin and ran it as simply user. Weird thing is that now Windows can't find the miktex update program, which has got me worried thinking that it got deleted somehow. Any idea what I could do? – Drarp Dec 26 '18 at 23:13
  • Search in the bin folder of miktex for miktex-console – Ulrike Fischer Dec 26 '18 at 23:15
  • @UlrikeFischer just ran it as admin and it found no updates. I still get the original error and the style file doesn't exist yet. – Drarp Dec 26 '18 at 23:23
  • You can delete this question if you think this question is too localized. – Artificial Stupidity Dec 27 '18 at 8:57

From Ulrike's suggestion, I installed the pst-calculate package from miktex-console and it solved the problem. Can't for the life of me explain what happened to Miktex Update, but my original problem was solved, so this question is closed.

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.