我一直在使用 endfloat 包将图表放在论文末尾。此外,我还使用 subfloat 包中的 subtables 环境对一些表格进行子编号,例如表 1a 和表 1b。但是,只要我使用 endfloat 包,表格的子编号就会失败。例如,在下面的 MWE 中,只有两个表格。使用 endfloat 包,放在论文末尾的表格从表 2 和表 3 开始(甚至不是从表 1 开始?)。在文本中,标记显示 [表 1 在此处。] 和 [表 2 在此处。] 相反,如果我关闭 endfloat,一切都会顺利进行。有人知道如何使用 endfloat 使子编号仍然有效吗?提前感谢您的回答。
\documentclass[12pt, a4paper]{article}
\usepackage{eurosym,geometry, pdflscape,booktabs,,subfloat, lipsum}
\usepackage[notablist, nofiglist]{endfloat}
\geometry{left=1.0in,right=1.0in,top=1.0in,bottom=1.0in}
\begin{document}
\lipsum[1-15]
\begin{subtables}
\begin{table}[ht]
\small
\centering
\caption{Effects of privatization on general performances 1}\label{perform1}
\begin{tabular}{lccccc} \toprule\midrule
Privatization year & -0.001 & 0.006 & & -0.026 & -0.028\*\* \\
& (0.018) & (0.012) & & (0.019) & (0.014) \\
One year after & -0.108\*\*\* & -0.114\*\*\* & & -0.103\*\*\* & -0.107\*\*\* \\
& (0.017) & (0.014) & & (0.018) & (0.015) \\
Two years after & -0.146\*\*\* & -0.144\*\*\* & & -0.152\*\*\* & -0.162\*\*\* \\
& (0.013) & (0.016) & & (0.016) & (0.017) \\
Three years after & -0.155\*\*\* & -0.156\*\*\* & & -0.126\*\*\* & -0.125\*\*\* \\
& (0.017) & (0.018) & & (0.015) & (0.019) \\
\bottomrule
\end{tabular}
\end{table}
\begin{table}[ht]
\centering
\caption{Effects of privatization on general performances 2}\label{perform2}
\begin{tabular}{lccccc} \toprule\midrule
Privatization year & -0.007 & -0.022\*\* & & 0.004 & -0.028\*\* \\
& (0.017) & (0.010) & & (0.019) & (0.013) \\
One year after & -0.043\*\*\* & -0.069\*\*\* & & -0.032\* & -0.066\*\*\* \\
& (0.015) & (0.011) & & (0.018) & (0.015) \\
Two years after & -0.079\*\*\* & -0.113\*\*\* & & -0.058\*\*\* & -0.088\*\*\* \\
& (0.014) & (0.012) & & (0.022) & (0.016) \\
Three years after & -0.077\*\*\* & -0.094\*\*\* & & -0.066\*\*\* & -0.097\*\*\* \\
& (0.013) & (0.013) & & (0.015) & (0.016) \\
\bottomrule
\end{tabular}
\end{table}
\end{subtables}
\lipsum[16-20]
\processdelayedfloats
\lipsum[21-22]
\end{document}
答案1
这不是一个完美的解决方案,但至少它会将表作为子表(而不是常规表)移动到最后:
\DeclareDelayedFloatFlavor{subtables}{table}
完整文档:
\documentclass[12pt, a4paper]{article}
\usepackage{eurosym,geometry, pdflscape,booktabs,,subfloat, lipsum}
\usepackage[notablist, nofiglist]{endfloat}
\geometry{left=1.0in,right=1.0in,top=1.0in,bottom=1.0in}
\DeclareDelayedFloatFlavor{subtables}{table}
\begin{document}
\lipsum[1-15]
\begin{subtables}
\begin{table}[ht]
\small
\centering
\caption{Effects of privatization on general performances 1}\label{perform1}
\begin{tabular}{lccccc} \toprule\midrule
Privatization year & -0.001 & 0.006 & & -0.026 & -0.028\*\* \\
& (0.018) & (0.012) & & (0.019) & (0.014) \\
One year after & -0.108\*\*\* & -0.114\*\*\* & & -0.103\*\*\* & -0.107\*\*\* \\
& (0.017) & (0.014) & & (0.018) & (0.015) \\
Two years after & -0.146\*\*\* & -0.144\*\*\* & & -0.152\*\*\* & -0.162\*\*\* \\
& (0.013) & (0.016) & & (0.016) & (0.017) \\
Three years after & -0.155\*\*\* & -0.156\*\*\* & & -0.126\*\*\* & -0.125\*\*\* \\
& (0.017) & (0.018) & & (0.015) & (0.019) \\
\bottomrule
\end{tabular}
\end{table}
\begin{table}[ht]
\centering
\caption{Effects of privatization on general performances 2}\label{perform2}
\begin{tabular}{lccccc} \toprule\midrule
Privatization year & -0.007 & -0.022\*\* & & 0.004 & -0.028\*\* \\
& (0.017) & (0.010) & & (0.019) & (0.013) \\
One year after & -0.043\*\*\* & -0.069\*\*\* & & -0.032\* & -0.066\*\*\* \\
& (0.015) & (0.011) & & (0.018) & (0.015) \\
Two years after & -0.079\*\*\* & -0.113\*\*\* & & -0.058\*\*\* & -0.088\*\*\* \\
& (0.014) & (0.012) & & (0.022) & (0.016) \\
Three years after & -0.077\*\*\* & -0.094\*\*\* & & -0.066\*\*\* & -0.097\*\*\* \\
& (0.013) & (0.013) & & (0.015) & (0.016) \\
\bottomrule
\end{tabular}
\end{table}
\end{subtables}
\lipsum[16-20]
\processdelayedfloats
\lipsum[21-22]
\end{document}