我的表格很窄,下面有表格注释,看起来不太好。我需要将注释扩展到页面的宽度。我在此发布我当前的代码。任何帮助都非常感谢。
查纳
\begin{table}[]
\centering
\caption{Percentage (\%) ghdghgh}
\label{tab:si}%
\begin{threeparttable}
\begin{tabular}{|l|dd|}
\cmidrule{1-3}
\multicolumn{3}{c}{(1)} \\
\cmidrule{1-3} \multicolumn{1}{r}{} & \multicolumn{1}{c}{Small} & \multicolumn{1}{c}{Big} \\
\midrule
\vspace{2mm}
L & 0.1952 & 0.2310 \\
I & 0.6652 & 0.0807 \\
\midrule
IL & 0.4699^{*} & -0.1503 \\
t-stat & (1.8508) & -(0.5168) \\
\midrule
\multicolumn{3}{c}{} \\
\cmidrule{1-3}
\multicolumn{3}{c}{(2)} \\
\cmidrule{1-3}
\multicolumn{1}{r}{} & \multicolumn{1}{c}{L} & \multicolumn{1}{c}{I} \\
\midrule
\vspace{2mm}
Small & 0.2433 & 0.5535 \\
Big & 0.2428 & 0.1746 \\
\midrule
SMB & 0.0005 & 0.3789^{**} \\
t-stat & (0.0029) & (2.2308) \\
\bottomrule
\end{tabular}%
\begin{tablenotes}
\scriptsize
Note: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.
\end{tablenotes}
\end{threeparttable}
\end{table}%
答案1
一种方法是将您的长注释放在minipage
下表中:
由于缺乏有关您的文档的信息,我从头开始编写了自己的文档。因此,我可能与您的文档有很大不同:
\documentclass{article}
\usepackage{booktabs, threeparttable}
%\renewcommand{\tnote}[1]{\textsuperscript{\textbf{[#1]}}}
\usepackage{siunitx}
\usepackage{lipsum}
\begin{document}
\lipsum[11]
%
\begin{table}[htb]
\centering
\caption{Percentage (\%) ghdghgh}
\label{tab:si}%
\begin{threeparttable}
\begin{tabular}{ l
*{2}{S[input-symbols = {(- )},
table-space-text-pre={(},
table-space-text-post ={**},
table-format=-1.4]}
}
\toprule
\multicolumn{3}{c}{(1)} \\
\midrule
& {Small} & {Big} \\
\midrule
L & 0.1952 & 0.2310 \\
I & 0.6652 & 0.0807 \\
\addlinespace
IL & 0.4699\tnote{*} & -0.1503 \\
t-stat & (1.8508) & -(0.5168) \\
\midrule & & \\
\multicolumn{3}{c}{(2)} \\
\midrule
& {L} & {I} \\
\midrule
Small & 0.2433 & 0.5535 \\
Big & 0.2428 & 0.1746 \\
\addlinespace
SMB & 0.0005 & 0.3789\tnote{**} \\
t-stat & (0.0029) & (2.2308) \\
\bottomrule
\end{tabular}%
\begin{tablenotes}[para, flushleft]\footnotesize
\item[*] some explanation
\item[**] some explanation
\end{tablenotes}
\end{threeparttable}
\medskip
\begin{minipage}{\linewidth}\footnotesize
Note: \lipsum*[1]
\end{minipage}
\end{table}
%
\lipsum[11]
\end{document}
我想到另一个解决方案是将您的表格分成两部分并并行写入:
要并行设置 split ,tabular
必须将它们封装到\tabular
环境中(否则threeparttable
不允许它们并行)。提供了 with 宏[referable]{threeparttablex}
(其中包括):\note
tablenotes
\documentclass{article}
\usepackage[skip=1ex]{caption}% <--- added
\usepackage{booktabs, threeparttable}
\usepackage[referable]{threeparttablex}% <--- added
\renewcommand{\tnote}[1]{\textsuperscript{\textbf{#1}}}% <--- added
\usepackage{siunitx}
\usepackage{lipsum}
\begin{document}
\lipsum[11]
%
\begin{table}[htb]
\centering
\begin{threeparttable}
\caption{Percentage (\%) ghdghgh}% <--- moved here
\label{tab:si}%
\begin{tabular}{@{} c @{}}% <--- added tabular
\begin{tabular}{ l
*{2}{S[input-symbols = {(- )},
table-space-text-pre={(},
table-space-text-post ={**},
table-format=-1.4]}
}% <--- first part of table
\toprule
\multicolumn{3}{c}{(1)} \\
\cmidrule(lr){1-3}
& {Small} & {Big} \\
\midrule
L & 0.1952 & 0.2310 \\
I & 0.6652 & 0.0807 \\
\addlinespace
IL & 0.4699\tnote{*} & -0.1503 \\
t-stat & (1.8508) & -(0.5168) \\
\bottomrule
\end{tabular}%
\begin{tabular}{ l
*{2}{S[input-symbols = {(- )},
table-space-text-pre={(},
table-space-text-post ={**},
table-format=-1.4]}
}% <--- second part of table
\toprule
\multicolumn{3}{c}{(2)} \\
\cmidrule(lr){1-3}
& {L} & {I} \\
\midrule
Small & 0.2433 & 0.5535 \\
Big & 0.2428 & 0.1746 \\
\addlinespace
SMB & 0.0005 & 0.3789\tnote{**} \\
t-stat & (0.0029) & (2.2308) \\
\bottomrule
\end{tabular}
\end{tabular}
\begin{tablenotes}[para, flushleft]\footnotesize
\item[*] some explanation
\item[**] some explanation
\note \lipsum*[1]
\end{tablenotes}
\end{threeparttable}
\end{table}
\lipsum[11]
\end{document}