如何在表格下方添加不超过表格尺寸的注释?

如何在表格下方添加不超过表格尺寸的注释?

我正在用 Rmarkdown 写一篇论文。我创建了一个表格,我想在表格下方放置一个注释。问题是,当我尝试这样做时,由于注释很长,它超出了表格的尺寸,导致表格无法阅读。

我的代码是:


\begin{table}[H]
\centering 
\caption{"Save The Euro" Factor} 
\label{tab: fig2} 
\begin{tabular}{@{\extracolsep{5pt}} cc} 
\hline \\[-1.8ex] 
 & Factor 2 \\ 
\hline \\[-1.8ex] 
$Variance Share$ (\%) & 13.7\\
$Loadings$:\\
OIS 1M & $-$0.030 \\ 
OIS 1Y & 0.060 \\ 
OIS 2Y & 0.065 \\ 
Germany 2Y yield & 0.048 \\ 
Germany 5Y yield & 0.079  \\ 
Germany 10Y yield  & 0.115 \\
France 2Y yield & 0.061 \\
France 5Y yield & 0.019 \\
France 10Y yield & 0.003 \\
Italy 2Y yield & $-$0.286 \\ 
Italy 5Y yield & $-$0.340 \\
Italy 10Y yield & $-$0.336 \\ 
Spain 2Y yield & $-$0.236 \\ 
Spain 5Y yield & $-$0.305 \\ 
Spain 10Y yield & $-$0.330 \\ 
STOXX50E Index & 0.348 \\ 
SX7E (Bank) Index  & 0.384  \\ 
Euro-Dollar & 0.032  \\ 
EUR-Pound & 0.018  \\ 
EUR-Yen & 0.107  \\ 
\hline \\[-1.8ex]
\footnotesize{\textit{Note}: The figure shows the estimated DFPA. The frequency has been increased to quarterly observation to improve readability. The vertical blue lines correspond to intervention in the secondary market, while the vertical light-blue line indicates the ruling of the ECJ. Above 0 indicates a *dovish* score, while below 0 a *hawkish* one.}
\end{tabular} 
\end{table} 

我只想让纸条适合桌子的尺寸。有人能帮我吗?

谢谢!

答案1

在此处输入图片描述

一种方法是使用 threeparttable

我没有使用你表格中的数据,因为这需要额外的努力

\documentclass{article}
\usepackage{booktabs,caption}
\usepackage[flushleft]{threeparttable}
\begin{document}

\begin{table}
  \begin{threeparttable}
    \caption{Sample ANOVA table}
     \begin{tabular}{lllll}
        \toprule
        Stubhead & \( df \) & \( f \) & \( \eta \) & \( p \) \\
        \midrule
                 &     \multicolumn{4}{c}{Spanning text}     \\
        Row 1    & 1        & 0.67    & 0.55       & 0.41    \\
        Row 2    & 2        & 0.02    & 0.01       & 0.39    \\
        Row 3    & 3        & 0.15    & 0.33       & 0.34    \\
        Row 4    & 4        & 1.00    & 0.76       & 0.54    \\
        \bottomrule
     \end{tabular}
    \begin{tablenotes}
      \small
      \item This is where authors provide additional information about
      the data, including whatever notes are needed.
    \end{tablenotes}
  \end{threeparttable}
\end{table}

\end{document}

感谢@JosephWright 提供此解决方案

相关内容