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'm new to latex and trying to install the subfig package from ctan as I can't use the MikTex package manager from where I'm working. I'm using MikTex 2.9 (with WinEdt). I've 'run' latex on the dtx and ins files to get the sty file. I've placed the sty file in

C:\Program Files (x86)\MiKTeX 2.9\tex\latex\subfig

and the pdf doc file in

 C:\Program Files (x86)\MiKTeX 2.9\doc\subfig

The doc file loads fine when I double click on the package name in winedt. But when I run the compiler it gives a latex error saying

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

I'm brand new to latex and from looking around I can see a lot of people putting custom packages into some kind of extra root directory but I was assuming as this can normally be downloaded from the package manager and is well accepted by MikTex that they could just be placed in the main C:// drive.

Can someone help me get this sorted. I'd have thought it should be relatively straightforward - but I can't see it for the life of me!

share|improve this question
Did you run refresh FNDB? – Harish Kumar Dec 7 '12 at 15:02
Yes I did! Sorry should have mentioned that. I went to Maintenance -> settings and clicked refresh FNDB. – George Wilson Dec 7 '12 at 15:05
Is there a difference between maintenance and maintenance admin though? – George Wilson Dec 7 '12 at 15:09
3  
2  
If you put files in the main tree (which is not a good idea as they can get overwritten at updates) you must update the FNDB in admin mode. But better is to create a local repository and use the package manager to install the files from this repository. See my answer here tex.stackexchange.com/questions/16669/…. – Ulrike Fischer Dec 7 '12 at 16:08
show 10 more comments

closed as too localized by Speravir, Joseph Wright Feb 2 at 22:37

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.