3

I generated two separate tables in chapter of the appendix of all tables. Of course, LaTeX fit the two tables in the page in order to use the whole page. Instead, since they are the last two I'd like them to be at the top.

Shortly, I would like to remove the blank space between two different tables and fill the bottom of the page with blank space.

5

Set the relevant parameters for the last two floats only:

\documentclass{book}

\newcommand{\faketable}[1]{\begin{table}[htp]
  \centering
  \fboxsep=-\fboxrule\fbox{\rule{0pt}{#1}\hspace{4cm}}
  \caption{A caption}
  \end{table}}

\begin{document}
\mainmatter
\appendix
\chapter{Tables}
Here we have all our tables

\faketable{5cm}
\faketable{4cm}
\faketable{6cm}
\faketable{3cm}
\faketable{2cm}
\faketable{6cm}
\faketable{6cm}
\faketable{4cm}

\clearpage
\makeatletter
\setlength{\@fptop}{0pt}\setlength{\@fpbot}{0pt plus \fill}
\makeatother

\faketable{5cm}
\faketable{5cm}

\end{document}

Of course, leave this for the “last minute, won't touch the text any more” phase.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.