我正在使用fauthesis.cls
撰写我的论文。我在跨页面拆分子图时遇到问题,因为我似乎无法使用该\subcaption
选项。我收到错误消息”
! 包 subcaption 错误:此包不能与 subfigure 包配合使用 (subcaption)。
我找到了另一个不会出现错误的选项,但是子图不会跨页面拆分。您能告诉我如何跨页面拆分子图吗?fauthesis.cls
?
以下是我的不会破坏子图的代码:
\documentclass[phd, 12pt, print]{fauthesis}
\title{Excellent Title}
\author{The Boss Man}
\gender{M}
\graduation{December}{2022}
\department{Fire}
\college{College of Super Heros}
\chair{Dr. Who That}
\dean{Dr. Who That}
\deantitle{Dean}
\dgc{Robin Jr.}[Ph.D.]
\advisor{Super Man}
\supervisor{Spider Man}
\supervisor{Bat Man}
\supervisor{Aqua Man}
\signaturepush{-2.0} % Increase or decrease the vertical gap between committee and administration signatures
%======================================================================================
% ADDITIONS
%======================================================================================
% For Tables
\usepackage[table]{xcolor}
%\usepackage{longtable}
\usepackage{bigstrut}
\usepackage{graphicx}
\graphicspath{{Figures/}}
\usepackage{eso-pic}
\usepackage{amsmath,amssymb,amsfonts,bm,mathtools}
%#################### FOR FIGURES ################
\usepackage{subfigure}
%\usepackage{subcaption}
%\captionsetup{compatibility=false}
\usepackage{booktabs}
\begin{document}
\mainmatter
\begin{figure}
\centering %%% not \center
\subfigure[Figure A]{\label{fig:a}\includegraphics[width=60mm]{example-image-a}}
\subfigure[Figure B]{\label{fig:b}\includegraphics[width=60mm]{example-image-b}}
\subfigure[Figure C]{\label{fig:c}\includegraphics[width=60mm]{example-image-a}}
\subfigure[Figure D]{\label{fig:d}\includegraphics[width=60mm]{example-image-b}}
\subfigure[Figure E]{\label{fig:e}\includegraphics[width=60mm]{example-image-b}}
\subfigure[Figure F]{\label{fig:f}\includegraphics[width=60mm]{example-image-b}}
\subfigure[Figure G]{\label{fig:g}\includegraphics[width=60mm]{example-image-b}}
\subfigure[Figure H]{\label{fig:h}\includegraphics[width=60mm]{example-image-b}}
\subfigure[Figure I]{\label{fig:i}\includegraphics[width=60mm]{example-image-b}}
\subfigure[Figure J]{\label{fig:j}\includegraphics[width=60mm]{example-image-b}}
\caption{my caption}
\end{figure}
\end{document}
注意:但是使用此选项,我会丢失标题的格式设置发现于fauthesis.cls
从第 1377 行找到:
%%% Caption Formatting
%
% This modifies the default LaTeX format for figure and table captions.
% Single-line captions are set centered under the figure.
% Multi-line captions are set centered in a paragraph of width \capwidth.
%
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{\small{\bfseries #1\/}: #2}%
\ifdim \wd\@tempboxa > \capwidth
\@tempdima=\textwidth%
\advance\@tempdima by -\capwidth%
\advance\leftskip by 0.5\@tempdima%
\advance\rightskip by 0.5\@tempdima%
\singlespacing
{\bfseries #1\/}: #2\par
\else
\hbox to\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
%
% The default \capwidth is 80% of the \textwidth.
%
\newlength{\capwidth}
\setlength{\capwidth}{0.8\textwidth}
如何使用该subcaption
选项维护这种格式,或者是否有更简单的方法可以使用该选项在页面之间拆分子图fauthesis.cls
?
提前感谢您的帮助和时间!