Take the 2-minute tour ×
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've tried following several tutorials on installing a package and still can't get it to work. Here's what I'm using on Ubuntu:

$ pdflatex -v
pdfTeX 3.1415926-1.40.10-2.2 (TeX Live 2009/Debian)
kpathsea version 5.0.0
Copyright 2009 Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
There is NO warranty.  Redistribution of this software is
covered by the terms of both the pdfTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the pdfTeX source.
Primary author of pdfTeX: Peter Breitenlohner (eTeX)/Han The Thanh (pdfTeX).
Compiled with libpng 1.2.46; using libpng 1.2.46
Compiled with zlib; using zlib
Compiled with poppler version 0.18.2

I'm trying to install the subcaption package (which I guess needs several other files as well, according to the CTAN site for it). Is there not a simple way to get a package, e.g. just executing a single command to install it?

Here's one tutorial I tried, namely the "Manual installation" part since the tlmgr command isn't recognized. I should mention that in step 2 in the installation instructions I get an error that certain other .sty files weren't found, e.g. thumbpdf.sty wasn't found when I executed pdflatex caption.sty, so I skipped this step since it doesn't seem necessary for the packages to be used. I then copied both subcaption.sty and caption.sty to ~texmf/tex/latex/ and ran sudo texhash. There are no .map files, so this seems to be all I need to do, and yet I still get the error

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

when compiling my .tex file that uses the subcaption package (is it weird that caption is not included in my tex file, yet this is the missing file? I only have the command \usepackage{subcaption}). Any help is appreciated!

share|improve this question

closed as unclear what you're asking by yo', Johannes_B, egreg, Guido, Jesse Jan 25 at 16:27

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.

I'm under the impression that we get such questions quite frequently. I'd suggest that you install a full, new texlive. Howto do that, see here: tex.stackexchange.com/q/1092/4736 –  Keks Dose Mar 18 '14 at 14:39
I use the MiKTeX distribution and installing a package is as simple as running the 'Administrator' program, search for the package name and click install. –  Mobius Pizza Mar 18 '14 at 14:57

Browse other questions tagged or ask your own question.