我正在使用 lscape 包插入横向表格,但我得到的表格与其标题不对齐(见图)。此外,我想将表格放在页面的中心,而不是底部。
有任何想法吗?
感谢您的帮助!
\begin{landscape}
\begin{table}[tb]
\caption{Effect of Neighbors and Siblings}
\label{table_quality}
\resizebox{0.85\linewidth}{!}{
\begin{threeparttable}
\begin{tabular}{lcccccc}
TABLE CONTENT
\end{tabular}
\begin{tablenotes}
\item \emph{Notes:}
\end{tablenotes}
\end{threeparttable}
}
\end{table}
\end{landscape}
答案1
\centering
在环境中添加一个table
就足够了。MWE:
\documentclass[12pt]{report}
\usepackage[a4paper,margin=3cm]{geometry}
\usepackage{lscape}
\usepackage{booktabs}
\usepackage{threeparttable}
\begin{document}
\begin{landscape}
\begin{table}[tb]
\centering
\caption{Effect of Neighbors and Siblings}
\label{table_quality}
\begin{threeparttable}
\begin{tabular}{l*{6}{c}}
\toprule
B & \multicolumn{6}{c}{TABLE CONTENT\tnote{a}} \\
\midrule
A & Blah blah& Blah blah& Blah blah& Blah blah& Blah blah& Blah blah\\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item a : A note
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{landscape}
\end{document}