我的表格分散在一页上,使用t
for 放置不起作用。我该怎么办?我试过了\raggedbottom
,但不起作用。
梅威瑟:
\usepackage{array}
\usepackage{booktabs}
\usepackage{placeins}
\begin{document}
Blah blah blah.
\FloatBarrier
\newpage %Here the pages with tables begins.
\begin{table}[b]
... Tabular Blah Blah ...
\end{table}
\begin{table}[b]
... Tabular Blah Blah ...
\end{table} % Lots of the tables
\FloatBarrier
\newpage %Following this page is something that's not tables.
Blah blah blah.
提前致谢!
答案1
为了保证两个tabular
环境的排版紧密结合,只需使用单一table
环境。
请注意,table
页面上的浮动元素默认会垂直居中。
\documentclass{article}
\begin{document}
Some blah blah blah.
\clearpage % force page break and flush the float stack
\begin{table}
\centering
... tabular bla bla ...
\caption{bla bla}
\vspace{2cm} % set the amount of vertical whitespace separation
... tabular ble ble ...
\caption{ble ble}
\end{table}
\clearpage % force another page brea and flush the float stack
More blah blah blah.
\end{document}