37

I set the Install Packages on the Fly setting to Yes and try to compile my document in Texmaker, but I still get the error File [...] not found, where [...] is the package I need. Basically, I need to manually install every package I use.

For example, I want to use the footmisc package. I put \usepackage[bottom]{footmisc}, and I get the error ! LaTeX Error: File 'footmisc.sty' not found.

Is this a known bug, or am I misunderstanding this feature?

3
  • You should keep the internet on and the repository address should be properly configured. Pl check them.
    – user11232
    Mar 25, 2012 at 0:41
  • Yep, you're right @Harish, just had to configure my connection to the repository. Mar 25, 2012 at 1:13
  • Just a note for the future, if you are using TexStudio or other IDEs on windows, open it with "run as an administrator" then packages will install "on the fly".
    – Dexter
    May 15, 2018 at 5:15

1 Answer 1

29

You should first ensure that the internet is ON. Then Go to

Start>all programs>MikTeX 2.9>Maintainance (Admin)>Package Manager (Admin).

This window will popup

enter image description here

Click Repository to get

enter image description here

Hope now the things will be clear.

Similarly the

 Start>all programs>MikTeX 2.9>Maintainance (Admin)>update (Admin). 

should get you

enter image description here

Where you can select the source. Once it is done, the next time you can choose the second option i.e., Last used package repository if you have made the specific settings for a particular repository.

4
  • +1, but two remarks: 1) Afaik, MiKTeX is Windows-only, so your PS is redundant. 2) Why would it be preferable to select Last used package repository the second time? What advantage do you get over keeping the option Use the nearest package repository?
    – doncherry
    Mar 25, 2012 at 2:03
  • @doncherry Thank you for noting. Yes PS is redundant. I removed it. Second option is only personal preference and nothing special about it.
    – user11232
    Mar 25, 2012 at 2:12
  • 3
    I was having the same problem as OP, but specifying a repository did not help. I'm using TeXworks. ! LaTeX Error: File `amssmyb.sty' not found.
    – asterac
    Mar 20, 2015 at 2:27
  • I didn't find the package manager, yes I do have miktex installed
    – Rainb
    Jul 6, 2020 at 6:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .