请参阅下文,了解我使用的代码及其生成的表格。我如何更改表格下方的文本(即注释),使其不严格位于表格下方,而是延伸得更多?它最多可以是两行,而现在由于表格下方居中,它需要 4 行...
\begin{table}
\centering
\begin{threeparttable}
\caption{standardised factor loadings for the 5-item models for Motivation}
\label{cross5items}
\begin{tabular}{c c c c c}
\toprule
& time 0 & time 1 & time 3 & time 4 \\
\midrule
$\lambda_1$ & 0.678 & 0.692 & 0.688 & 0.685 \\
$\lambda_3$ & 0.499 & 0.516 & 0.610 & 0.573 \\
$\lambda_4$ & 0.730 & 0.775 & 0.697 & 0.744 \\
$\lambda_5$ & 0.442 & 0.510 & 0.506 & 0.655 \\
$\lambda_6$ & 0.876 & 0.781 & 0.856 & 0.828\\
\bottomrule
\end{tabular}
\begin{tablenotes}
\small
\item $\lambda_k$ is the standardised factor loading of item $k$, with the standard error in brackets. All factor loadings were highly significant: $p_{MLR}$ and $p_{MLE}$ <.001.
\end{tablenotes}
\end{threeparttable}
\end{table}
答案1
如果您不需要(或不想!)将tabular
环境下方的图例限制在 的宽度内tabular
,您可以将图例放在环境之外threeparttable
,或者完全摆脱threeparttable
机械。
\documentclass{article}
\usepackage{amsmath,booktabs,ragged2e}
\usepackage[flushleft]{threeparttable}
\begin{document}
%% first, the original table
\begin{table}
\centering
\begin{threeparttable}[ht]
\caption{with \texttt{threeparttable}}
\label{tab:a}
\begin{tabular}{@{} ccccc @{}}
\toprule
& time 0 & time 1 & time 3 & time 4 \\
\midrule
$\lambda_1$ & 0.678 & 0.692 & 0.688 & 0.685 \\
$\lambda_3$ & 0.499 & 0.516 & 0.610 & 0.573 \\
$\lambda_4$ & 0.730 & 0.775 & 0.697 & 0.744 \\
$\lambda_5$ & 0.442 & 0.510 & 0.506 & 0.655 \\
$\lambda_6$ & 0.876 & 0.781 & 0.856 & 0.828 \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\small
\item[]$\lambda_k$ is the standardised factor loading of item $k$,
with the standard error in brackets. All factor loadings were highly
significant: $p_{\textrm{MLR}}$ and $p_{\textrm{MLE}} <.001$.
\end{tablenotes}
\end{threeparttable}
\end{table}
%% next, a solution without a 'tablenotes' environment.
\begin{table}
\centering
\begin{threeparttable}[ht]
\caption{without \texttt{tablenotes}}
\label{tab:b}
\begin{tabular}{@{} ccccc @{}}
\toprule
& time 0 & time 1 & time 3 & time 4 \\
\midrule
$\lambda_1$ & 0.678 & 0.692 & 0.688 & 0.685 \\
$\lambda_3$ & 0.499 & 0.516 & 0.610 & 0.573 \\
$\lambda_4$ & 0.730 & 0.775 & 0.697 & 0.744 \\
$\lambda_5$ & 0.442 & 0.510 & 0.506 & 0.655 \\
$\lambda_6$ & 0.876 & 0.781 & 0.856 & 0.828 \\
\bottomrule
\end{tabular}
\end{threeparttable}% important to leave a blank line next:
\smallskip
\justifying
\small
\noindent
$\lambda_k$ is the standardised factor loading of item $k$, with the
standard error in brackets. All factor loadings were highly significant:
$p_{\textrm{MLR}}$ and $p_{\textrm{MLE}} <.001$.
\end{table}
%% finally, a solution that doesn't employ any part of the `threeparttable` machinery
\begin{table}[h]
\centering
% \smallskip % optional
\caption{without \texttt{threeparttable}}
\label{tab:c}
\begin{tabular}{@{} ccccc @{}}
\toprule
& time 0 & time 1 & time 3 & time 4 \\
\midrule
$\lambda_1$ & 0.678 & 0.692 & 0.688 & 0.685 \\
$\lambda_3$ & 0.499 & 0.516 & 0.610 & 0.573 \\
$\lambda_4$ & 0.730 & 0.775 & 0.697 & 0.744 \\
$\lambda_5$ & 0.442 & 0.510 & 0.506 & 0.655 \\
$\lambda_6$ & 0.876 & 0.781 & 0.856 & 0.828 \\
\bottomrule
\end{tabular}
\smallskip
\justifying
\small
\noindent
$\lambda_k$ is the standardised factor loading of item $k$, with the
standard error in brackets. All factor loadings were highly significant:
$p_{\textrm{MLR}}$ and $p_{\textrm{MLE}}<.001$.
\end{table}
\end{document}