我的表格出现在附录标题之前,位于页面顶部。我尝试使用各种命令,例如 [H]、[H!]、[hbt!] 等,但它并没有移动我的表格。这里可能与软件包有冲突吗?
我的文档底部如下所示:
\printcredits
\bibliographystyle{unsrtnat}
% Loading bibliography database
\bibliography{mybibliography}
\newpage
\appendix
\section{Appendix}
\begin{table*}[h]
\caption{Average peer effect - Pre-COVID sample.}
\begin{center}
\begin{footnotesize}
\begin{tabular}{l D{)}{)}{10)3} D{)}{)}{10)3} D{)}{)}{11)3} D{)}{)}{11)3}}
\hline
& \multicolumn{1}{c}{Model 1} & \multicolumn{1}{c}{Model 2} & \multicolumn{1}{c}{Model 3} & \multicolumn{1}{c}{Model 4} \\
\hline
\hline
\end{tabular}
\begin{tablenotes}
\begin{footnotesize}
\item \textit{Notes:} The table reports results of a logistic regression, explaining the probability for a dwelling to adopt a retrofit measure. 0-50 meters is a dummy variable for location between 0 and 50 meters from the nearest block leader; other distance variables are defined correspondingly (The reference category is a distance larger than 500 meters). Standard errors (clustered at community level) are in parentheses. *,**,*** indicate statistical significance at the 10\%, 5\% and 1\% level respectively.
\end{footnotesize}
\end{tablenotes}
\end{footnotesize}
\end{center}
\end{table*}
\end{document}
我使用的软件包:
\documentclass[a4paper,fleqn]{cas-dc}
% If the frontmatter runs over more than one page
% use the longmktitle option.
%\documentclass[a4paper,fleqn,longmktitle]{cas-sc}
%\usepackage[numbers]{natbib}
%\usepackage[authoryear]{natbib}
\usepackage[numbers]{natbib}
%\usepackage[hypcap=true]{hyperref}
\usepackage{threeparttable}
\usepackage{tabularx}
\usepackage{float}
\usepackage{placeins}
\usepackage{appendix}
\usepackage[final]{changes}
答案1
我对 cas-dc 类不熟悉,也懒得下载,所以就用 article 代替。另外,我也放弃了 tabular 本身。
这会将两者\section
和表格放在里面\twocolumn[...]
,使其具有全宽并按正确的顺序排列。
\documentclass[a4paper,fleqn,twocolumn]{article}
\usepackage{threeparttable}
\usepackage{appendix}
\usepackage{caption}
\usepackage{lipsum}% random text
\begin{document}
\tableofcontents
\listoftables
\appendix
\twocolumn[\section{Appendix}
\captionof{table}{Average peer effect - Pre-COVID sample.}
\begin{tablenotes}
\footnotesize
\item \textit{Notes:} The table reports results of a logistic regression, explaining the probability for a dwelling to adopt a retrofit measure. 0-50 meters is a dummy variable for location between 0 and 50 meters from the nearest block leader; other distance variables are defined correspondingly (The reference category is a distance larger than 500 meters). Standard errors (clustered at community level) are in parentheses. *,**,*** indicate statistical significance at the 10\%, 5\% and 1\% level respectively.
\end{tablenotes}
\vspace{\textfloatsep}]
\lipsum[1-6]
\end{document}