桌子之间的空间太大

桌子之间的空间太大

我有这些桌子,它们之间留有很大空间。我不知道如何减少这些空间。

\documentclass[12pt]{article}
\usepackage{adjustbox,lipsum}
\begin{document}
\begin{table}[h]
\noindent\adjustbox{max width = \textwidth}{
\begin{tabular}{ |c|c|c|c|c|c|c|c|c|c|c| } 
\hline
\multicolumn{11}{|c|}{Poisson Distribution}\\
\hline
%data
\hline
\end{tabular}}
\caption{This table shows the probability of the site crashing/not crashing and the number of iterations it took to do so (C/NC).}
\end{table}
% THIS IS WHERE I WOULD LIKE NO SPACES BETWEEN TABLES.
\begin{table}
\noindent\adjustbox{max width = \textwidth}{
\begin{tabular}{ c|c|c|c|c|c|c|c|c|c|c| } 
\hline
\multicolumn{11}{|c|}{Uniform Distribution}\\
\hline
%data
\hline
\end{tabular}}
\caption{This table shows the probability of the site crashing/not crashing and the number of iterations it took to do so (C/NC).}
\end{table}
\end{document}

答案1

使用单个table环境,包含两个tabular环境和两个\caption指令。你可能确实想要一些两个表格块之间的垂直空白;如果是这样,则诸如这样的指令\vspace{1cm}可以实现该目标。

在此处输入图片描述

\documentclass[12pt]{article}
\usepackage{adjustbox}
\begin{document}
\begin{table}[h]
\centering
\adjustbox{max width = \textwidth}{%
\begin{tabular}{ |c|c|c|c|c|c|c|c|c|c|c| } 
\hline
\multicolumn{11}{|c|}{Poisson Distribution}\\
\hline
%data
\hline
\end{tabular}}
\caption{This table shows the probability of the site crashing\slash
not crashing and the number of iterations it took to do so (C/NC).}

\vspace{1cm} % <--- this is new

\adjustbox{max width = \textwidth}{%
\begin{tabular}{ c|c|c|c|c|c|c|c|c|c|c| } 
\hline
\multicolumn{11}{|c|}{Uniform Distribution}\\
\hline
%data
\hline
\end{tabular}}
\caption{This table shows the probability of the site crashing\slash 
not crashing and the number of iterations it took to do so (C/NC).}
\end{table}
\end{document}

相关内容