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

I'm using texstudio on linux for writing paper.

the version is: TeXstudio 2.3 (SVN ??) Using Qt Version 4.8.4, compiled with Qt 4.8.0 Copyright (c) (original TexMaker) 2004-2010 by Pascal Brachet TeXstudio: Benito van der Zander, Jan Sundermeyer, Daniel Braun

I want to compile the following source code(the source codes are with a IEEEtran.cls ), but it shows : File `subcaption.sty' not found. in texstudio. then I downloaded subcaption.sty and put it in the same folder as the .tex file, there are even more errors. how to deal with this?

My OS is fedora 16, my used version is This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=pdflatex 2012.2.27) 12 SEP 2013 13:25.


\usepackage[demo]{graphicx} % demo is just for this example, remove it







\caption{Dummy figure}

share|improve this question

Your TeX distribution is outdated. Compare please my version

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9)

with your version

This is pdfTeXk, Version 3.141592-1.40.3

and check the bold parts.

Please look which of these questions helps you to update your system:

After updating your MWE will compile, but take a look to the resulting warning: the document class IEEEtran is not supported by the packages caption and subcaption. Check the resulting PDF file.

share|improve this answer
thanks! if IEEEtran is not supported by the packages caption and subcaption, what can I do? – user1944267 Sep 12 '13 at 16:31
Besides, I still don't know what is my TeX distribution, is it TexLive? how to check? – user1944267 Sep 12 '13 at 16:33
@user1944267 Fedora is a Unix/Linux derivat. So you should install the current TeXLive 2013. Try the second link for Ubuntu. Why do want to use IEEEtran and caption? Or other way: have you to use this documentclass? – Kurt Sep 12 '13 at 17:42
I'm user1944267. what do you mean by saying "have you to use this documentclass? " I want to use IEEEtran for a IEEE paper. I want to use caption because of this tex.stackexchange.com/questions/132857/… – misteryes Sep 12 '13 at 20:01
@misteryes So keep the warning in mind. It could be that you get problems using both. It could, it must not. Just be carefully and check weather your caption are right. Just be prepared that there can be problems. I hoped you can rid of this problem by changing the document class or not using caption. If you have problems please ask a new question here. – Kurt Sep 12 '13 at 20:46

I had this issue an old version on a shared user system where I couldn't install new packages.

I downloaded the subcaption package from CTAN and followed the wiki's manual installation instructions.

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.