将长表格乳胶居中,但不能填满页面宽度

将长表格乳胶居中,但不能填满页面宽度

我的代码生成下表在此处输入图片描述

有人能告诉我一种方法来缩小表格并摆脱那一大块空白吗? 我的代码如下:

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[margin=1.25in]{geometry}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{float}
\usepackage{caption}
\usepackage{multirow}

\begin{document}

    \begin{table}[H]
    \caption{Granger causality wald-test Blockchain Google Trends on Bitcoin weekly price } % title of Table
    \centering 
    \begin{tabular}{rrrr}
    \toprule
    Test statistic &  Critical value & p-value & df \\
    \midrule
     13.857480    &    22.362032        &    0.384  &13 \\
    \bottomrule
    $H_0$: ['blockchain'] do not Granger-cause Close Bitcoin Price weekly\\
    Conclusion: fail to reject $H_0$ at 5.00\% significance level\\
    \end{tabular}
    \end{table}

\end{document}

感谢您的帮助!

答案1

我认为你应该从环境中删除这两个较长的句子tabular

在此处输入图片描述

\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage[margin=1.25in]{geometry}
\usepackage{booktabs}

\begin{document}
    \begin{table}
    \caption{Wald test of Granger causality from Blockchain Google Trends to Bitcoin weekly price} 

    $H_0$: `blockchain' does not Granger-cause Bitcoin weekly closing price.

    \medskip\centering 
    \begin{tabular}{cccc}
    \toprule
    Test statistic &  Critical value & $p$-value & df \\
    \midrule
     13.86    &    22.36        &    0.384  & 13 \\
    \bottomrule
    \end{tabular}

    \medskip\raggedright
    Conclusion: Fail to reject $H_0$ at 5\% significance level.
    \end{table}
\end{document}

相关内容