TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

File subfigure.sty not found.

How can I fix this error? I compile my .tex file without any error with my laptop but I get this error when I compile with my office PC.

share|improve this question
Seeing your comment at Heiko's answer, your problem seems to be a duplicate of Windows API error 5: “Access is denied” when trying to compile TikZ picture and not the one you've described in your question. – karlkoeller Jul 1 '13 at 9:14
up vote 7 down vote accepted

Both TeX Live and MiKTeX provide both subfigure and subfig as distribution packages. Both packages are written by the same author. The newer package subfig replaces the older package, but it is not fully backward compatible (see the package documentation).

Unless you have an ancient TeX distribution, you can install the missing package via the package manager of your TeX distribution. As subfigure is deprecated, you might consider using package subfig instead (the latter also requires package caption).

share|improve this answer
although i am the admin i can not install the missing package via the package manager since i m getting error Windows API error 5: Access is denied – andii Jul 1 '13 at 8:11
Try reading this duplicate: Updating MikTeX fails: “Windows API error 5: Acces denied.” and the related question. – karlkoeller Jul 1 '13 at 9:07

If you have no rights to install packages on your office PC, simply put the file subfigure.sty (e.g. http://www.tug.org.in/tutorial/src/subfigure.sty) into your working directory.

share|improve this answer
subfigure is a basic package that should be included with any latex installation; having to put it in your working directory is likely not the right solution but is just masking the problem – rfabbri Feb 29 at 14:29

For Mac OSX (maybe even for other systems), there might be a conflict with different installed tex systems. In my case, a spurious Macports latex was in my path while I wanted MacTex. One test is

eval `/usr/libexec/path_helper -s`

Then run pdflatex. If it suddenly works, then its a PATH problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.