附錄前出現的表格

附錄前出現的表格

我的表格出現在頁面頂部的附錄標題之前。我嘗試使用各種命令,例如 [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來代替。另外,我放棄了表格本身。

這會將\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}

相關內容