![表格注释和标题的宽度(threeparttable)](https://linux22.com/image/367353/%E8%A1%A8%E6%A0%BC%E6%B3%A8%E9%87%8A%E5%92%8C%E6%A0%87%E9%A2%98%E7%9A%84%E5%AE%BD%E5%BA%A6%EF%BC%88threeparttable%EF%BC%89.png)
\tablenotes
您能帮我调整这个 MWE 中的和的宽度\caption
吗?我希望两者都占整个页面,而不仅仅是和表格一样宽。
\documentclass{apa6}
\begin{document}
\begin{table}[htbp]
\begin{threeparttable}
\caption{{Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore}}
\label{tab:KorrelationenBilder}
\begin{tabular}{@{}llrrr@{}}
% \toprule
& & \multicolumn{3}{c}{Pupillenweite} \\
& & Gesamt & Neutral & Negativ\\ \midrule
Freie Wiedergabe Tag 1 & & && \\
\midrule
& Gesamt & .000 & -.112 & .096 \\
\midrule
& Neutral & -.146 & -.192 & -.070 \\
\midrule
& Negativ & .086 & -.042 & .172 \\
\midrule
Freie Wiedergabe Tag 2 & & && \\
\midrule
& Gesamt & -.135 & -.223 & -.036 \\
\midrule
& Neutral &-.286 & -.293 & -.219 \\
\midrule
& Negativ & -.013 & -.136 & .087 \\
\midrule
Wiedererkennen Tag 2 & & && \\
\midrule
& Gesamt & -.201 & -.295 & -.079 \\
\midrule
& Neutral & -.179 & -.252 & -.082 \\
\midrule
& Negativ & -.182 & -.280 & -.059 \\
\midrule
\end{tabular}
\begin{tablenotes}[para,flushleft]
{\small
\textit{Anmerkungen.} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore
}
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
答案1
像这样?
\documentclass{apa6}
\begin{document}
\begin{table}[htbp]
\caption{{Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore}}
\label{tab:KorrelationenBilder}
\centering
\begin{threeparttable}
\begin{tabular}{@{}llrrr@{}}
% \toprule
& & \multicolumn{3}{c}{Pupillenweite} \\
& & Gesamt & Neutral & Negativ\\ \midrule
Freie Wiedergabe Tag 1 & & && \\
\midrule
& Gesamt & .000 & -.112 & .096 \\
\midrule
& Neutral & -.146 & -.192 & -.070 \\
\midrule
& Negativ & .086 & -.042 & .172 \\
\midrule
Freie Wiedergabe Tag 2 & & && \\
\midrule
& Gesamt & -.135 & -.223 & -.036 \\
\midrule
& Neutral &-.286 & -.293 & -.219 \\
\midrule
& Negativ & -.013 & -.136 & .087 \\
\midrule
Wiedererkennen Tag 2 & & && \\
\midrule
& Gesamt & -.201 & -.295 & -.079 \\
\midrule
& Neutral & -.179 & -.252 & -.082 \\
\midrule
& Negativ & -.182 & -.280 & -.059 \\
\midrule
\end{tabular}
\end{threeparttable}
\begin{minipage}{\linewidth}\small
\textit{Anmerkungen.} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore
\end{minipage}
\end{table}
\end{document}
附录:
我想知道threeparttable
如果你不喜欢它的功能你为什么还要使用它。依我的口味,你在表格中也有很多规则。使用siunitx
你的数字将在数学模式下设置:
\documentclass{apa6}
\usepackage{siunitx}
\begin{document}
\begin{table}[htbp]
\caption{Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore}
\label{tab:KorrelationenBilder}
\centering
\begin{tabular}{ll*{3}{S[table-format=-1.3]}}
\toprule
& & \multicolumn{3}{c}{Pupillenweite} \\
\cmidrule(lr){3-5}
& & {Gesamt} & {Neutral} & {Negativ} \\
\midrule
Freie Wiedergabe Tag 1 & & & & \\
% \midrule
& Gesamt & .000 & -.112 & .096 \\
& Neutral & -.146 & -.192 & -.070 \\
& Negativ & .086 & -.042 & .172 \\
\midrule
Freie Wiedergabe Tag 2 & & & & \\
% \midrule
& Gesamt & -.135 & -.223 & -.036 \\
& Neutral & -.286 & -.293 & -.219 \\
& Negativ & -.013 & -.136 & .087 \\
\midrule
Wiedererkennen Tag 3 & & & & \\
% \midrule
& Gesamt & -.201 & -.295 & -.079 \\
& Neutral & -.179 & -.252 & -.082 \\
& Negativ & -.182 & -.280 & -.059 \\
\bottomrule
\end{tabular}
\smallskip
\begin{minipage}{\linewidth}\small
\textit{Anmerkungen.} Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore
\end{minipage}
\end{table}
\end{document}