如何在标题和表格之间插入表格注释

如何在标题和表格之间插入表格注释

我怎样才能像本例一样加入表格注释? 在此处输入图片描述

现在,我有以下 Tex:

 \documentclass[10pt]{article}
 \usepackage[utf8]{inputenc}
 \usepackage{float}
 \usepackage{longtable}
 \usepackage{dcolumn,booktabs}
 \newcolumntype{d}[1]{D{.}{.}{#1}}
 \newcommand\mc[1]{\multicolumn{1}{c}{#1}}
 \usepackage[top=3.5cm, bottom=4.5cm, left=3.3cm, right=3.3cm]{geometry}


 \begin{document}
\begin{table}[H]                                            
 \small 
 \centering         
 \caption{Granger Causality}                                                    

 \label{table:grangercausality}                                             
 \setlength\tabcolsep{3pt}      
 \begin{tabular}{l *{11}{d{3.3}}}                       
 \toprule                                           
 \hspace{1mm}1  &       2       &       3       &       4       &       5       
 &      6       &       7       &       8       &       9       &       10      
 &      11      &       12      \\  
 \hspace{2.5mm}i    &       \mc{$\hat{\beta}_{i,AUS}$}      &       
 \mc{$\hat{\beta}_{i,CAN}$}     &       \mc{$\hat{\beta}_{i,FRA}$}      &   
 \mc{$\hat{\beta}_{i,DEU}$}     &       \mc{$\hat{\beta}_{i,ITA}$}      &   
 \mc{$\hat{\beta}_{i,JPN}$}     &       \mc{$\hat{\beta}_{i,NLD}$}      &   
 \mc{$\hat{\beta}_{i,SWE}$}     &       \mc{$\hat{\beta}_{i,CHE}$}      &   
 \mc{$\hat{\beta}_{i,GBR}$}     &       \mc{$\hat{\beta}_{i,USA}$}      \\  
 \midrule
 AUS    &               &       0.11^\ast       &       0.12^\ast       &       
 0.13^\ast      &       0.08^\ast       &       0.10^\ast       &       
 0.13^\ast      &       0.08^\ast       &       0.11^\ast       &       0.07        
 &      0.20^\ast       \\
    &   &   (1.35)  &   (1.96)  &   (2.06)  &   (2.24)  &   (1.91)  &   
 (1.77) &   (1.91)  &   (1.67)  &   (0.94)  &   (2.34)  \\  \addlinespace
 CAN    &       0.05        &               &       0.06        &       0.06        
 &      0.06^\ast       &       0.06        &       0.06        &       
 0.15^\ast      &       0.08        &       0.07        &       0.21^\ast       
 \\ 
    &   (0.84)  &   &   (1.21)  &   (1.24)  &   (1.53)  &   (1.26)  &   
 (0.79) &   (3.73)  &   (1.00)  &   (0.99)  &   (2.19)  \\  \addlinespace
 FRA    &       0.01        &       -0.01       &               &       
 -0.03      &       -0.05       &       0.04        &       0.002       &       
 0.14^\ast      &       0.16^\ast       &       0.03        &       0.12        
 \\
    &   (0.15)  &   (-0.15) &   &   (-0.31) &   (-0.91) &   (0.53)  &   
 (0.02) &   (2.27)  &   (1.47)  &   (0.26)  &   (1.28)  \\  \addlinespace
 DEU    &       0.03        &       0.09        &       0.13^\ast       &               
 &      0.06        &       0.09^\ast       &       0.06        &       
 0.14^\ast      &       0.26^\ast       &       0.07        &       
 0.22^\ast      \\  
    &   (0.37)  &   (1.11)  &   (1.49)  &   &   (1.29)  &   (1.42)  &   
 (0.55) &   (2.49)  &   (2.26)  &   (0.77)  &   (2.33)  \\  \addlinespace
 ITA    &       -0.01       &       0.06        &       0.16^\ast       &       
 0.11       &               &       0.05        &       -0.06       &       
 0.06       &       0.21^\ast       &       0.15^\ast       &       
 0.15^\ast      \\  
    &   (-0.07) &   (0.66)  &   (1.63)  &   (1.21)  &       &   (0.72)  &   
 (-0.59)    &   (0.99)  &   (1.84)  &   (1.48)  &   (1.59)  \\  
 \addlinespace
 JPN    &       0.04        &       0.12^\ast       &       0.11^\ast       
 &      0.02        &       0.03        &               &       0.07        
 &      0.09^\ast       &       0.11^\ast       &       0.11^\ast       &       
 0.11^\ast      \\  
    &   (0.70)  &   (1.70)  &   (2.07)  &   (0.44)  &   (0.78)  &   &   
 (1.17) &   (1.77)  &   (1.61)  &   (1.71)  &   (1.48)  \\  \addlinespace
 NLD    &       0.10^\ast       &       0.15^\ast       &       0.15^\ast       
 &      0.15^\ast       &       0.05        &       0.11^\ast       &               
 &      0.16^\ast       &       0.33^\ast       &       0.11        &       
 0.32^\ast      \\  
    &   (1.46)  &   (1.95)  &   (2.20)  &   (1.79)  &   (1.05)  &   (2.12)  
 &      &   (2.76)  &   (3.28)  &   (1.11)  &   (3.69)  \\  \addlinespace
 SWE    &       -0.03       &       0.16^\ast       &       0.05        &       
 0.08       &       0.08        &       0.06        &       0.01        &               
 &      0.12        &       0.10        &       0.23^\ast       \\  
    &   (-0.31) &   (1.75)  &   (0.58)  &   (0.88)  &   (1.09)  &   (0.76)  
 &  (0.13)  &   &   (1.23)  &   (0.90)  &   (2.22)  \\  \addlinespace
 CHE    &       0.03        &       0.03        &       -0.0003     &       
 -0.02      &       0.00        &       0.02        &       -0.01       &       
 0.13^\ast      &               &       0.02        &       0.14^\ast       
 \\ 
    &   (0.50)  &   (0.41)  &   (0.07)  &   (-0.20) &   (-0.08) &   (0.51)  
 &  (-0.08) &   (3.14)  &       &   (0.32)  &   (1.67)  \\\addlinespace 
 GBR    &       0.11^\ast       &       0.08        &       0.08        &       
 0.02       &       0.01        &       0.09^\ast       &       -0.02       
 &      0.09^\ast       &       0.11^\ast       &               &       
 0.23^\ast      \\  
    &   (1.74)  &   (1.02)  &   (1.17)  &   (0.26)  &   (0.24)  &   (1.85)  
 &  (-0.18) &   (2.03)  &   (1.42)  &       &   (2.26)  \\\addlinespace 
 USA    &       0.06        &       0.03        &       0.01        &       
 -0.01      &       0.06^\ast       &       -0.0003     &       0.01        
 &      0.09^\ast       &       0.04        &       0.02        &               
 \\ 
    &   (1.00)  &   (0.27)  &   (0.20)  &   (-0.20) &   (1.52)  &   (-0.01) 
 &  (0.18)  &   (2.31)  &   (0.48)  &   (0.22)  &       \\  \addlinespace
 Average    &       0.04        &       0.08        &       0.09        &       
 0.05       &       0.04        &       0.06        &       0.03        &       
 0.11       &       0.15        &       0.08        &       0.19        \\  
 \addlinespace
 Pooled &       0.03        &       0.07^\ast       &       0.08^\ast       
 &      0.05        &       0.04^\ast       &       0.06^\ast       &       
 0.02       &       0.11^\ast       &       0.13^\ast       &       
 0.08^\ast      &       0.17^\ast       \\  
    &   (0.65)  &   (1.34)  &   (2.02)  &   (1.08)  &   (1.32)  &   (1.52)  
 &  (0.42)  &   (3.56)  &   (2.22)  &   (1.45)      &   (2.98)  \\      
 \bottomrule
 \end{tabular}
 \end{table}    
 \end{document}

非常感谢您帮助我!

答案1

编辑: 像这样?

在此处输入图片描述

我在上面的评论中提到过,您可以使用注释\multicolumn{12}{>{\linespread{0.8}\footnotesize}p{\linewidth}}{...}。使用\linespread{0.8}in 可以减少文本行之间的垂直空间:

\documentclass[10pt]{article}
 \usepackage[utf8]{inputenc}
 \usepackage{float}
 \usepackage{longtable}
 \usepackage{dcolumn,booktabs}
 \newcolumntype{d}[1]{D{.}{.}{#1}}
 \newcommand\mc[1]{\multicolumn{1}{c}{#1}}
 \usepackage[top=3.5cm, bottom=4.5cm, left=3.3cm, right=3.3cm]{geometry}

\usepackage{lipsum}

 \begin{document}
\begin{table}[H]
 \small
 \centering
 \caption{Granger Causality}

 \label{table:grangercausality}
 \setlength\tabcolsep{3pt}
 \begin{tabular}{l *{11}{d{3.3}}}
 \multicolumn{12}{>{\linespread{0.8}\footnotesize}p{\linewidth}}{\lipsum[11]}\\
 \toprule
 \hspace{1mm}1  &       2       &       3       &       4       &       5
 &      6       &       7       &       8       &       9       &       10
 &      11      &       12      \\
 \hspace{2.5mm}i    &       \mc{$\hat{\beta}_{i,AUS}$}      &
 \mc{$\hat{\beta}_{i,CAN}$}     &       \mc{$\hat{\beta}_{i,FRA}$}      &
 \mc{$\hat{\beta}_{i,DEU}$}     &       \mc{$\hat{\beta}_{i,ITA}$}      &
 \mc{$\hat{\beta}_{i,JPN}$}     &       \mc{$\hat{\beta}_{i,NLD}$}      &
 \mc{$\hat{\beta}_{i,SWE}$}     &       \mc{$\hat{\beta}_{i,CHE}$}      &
 \mc{$\hat{\beta}_{i,GBR}$}     &       \mc{$\hat{\beta}_{i,USA}$}      \\
 \midrule
 AUS    &               &       0.11^\ast       &       0.12^\ast       &
 0.13^\ast      &       0.08^\ast       &       0.10^\ast       &
 0.13^\ast      &       0.08^\ast       &       0.11^\ast       &       0.07
 &      0.20^\ast       \\
    &   &   (1.35)  &   (1.96)  &   (2.06)  &   (2.24)  &   (1.91)  &
 (1.77) &   (1.91)  &   (1.67)  &   (0.94)  &   (2.34)  \\  \addlinespace
 CAN    &       0.05        &               &       0.06        &       0.06
 &      0.06^\ast       &       0.06        &       0.06        &
 0.15^\ast      &       0.08        &       0.07        &       0.21^\ast
 \\
    &   (0.84)  &   &   (1.21)  &   (1.24)  &   (1.53)  &   (1.26)  &
 (0.79) &   (3.73)  &   (1.00)  &   (0.99)  &   (2.19)  \\  \addlinespace
 FRA    &       0.01        &       -0.01       &               &
 -0.03      &       -0.05       &       0.04        &       0.002       &
 0.14^\ast      &       0.16^\ast       &       0.03        &       0.12
 \\
    &   (0.15)  &   (-0.15) &   &   (-0.31) &   (-0.91) &   (0.53)  &
 (0.02) &   (2.27)  &   (1.47)  &   (0.26)  &   (1.28)  \\  \addlinespace
 DEU    &       0.03        &       0.09        &       0.13^\ast       &
 &      0.06        &       0.09^\ast       &       0.06        &
 0.14^\ast      &       0.26^\ast       &       0.07        &
 0.22^\ast      \\
    &   (0.37)  &   (1.11)  &   (1.49)  &   &   (1.29)  &   (1.42)  &
 (0.55) &   (2.49)  &   (2.26)  &   (0.77)  &   (2.33)  \\  \addlinespace
 ITA    &       -0.01       &       0.06        &       0.16^\ast       &
 0.11       &               &       0.05        &       -0.06       &
 0.06       &       0.21^\ast       &       0.15^\ast       &
 0.15^\ast      \\
    &   (-0.07) &   (0.66)  &   (1.63)  &   (1.21)  &       &   (0.72)  &
 (-0.59)    &   (0.99)  &   (1.84)  &   (1.48)  &   (1.59)  \\
 \addlinespace
 JPN    &       0.04        &       0.12^\ast       &       0.11^\ast
 &      0.02        &       0.03        &               &       0.07
 &      0.09^\ast       &       0.11^\ast       &       0.11^\ast       &
 0.11^\ast      \\
    &   (0.70)  &   (1.70)  &   (2.07)  &   (0.44)  &   (0.78)  &   &
 (1.17) &   (1.77)  &   (1.61)  &   (1.71)  &   (1.48)  \\  \addlinespace
 NLD    &       0.10^\ast       &       0.15^\ast       &       0.15^\ast
 &      0.15^\ast       &       0.05        &       0.11^\ast       &
 &      0.16^\ast       &       0.33^\ast       &       0.11        &
 0.32^\ast      \\
    &   (1.46)  &   (1.95)  &   (2.20)  &   (1.79)  &   (1.05)  &   (2.12)
 &      &   (2.76)  &   (3.28)  &   (1.11)  &   (3.69)  \\  \addlinespace
 SWE    &       -0.03       &       0.16^\ast       &       0.05        &
 0.08       &       0.08        &       0.06        &       0.01        &
 &      0.12        &       0.10        &       0.23^\ast       \\
    &   (-0.31) &   (1.75)  &   (0.58)  &   (0.88)  &   (1.09)  &   (0.76)
 &  (0.13)  &   &   (1.23)  &   (0.90)  &   (2.22)  \\  \addlinespace
 CHE    &       0.03        &       0.03        &       -0.0003     &
 -0.02      &       0.00        &       0.02        &       -0.01       &
 0.13^\ast      &               &       0.02        &       0.14^\ast
 \\
    &   (0.50)  &   (0.41)  &   (0.07)  &   (-0.20) &   (-0.08) &   (0.51)
 &  (-0.08) &   (3.14)  &       &   (0.32)  &   (1.67)  \\\addlinespace
 GBR    &       0.11^\ast       &       0.08        &       0.08        &
 0.02       &       0.01        &       0.09^\ast       &       -0.02
 &      0.09^\ast       &       0.11^\ast       &               &
 0.23^\ast      \\
    &   (1.74)  &   (1.02)  &   (1.17)  &   (0.26)  &   (0.24)  &   (1.85)
 &  (-0.18) &   (2.03)  &   (1.42)  &       &   (2.26)  \\\addlinespace
 USA    &       0.06        &       0.03        &       0.01        &
 -0.01      &       0.06^\ast       &       -0.0003     &       0.01
 &      0.09^\ast       &       0.04        &       0.02        &
 \\
    &   (1.00)  &   (0.27)  &   (0.20)  &   (-0.20) &   (1.52)  &   (-0.01)
 &  (0.18)  &   (2.31)  &   (0.48)  &   (0.22)  &       \\  \addlinespace
 Average    &       0.04        &       0.08        &       0.09        &
 0.05       &       0.04        &       0.06        &       0.03        &
 0.11       &       0.15        &       0.08        &       0.19        \\
 \addlinespace
 Pooled &       0.03        &       0.07^\ast       &       0.08^\ast
 &      0.05        &       0.04^\ast       &       0.06^\ast       &
 0.02       &       0.11^\ast       &       0.13^\ast       &
 0.08^\ast      &       0.17^\ast       \\
    &   (0.65)  &   (1.34)  &   (2.02)  &   (1.08)  &   (1.32)  &   (1.52)
 &  (0.42)  &   (3.56)  &   (2.22)  &   (1.45)      &   (2.98)  \\
 \bottomrule
 \end{tabular}
 \end{table}
 \end{document}

虽然不是很优雅,但是它可以起作用......

相关内容