When I compile LaTex, it normally installs missing packages. But \usepackage{siunitx}
does not do so. Even it asks me for installation permission, when I accept yes
, it automatically close saying latex.exe has stopped running
.
I have seen similar problem asking here, but I could not get the point how to solve my problem.
Can someone please help for this issue?
Best Answer
General Guide to Installing Packages with MikTeX Package Manager
If you have trouble with installing packages during compilation, try to install the package via the Package manager from your TeX distribution (
MikTeX
,TeXlive
etc.) instead.Here I present the steps to be taken for
MikTeX 2.9
, Windows 7/8/10 (since that is what you have installed):MikTeX
you should see an option that saysMikTeX Package Manager (Admin)
pop up. Otherwise go to the directory where you installed MikTeX to try and find it. It's important that you select the (Admin) version, and not the one that just saysMikTeX Package Manager
.Repository -> Change Package Repository -> ... Install from the Internet -> *Choose any one*
. Note: if an error pops up at this stage, try the other repositories.siunitx
) from within the Package manager. Right click it, and proceed with installation.MikTeX Settings (Admin)
. Do both: 'Refresh FNDB' and 'Update Formats'. Then you're done.In general, when you want to install new packages, I would advise going through all of these steps especially if it has been some time since you updated/ installed a new package (because the repository that you have synced with last would probably be outdated).