I am using the Texstudio environment for compiling my latex code. I need to import the mathtools package for my project. But it seems that I am getting this error"mathtolls.sty is not found". So, I thought that I need to manually install this package. When I search this on the web I found all the solutions for the older version of Miktex going to the maintainance folder, setting(admin) etc. But in the latex version, Miktex merges the maintainance to Miktex console. Can anyone suggest how to install this package manually using Miktex console?
-
1if you really get the error "mathtolls.sty" not found you have typo in your code. Beside this you can find mathtools by searching for mathtools in the package tab and then select it and click on the + to install it.– Ulrike FischerMay 16, 2020 at 14:45
-
when I try to install this way it gives me this error "Connection to mirror.hit.edu.cn could not be established".– Swakshar DebMay 16, 2020 at 14:49
-
well then try another mirror. Or check your proxy settings. or build a local repository and install from there: tex.stackexchange.com/a/462216/2388– Ulrike FischerMay 16, 2020 at 14:51
1 Answer
Launch the MiKTeX console, both as user and as administrator, select the Packages
tab, write mathtools
in the form above the packages list window to filter, and select +
to add it:
-
when I try to install this way it gives me this error "Connection to mirror.hit.edu.cn could not be established". May 16, 2020 at 14:56
-
In this case, try to change the repository (from the
Settings > General
tab).– BernardMay 16, 2020 at 14:58 -
-
Did you obtain this ‘General’ tab? You have a form to select where packages are installed from, and at the end of the line a
Change
button, from which you can select a repository from a list all over the world.– BernardMay 16, 2020 at 15:05