我有一个设置为横向的标准 Latex 表,我用\begin{tablenotes}
和注释\end{tablenotes}
(我也使用\justify
)。如何使表格和表格注释具有相同的宽度(即注释从表格左侧开始,在表格右侧结束),以便整个表格在纵向页面上看起来很漂亮?
\begin{landscape}
\begin{center}
\begin{table}[!ht]
\caption{}
\justifying
\begin{tablenotes}
\justify Text
\end{tablenotes}
\par
\begin{tabular}{lcc}
\end{tabular}
\end{table}
\end{center}
\end{landscape}
答案1
尝试在此 MWE 基础上构建\threeparttable
:
\documentclass[12pt]{article}
\usepackage{pdflscape}
\usepackage[flushleft]{threeparttable}
\usepackage{booktabs}
\begin{document}
\begin{landscape}
\begin{table}[ht]
\caption{Sample Table}
\label{tab:tlabel}
\centering{}
\begin{threeparttable}
\begin{tabular}{lcccclcccc}
\toprule
this & is & a & really & wide & table & and & is & oriented & landscape \\
some numbers go here: & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\
\bottomrule
\end{tabular}
Note: Table notes go here and should be the same width as the landscape-oriented table. \texttt{\textbackslash threeparttable} is the best!
\end{threeparttable}
\end{table}
\end{landscape}
\end{document}