While using \usepackage[caption=false]{subfig} I get an error like in the image below enter image description here

And the chapter 6 where figure is included has the following code.

        \subfloat[a)]{\includegraphics[width=.35\linewidth, scale=0.5]{registered1.png}}\hspace{4mm}
        \subfloat[b)]{\includegraphics[width=.35\linewidth, scale=0.5]{registered2.png}}
        \caption{FCC of MS bands registered to a) SAR Image de-noised by enhanced Lee filter b)SAR Image de-noised by wavelet filtering}
%%%% This is part of "main" file
\documentclass[12pt,openright,twoside]{thesis}  %12pt is larger than 11pt
      {\normalfont\large}{Chapter \thechapter:}{1em}{}

\newcommand{\tbsp}{\rule{0pt}{12pt}} %used to get a vertical distance after \hline
%\setlength{\topmargin}{0in}    %use this setting if the printer makes the the top margin 1/2 inch instead of 1 inch


\titleformat{\chapter}[display]% NEW
    {\fontfamily{ptm}\huge\bfseries\centering}{\chaptertitlename\ \thechapter}{5pt}{\huge}% NEW
\titlespacing*{\chapter}{0pt}{30pt}{20pt}% NEW


\include{Titlepage} %(must be first, required, non-numbered)
\include{Abstract} %(must follow Abstract, required, non-numbered)

%Pages from this point start at lower-case Roman number ii)

%\include{Preface}  %(if present, start at lower-case Roman number ii)
%\include{Foreword} %(if present, lower-case Roman)
%\include{Dedication} %(if present, lower-case Roman)
\include{Acknowledgments} %(if present, lower-case Roman)

\tableofcontents %(required, lower-case Roman)
%\listoftables %(if present, lower-case Roman)
\listoffigures %(if present, lower-case Roman)
\addcontentsline{toc}{chapter}{List of Abbreviations}


%Pages from this point start at Arabic numeral 1
      {\normalfont\large}{Appendix \thechapter:}{1em}{}
%When using Bibtex, delete the previous line and use the following
%three lines.  

%\bibliography{Galactic,Dottie} %replace "Galactic,Dottie" with the
%                 file name(s) of your bib file(s)


  • 1
    welcome to tex.se!. in my documents your code snipped work fine! to see, what is going wrong in your document, you had to provide complete but small document beginning with \documentclasss{...} and ending with \end{document}, which gives reported error.
    – Zarko
    Jun 23, 2018 at 8:26
  • Hi, I have posted complete document beginning with \documentclasss{...} and ending with \end{document}.Please have a look and suggest anything if you may. Jun 23, 2018 at 9:29

1 Answer 1


You are using a document class called thesis. In the old days the caption package assumed that the thesis document class available on CTAN [1] is used, but there are many private document classes called thesis as well. You are using such class, and therefore the caption package tries to use commands from the CTAN thesis class like \cph@font which fails.

I fixed this on 2009/11/15.

What could you do? Either

1) Update your TeX installation. I'm sorry, but I cannot support versions of the caption package which are more than 8 years old. If updating TeX is not an option for you, try:

2) Add \captionsetup{format=plain,labelfont={},textfont={}} right after \usepackage[caption=false]{subfig}. I haven't tested it, but it might work. If not, try:

3) Rename your thesis class, e.g. by renaming thesis.cls to mythesis.cls and changing \documentclass{thesis} to \documentclass{mythesis}.

[1] https://ctan.org/pkg/thesis

  • Thanks. \captionsetup{labelfont={},textfont={}} right after \usepackage[caption=false]{subfig} worked.Thank You again Jun 23, 2018 at 9:44
  • @ManaliKedar BTW: You are using Windows 10 but an TeX installation from 2009? Or do you have a local copy of caption.sty and caption3.sty from 2009 in your document folder? If yes, deleting these files will fix your problem, too.
    – user2574
    Jun 23, 2018 at 9:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .