表格放置和格式改进

表格放置和格式改进

我试图在我们的文件中显示一个相当大的表格。然而,表格跳转到新页面,而上一页看起来还有足够的空间。

代码:

\chapter{Results}

\begin{sidewaystable}[htb] \centering
\begin{threeparttable}[t]
\setlength\tabcolsep{12pt}
\caption{Parameter point estimates, standard errors, \& log-likelihoods}
\begin{tabular}{@{}lllllllll@{}}
\toprule\toprule
& G(1,1) & N-G(1,1) & Q-G(1,1) & $t$-G(1,1) & R-G(1,1) & L-RG(1,1) & LL-RG(1,1) & $t$-GAS(1,1) \\ \midrule
\multicolumn{1}{l|}{$\omega$}                        &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\alpha$}                        &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\beta$}                         &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\nu$}                           &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\delta$}                        &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\gamma$}                        &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\xi$}                           &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\varphi$}                       &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\tau_1$}                       &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\tau_2$}                       &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\sigma_u$}                     &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$l(\boldsymbol{\hat{\theta}})$} &        &          &          &          &          &           &            &
\\ \bottomrule\bottomrule
\end{tabular}
\begin{tablenotes}[flushleft] \footnotesize
    \item[1] G($1,1$) denotes the GARCH model, L-RG($1,1$) and LL-RG($1,1$) are the Realized GARCH model with linear and log-linear specification, respectively. The other abbreviations are evident.
    \item[2] Numbers in parentheses are standard errors.
\end{tablenotes}
\end{threeparttable}
\end{sidewaystable}

如果我能收到这个问题的解决方案,那就太好了,也许还能收到一些关于如何改善表格整体格式的反馈。

谢谢!

最好的,肖恩

答案1

据我所知,没有必要以横向格式排版表格。除非文档的文本块异常狭窄,否则纵向格式应该没问题。以下解决方案使用环境tabular*使表格占据文本块的整个宽度。哦,它不会在第一列后插入垂直线,但它会在每三行或四行后插入一点空白。

在此处输入图片描述

\documentclass{report} % select a suitable document class
\usepackage{rotating,threeparttable,booktabs}
\usepackage{amssymb,amsmath,bm}
\usepackage[letterpaper,margin=1in]{geometry} % set suitable page parameters

\begin{document}
\setcounter{chapter}{3} % just for this example
\chapter{Results}

\begin{table}[htb] 
\begin{threeparttable}[t]
\setlength\tabcolsep{0pt} % let LaTeX figure out inter-column whitespace
\caption{Parameter point estimates, standard errors, \& log-likelihoods}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l *{8}{c}}
\toprule
& G(1,1) & N-G(1,1) & Q-G(1,1) & $t$-G(1,1) & R-G(1,1) & L-RG(1,1) & LL-RG(1,1) & $t$-GAS(1,1) \\ \midrule
$\omega$  &        &          &          &          &          &          &          &          \\
$\alpha$  &        &          &          &          &          &          &          &          \\
$\beta$   &        &          &          &          &          &          &          &          \\
\addlinespace
$\nu$     &        &          &          &          &          &          &          &          \\
$\delta$  &        &          &          &          &          &          &          &          \\
$\gamma$  &        &          &          &          &          &          &          &          \\
$\xi$     &        &          &          &          &          &          &          &          \\
\addlinespace
$\varphi$ &        &          &          &          &          &          &          &          \\
$\tau_1$  &        &          &          &          &          &          &          &          \\
$\tau_2$  &        &          &          &          &          &          &          &          \\
\addlinespace
$\sigma_u$&        &          &          &          &          &          &          &          \\
$l(\hat{\bm{\theta}})$ & &    &          &          &          &          &          &          \\ 
\bottomrule
\end{tabular*}

\smallskip
\begin{tablenotes}[flushleft] 
\footnotesize
\item[1] G($1,1$) denotes the GARCH model, L-RG($1,1$) and LL-RG($1,1$) 
  are the Realized GARCH model with linear and log-linear specification, 
  respectively. The other abbreviations are evident.
\item[2] Numbers in parentheses are standard errors.
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}

答案2

也许这可行,或者你可以缩小尺寸以适应

    \chapter{Results}

%\begin{table}[htb] \centering
\rotatebox{90}{%
\scalebox{0.85}{
\begin{threeparttable}[t]
\setlength\tabcolsep{12pt}
\caption{Parameter point estimates, standard errors, \& log-likelihoods}
\begin{tabular}{@{}lllllllll@{}}
\toprule\toprule
& G(1,1) & N-G(1,1) & Q-G(1,1) & $t$-G(1,1) & R-G(1,1) & L-RG(1,1) & LL-RG(1,1) & $t$-GAS(1,1) \\ \midrule
\multicolumn{1}{l|}{$\omega$}                        &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\alpha$}                        &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\beta$}                         &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\nu$}                           &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\delta$}                        &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\gamma$}                        &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\xi$}                           &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\varphi$}                       &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\tau_1$}                       &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\tau_2$}                       &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$\sigma_u$}                     &        &          &          &          &          &           &            &            \\
\multicolumn{1}{l|}{$l({\theta})$} &        &          &          &          &          &           &            &
\\ \bottomrule\bottomrule
\end{tabular}
\begin{tablenotes}[flushleft] \footnotesize
    \item[1] G($1,1$) denotes the GARCH model, L-RG($1,1$) and LL-RG($1,1$) are the Realized GARCH model with linear and log-linear specification, respectively. The other abbreviations are evident.
    \item[2] Numbers in parentheses are standard errors.
\end{tablenotes}
\end{threeparttable}
}}
%\end{table}

相关内容