# using subfig changes fonts in captions of figures

I used package subfig(for using \subfloat). This undoes the special font size for the captions in the figures. Now they are of same size as normal text. How to counter that?

The Document class and packages included are:

documentclass[letterpaper, 10 pt, conference]{ieeeconf}

\IEEEoverridecommandlockouts
\overrideIEEEmargins
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{subfig, graphicx}
\DeclareGraphicsExtensions{.pdf, .jpeg, .png, .jpg}
\usepackage{cite}
\usepackage{amssymb,amsmath}
\floatname{algorithm}{Procedure}
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}


\centering
\includegraphics[width=0.4\textwidth,height=0.3\textwidth]
{images/framework.eps}
\caption{Block diagrammic representation of our framework}
\label{fig:framework}
\end{figure}


I am able to see small font if I remove subfig.

-
Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Jubobs Mar 13 '13 at 9:36
edited with example. –  Swagatika Mar 13 '13 at 10:29
Try \usepackage[caption=false]{subfig}; the caption package loaded by default is not compatible with IEEE classes. –  egreg Mar 13 '13 at 10:48
thanks it worked , please add this as answer. Can't I use subfigure and subfig together? It seems to create conflict... –  Swagatika Mar 13 '13 at 12:04
No, you can use only one, either subfigure or subfig'. –  Axel Sommerfeldt Mar 14 '13 at 7:20

The package caption is not compatible with the IEEE classes; you can still load subfig, but with
\usepackage[caption=false]{subfig}

which won't redefine the \caption command, but will provide the main functionalities of subfig` nonetheless.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.943278968334198, "perplexity": 6732.022093000185}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2015-32/segments/1438042981576.7/warc/CC-MAIN-20150728002301-00160-ip-10-236-191-2.ec2.internal.warc.gz"}