以横向模式居中两个表格

以横向模式居中两个表格

这些帖子看起来与已经发布的帖子非常相似两个表格以横向模式并排显示但是我很难将我的第一个表格置于横向页面的中间。这只是我的论文脚本,它跨越了很多页。因为这是我的整个论文,我原谅这个长篇序言。我想将下面这两个横向表格放入我的论文中。这些表格本质上太大了,所以我缩放了它们。我怎样才能将表格设置在页面中间。我尝试了和\centering模式。我也尝试了没有,但我希望在两个小页面表格上方都有一个标题。任何帮助都非常感谢。谢谢\table\minipage\table

\documentclass[a4paper, 11pt, oneside]{report} 
%========= PACKAGES
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
%========= LAYOUT
\usepackage{fullpage}
\usepackage{pdflscape}
\usepackage{afterpage}
%========= MATH
\usepackage{amsmath} 
\usepackage{amssymb} 
\usepackage{amsfonts}
\usepackage{siunitx}
%========= TABLES
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{booktabs}
\usepackage{multirow}
\sisetup{input-symbols = {()},  % do not treat "(" and ")" in any special way
         group-digits  = false} % no grouping of digits
%========= GRAPHICS
\usepackage{caption}
\usepackage{subcaption}
%========= DOKUMENT =================
\begin{document}
\clearpage % begin landscape tables
\begin{landscape}
\begin{table}[htp]
\centering
\caption[]{GARCH-VaR - out-of-sample estimates} \label{tab:VaRresultsgarch}
\begin{minipage}{0.48\columnwidth}
\resizebox{\columnwidth}{!}{%
\begin{tabular}{@{}
    S[table-number-alignment = right,
    table-figures-integer = 1,
    table-figures-decimal = 3]
    S
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = right,
    table-figures-integer = 1,
    table-figures-decimal = 3]
    S
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 4,
    table-space-text-post = \textsuperscript{*}]
    @{}}
\toprule
 & & \multicolumn{3}{c}{GARCH} & & &  \multicolumn{3}{c}{GARCH}\\
\cmidrule(rl){3-5} \cmidrule(l){8-10}
{\textbf{CHF}} & {Test} & {Normal} & {Std-$t$} & {GED} & {\textbf{EUR}} & {Test} & {Normal} & {Std-$t$} & {GED} \\
\cmidrule(r){1-5} \cmidrule(l){6-10}
\SI{5.0}{\percent} & {VR} & 5.213 & 5.611 & 5.054 & \SI{5.0}{\percent} & {VR} & 4.584 & 4.895 & 4.429 \\
\end{tabular}%
}
\end{minipage}\quad
%=========== new tabular =============
\begin{minipage}{0.48\columnwidth}
\resizebox{\columnwidth}{!}{%
\begin{tabular}{@{}
    S[table-number-alignment = right,
    table-figures-integer = 1,
    table-figures-decimal = 3]
    S
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = right,
    table-figures-integer = 1,
    table-figures-decimal = 3]
    S
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 4,
    table-space-text-post = \textsuperscript{*}]
    @{}}
\toprule
 & & \multicolumn{3}{c}{GARCH} & & &  \multicolumn{3}{c}{GARCH}\\
\cmidrule(rl){3-5} \cmidrule(l){8-10}
{\textbf{CHF}} & {Test} & {Normal} & {Std-$t$} & {GED} & {\textbf{EUR}} & {Test} & {Normal} & {Std-$t$} & {GED} \\
\cmidrule(r){1-5} \cmidrule(l){6-10}
\SI{1.0}{\percent} & {VR} & 1.512 & 1.114 & 1.114 & \SI{1.0}{\percent} & {VR} & 1.243 & 0.932 & 0.932 \\
\end{tabular}%
}
\end{minipage}
\end{table}
\clearpage
%=========== new page and tabular =============
\begin{table}[htp]
\centering
\begin{minipage}{0.48\columnwidth}
%\caption{GARCH-VaR - out-of-sample estimates $p = 0.005$}
\resizebox{\columnwidth}{!}{%
\begin{tabular}{@{}
    S[table-number-alignment = right,
    table-figures-integer = 1,
    table-figures-decimal = 3]
    S
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = right,
    table-figures-integer = 1,
    table-figures-decimal = 3]
    S
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 4,
    table-space-text-post = \textsuperscript{*}]
    @{}}
\toprule
 & & \multicolumn{3}{c}{GARCH} & & &  \multicolumn{3}{c}{GARCH}\\
\cmidrule(rl){3-5} \cmidrule(l){8-10}
{\textbf{CHF}} & {Test} & {Normal} & {Std-$t$} & {GED} & {\textbf{EUR}} & {Test} & {Normal} & {Std-$t$} & {GED} \\
\cmidrule(r){1-5} \cmidrule(l){6-10}
\SI{0.5}{\percent} & {VR} & 0.836 & 0.358 & 0.398 & \SI{0.5}{\percent} & {VR} & 0.777 & 0.622 & 0.622 \\
\end{tabular}%
}
\end{minipage}\quad
%=========== new tabular =============
\begin{minipage}{0.48\columnwidth}
\resizebox{\columnwidth}{!}{%
\begin{tabular}{@{}
    S[table-number-alignment = right,
    table-figures-integer = 1,
    table-figures-decimal = 3]
    S
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = right,
    table-figures-integer = 1,
    table-figures-decimal = 3]
    S
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 3,
    table-space-text-post = \textsuperscript{**}]
    S[table-number-alignment = center,
    table-figures-integer = 2,
    table-figures-decimal = 4,
    table-space-text-post = \textsuperscript{*}]
    @{}}
\toprule
 & & \multicolumn{3}{c}{GARCH} & & &  \multicolumn{3}{c}{GARCH}\\
\cmidrule(rl){3-5} \cmidrule(l){8-10}
{\textbf{CHF}} & {Test} & {Normal} & {Std-$t$} & {GED} & {\textbf{EUR}} & {Test} & {Normal} & {Std-$t$} & {GED} \\
\cmidrule(r){1-5} \cmidrule(l){6-10}
\SI{0.1}{\percent} & {VR} & 0.239 & 0.08 & 0.159 & \SI{0.1}{\percent} & {VR} & 0.233 & 0.078 & 0.078 \\
\end{tabular}%
}
\end{minipage}
\end{table}
\end{landscape}
\end{document}

在此处输入图片描述

答案1

我打算将表格垂直居中。经过几次尝试,我找到了解决方案。当在空白页上设置表格时,环境\table可能不包含由 定义的定位[htbp]。通过删除[htbp]表格使其正确居中。

\clearpage

\begin{table}% ... [htp] <- remove
\centering
\begin{minipage}{0.48\columnwidth}
%\caption{GARCH-VaR - out-of-sample estimates $p = 0.005$}
\resizebox{\columnwidth}{!}{%
\begin{tabular}{@{}
% ...content
\end{tabular}%
}
\end{minipage}
\end{table}

抱歉,这篇文章希望对其他人有帮助。

相关内容