我正在尝试创建一个由多个相对较大子表组成的表格,这些子表跨越几页长。由于每个子表都应该有自己的描述性子标题,并且根据要制表的数据可以有不同的列,我能想到的最佳方法是使用 capt-of 包在每一页上重复主标题,并使用计数器对每个表格进行正确编号。(参见下面的示例。)当然,这会在表格列表中为表格提供多个条目。我知道解决这个问题的正常方法是使用 captionsetup 命令,但这需要我导入 caption 包,而这无法与我需要使用的基于回忆录的模板很好地配合使用。有人知道如何解决这个问题吗?
\documentclass[a4paper]{memoir}
\usepackage{capt-of}
\usepackage{multirow}
\newsubfloat{table}
\begin{document}
\listoftables
\pagebreak
\section{Section 1}
\begin{center}
\begin{vplace}
\makebox[\textwidth]{
\begin{minipage}[c]{2\textwidth}
\centering
\captionof{table}{Benchmark test on wavy bowl function, difficulty 10.\label{tab:benchWavyBowld10}}
\subtop[Benchmark methods]{
\begin{tabular}{l*{6}{|c}}
\multirow{2}{*}{Method} & Avg. fevals & Avg. fevals & \multirow{2}{*}{Succ. Rate.} & \multirow{2}{*}{Best min.} & \multirow{2}{*}{Avg. min.} & \multirow{2}{*}{Worst min.}\\
& (pre) & (post) & & & & \\
\hline
\hline
Steepest Descent & 1314 & 1197 & 8\% & 0.7651 & 30.15 & 156.6\\
BFGS & 696 & 935 & 4\% & 0.7651 & 49.20 & 275.3\\
CG & 1297 & 1453 & 4\% & 0.7651 & 64.83 & 196.2\\
\end{tabular}}
\subtop[Tunneling method with 100 iterations]{
\begin{tabular}{l*{8}{|c}}
\multirow{2}{*}{$\beta$} & \multirow{2}{*}{$m$} & \multirow{2}{*}{$R$} & Avg. fevals & Avg. fevals & \multirow{2}{*}{Succ. Rate.} & \multirow{2}{*}{Best min.} & \multirow{2}{*}{Avg. min.} & \multirow{2}{*}{Worst min.}\\
& & & (pre) & (post) & & & & \\
\hline
\hline
\multirow{9}{*}{1} & \multirow{3}{*}{0.01} & 0.5 & 311 & 311 & 7\% & 0.7651 & 37.38 & 147.2\\
& & 1 & 312 & 320 & 6\% & 0.7651 & 38.24 & 147.2\\
& & 5 & 313 & 322 & 6\% & 0.7651 & 39.95 & 147.2\\
\cline{2-9}
& \multirow{3}{*}{0.1} & 0.5 & 305 & 307 & 7\% & 0.7651 & 32.04 & 168.7\\
& & 1 & 306 & 300 & 6\% & 0.7651 & 31.89 & 168.6\\
& & 5 & 307 & 300 & 6\% & 0.7651 & 32.10 & 168.6\\
\cline{2-9}
& \multirow{3}{*}{1} & 0.5 & 304 & 312 & 9\% & 0.7651 & 43.67 & 174.9\\
& & 1 & 304 & 309 & 9\% & 0.7651 & 42.15 & 174.9\\
& & 5 & 304 & 310 & 9\% & 0.7651 & 42.00 & 174.9\\
\cline{1-9}
\multirow{9}{*}{1.2} & \multirow{3}{*}{0.01} & 0.5 & 311 & 315 & 6\% & 0.7651 & 38.45 & 147.2\\
& & 1 & 312 & 320 & 6\% & 0.7651 & 39.12 & 147.2\\
& & 5 & 313 & 322 & 6\% & 0.7651 & 39.95 & 147.2\\
\cline{2-9}
& \multirow{3}{*}{0.1} & 0.5 & 305 & 307 & 7\% & 0.7651 & 31.95 & 168.6\\
& & 1 & 306 & 300 & 6\% & 0.7651 & 31.92 & 168.6\\
& & 5 & 307 & 300 & 6\% & 0.7651 & 32.10 & 168.6\\
\cline{2-9}
& \multirow{3}{*}{1} & 0.5 & 303 & 313 & 7\% & 0.7651 & 44.77 & 174.9\\
& & 1 & 304 & 309 & 9\% & 0.7651 & 42.51 & 174.9\\
& & 5 & 304 & 310 & 9\% & 0.7651 & 42.00 & 174.9\\
\cline{1-9}
\multirow{9}{*}{1.5} & \multirow{3}{*}{0.01} & 0.5 & 310 & 315 & 6\% & 0.7651 & 40.47 & 147.2\\
& & 1 & 311 & 320 & 6\% & 0.7651 & 39.95 & 147.2\\
& & 5 & 313 & 322 & 6\% & 0.7651 & 39.95 & 147.2\\
\cline{2-9}
& \multirow{3}{*}{0.1} & 0.5 & 305 & 304 & 7\% & 0.7651 & 32.34 & 168.7\\
& & 1 & 305 & 300 & 6\% & 0.7651 & 32.47 & 168.6\\
& & 5 & 307 & 300 & 6\% & 0.7651 & 32.10 & 168.6\\
\cline{2-9}
& \multirow{3}{*}{1} & 0.5 & 303 & 312 & 7\% & 0.7651 & 44.80 & 174.9\\
& & 1 & 304 & 308 & 9\% & 0.7651 & 42.42 & 174.9\\
& & 5 & 304 & 310 & 9\% & 0.7651 & 42.00 & 174.9\\
\hline
\end{tabular}}
\end{minipage}}
\end{vplace}
\end{center}
\addtocounter{table}{-1}
\pagebreak
\begin{center}
\begin{vplace}
\makebox[\textwidth]{
\begin{minipage}[c]{2\textwidth}
\centering
\captionof{table}{Benchmark test on wavy bowl function, difficulty 10.}
\addtocounter{subtable}{2}
\subtop[Tunneling method with 500 iterations]{
\begin{tabular}{l*{8}{|c}}
\multirow{2}{*}{$\beta$} & \multirow{2}{*}{$m$} & \multirow{2}{*}{$R$} & Avg. fevals & Avg. fevals & \multirow{2}{*}{Succ. Rate.} & \multirow{2}{*}{Best min.} & \multirow{2}{*}{Avg. min.} & \multirow{2}{*}{Worst min.}\\
& & & (pre) & (post) & & & & \\
\hline
\hline
\multirow{9}{*}{1} & \multirow{3}{*}{0.01} & 0.5 & 311 & 311 & 7\% & 0.7651 & 37.38 & 147.2\\
& & 1 & 312 & 320 & 6\% & 0.7651 & 38.24 & 147.2\\
& & 5 & 313 & 322 & 6\% & 0.7651 & 39.95 & 147.2\\
\cline{2-9}
& \multirow{3}{*}{0.1} & 0.5 & 305 & 307 & 7\% & 0.7651 & 32.04 & 168.7\\
& & 1 & 306 & 300 & 6\% & 0.7651 & 31.89 & 168.6\\
& & 5 & 307 & 300 & 6\% & 0.7651 & 32.10 & 168.6\\
\cline{2-9}
& \multirow{3}{*}{1} & 0.5 & 304 & 312 & 9\% & 0.7651 & 43.67 & 174.9\\
& & 1 & 304 & 309 & 9\% & 0.7651 & 42.15 & 174.9\\
& & 5 & 304 & 310 & 9\% & 0.7651 & 42.00 & 174.9\\
\cline{1-9}
\multirow{9}{*}{1.2} & \multirow{3}{*}{0.01} & 0.5 & 311 & 315 & 6\% & 0.7651 & 38.45 & 147.2\\
& & 1 & 312 & 320 & 6\% & 0.7651 & 39.12 & 147.2\\
& & 5 & 313 & 322 & 6\% & 0.7651 & 39.95 & 147.2\\
\cline{2-9}
& \multirow{3}{*}{0.1} & 0.5 & 305 & 307 & 7\% & 0.7651 & 31.95 & 168.6\\
& & 1 & 306 & 300 & 6\% & 0.7651 & 31.92 & 168.6\\
& & 5 & 307 & 300 & 6\% & 0.7651 & 32.10 & 168.6\\
\cline{2-9}
& \multirow{3}{*}{1} & 0.5 & 303 & 313 & 7\% & 0.7651 & 44.77 & 174.9\\
& & 1 & 304 & 309 & 9\% & 0.7651 & 42.51 & 174.9\\
& & 5 & 304 & 310 & 9\% & 0.7651 & 42.00 & 174.9\\
\cline{1-9}
\multirow{9}{*}{1.5} & \multirow{3}{*}{0.01} & 0.5 & 310 & 315 & 6\% & 0.7651 & 40.47 & 147.2\\
& & 1 & 311 & 320 & 6\% & 0.7651 & 39.95 & 147.2\\
& & 5 & 313 & 322 & 6\% & 0.7651 & 39.95 & 147.2\\
\cline{2-9}
& \multirow{3}{*}{0.1} & 0.5 & 305 & 304 & 7\% & 0.7651 & 32.34 & 168.7\\
& & 1 & 305 & 300 & 6\% & 0.7651 & 32.47 & 168.6\\
& & 5 & 307 & 300 & 6\% & 0.7651 & 32.10 & 168.6\\
\cline{2-9}
& \multirow{3}{*}{1} & 0.5 & 303 & 312 & 7\% & 0.7651 & 44.80 & 174.9\\
& & 1 & 304 & 308 & 9\% & 0.7651 & 42.42 & 174.9\\
& & 5 & 304 & 310 & 9\% & 0.7651 & 42.00 & 174.9\\
\hline
\end{tabular}}
\end{minipage}}
\end{vplace}
\end{center}
\end{document}
答案1
只需添加
\renewcommand\addcontentsline[3]{}
在重复字幕之前本地禁用此功能。