My university has a recommended thesis class based on the report class. Unfortunately, it is incompatible with the caption package; for example, when I include the subcaption package, I get the following error: "Package caption warning: Unsupported document class (or package) detected"
After searching around here and elsewhere, I believe the problem might be a \@makecaption command in the class file. I'm not experienced enough to know what it is doing or how to fix it. Can this command be fixed to be compatible with the caption package? Any help is greatly appreciated.
The makecaption command is:
\long\def\@makecaption#1#2{% Add space only if something is ...
\par\ifdim\prevdepth>-\p@ \vskip 10\p@\relax \fi % above the caption
\setbox\@tempboxa\hbox{\vbox to\topskip{}#1: #2\unskip\strut}%
\ifdim \wd\@tempboxa >\hsize % IF longer than one line:
{\ssp#1: #2\unskip\strut\par} % THEN set as ordinary paragraph.
\else % ELSE center.
\hbox to\hsize{\hfil\unhbox\@tempboxa\hfil}%
\fi}
The following comment is written before it:
% 15 Nov 93: further changes to support captions BEFORE the figure
% or table. Changes suggested by Donald Arseneau, installed by Ethan
% Munson. Detailed reasons are:
% The \unhbox allows \vadjust material (\vspace) to get out;
% the \vbox to\topskip{} is for captions at the top of top-floats;
% the \ifdim is for captions above the figure or table;
% the strut is for tables below the caption.