我有这些桌子,它们之间留有很大空间。我不知道如何减少这些空间。
\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}