2

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.

7

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).

5

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.

  • 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 '16 at 14:29
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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