Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have installed last version of Miktex 32 bit, texworsk, paths are set corrently when I try to use library mathtools it gets this! LaTeX Error: File `mathtools.sty' not found. Any idea why it fails to install the library?

starting package maintenance...
installation directory: "C:\Program Files (x86)\Miktex"
package repository: http://ftp.snt.utwente.nl/pub/software/tex/systems/win32/miktex/tm/packages/
lightweight database digest: bb1a4b3c90f91ec159a27c8ce89ca32b
going to download 2144911 bytes
going to install 20 file(s) (1 package(s))
downloading http://ftp.snt.utwente.nl/pub/software/tex/systems/win32/miktex/tm/packages/mh.tar.lzma...
2144911 bytes, 1613.74 KB/Sec
extracting files from mh.tar.lzma...
pdflatex.exe: Windows API error 5: Access is denied.

pdflatex.exe: Data: C:\Program Files (x86)\Miktex\doc/latex/mh
======================================================================


! LaTeX Error: File `mathtools.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
share|improve this question
That's weird... Looks like it's downloading the correct package (mh) and then can't find mathtools.sty inside. Can you check the content of the directory C:\Program Files (x86)\Miktex\doc/latex/mh and see if the file is here or not? And if not, can you check the permissions of the latex folder? – T. Verron Feb 9 at 9:10
there is not such a folder, I think it might be the permissions messing this up – Ondřej Svoboda Feb 9 at 9:13
Did the on-the-fly install feature ever work on your system? – T. Verron Feb 9 at 9:21
Problems really was with the permissions.I managed to solve it. tex.stackexchange.com/questions/51799/… – Ondřej Svoboda Feb 9 at 9:34
thanks for answers :) – Ondřej Svoboda Feb 9 at 9:34

closed as too localized by Stefan Kottwitz Feb 9 at 10:07

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.