[Tex/LaTex] Missing packages – Package Manager doesn’t work

installingmiktexpackagestexstudio

I just installed TeXstudio in my computer (I'm running Windows 7) and installed MiKTeX as well. I wrote a file and when I try to compile it messages like File 'cite.sty' not found. \usepackage or File 'url.sty' not found. \usepackage appear.

I tried using the Package Manager as stated in this question but when I try to do that, with any package, a message appears saying that it couldn't connect to the server.

Isn't there another way to install these packages without using the package manager? I've downloaded the file cite.sty from here and saved it in the folder where all the other packages are, but it is still not compiling. Any ideas?

Best Answer

There are two main points to consider when installing a package manually (which you should ideally do with administrative privileges, because it's MikTeX):

  • Never use the automatically generated file tree. This is just because you normally don't want your packages to be modified by a (potentially not working) package manager. Install it to any other folder and add it as TeX root (via MikTeX Settings).
  • After doing so you have to refresh the filename database (FNDB) and maybe also to update formats. That's done via the MikTeX Settings.

If you just need the files for one project, it is mostyle also enough to just copy them to that directory.

Related Question