我的大学推荐了一门基于报告类的论文课程。不幸的是,它与 caption 包不兼容;例如,当我包含 subcaption 包时,我收到以下错误:“包标题警告:检测到不支持的文档类(或包)”
在搜索了这里和其他地方后,我认为问题可能是类文件中的 \@makecaption 命令。我没有足够的经验来了解它在做什么或如何修复它。可以修复此命令以与 caption 包兼容吗?任何帮助都将不胜感激。
makecaption 命令是:
\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}
在它之前有如下评论:
% 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.