How do I vertically center a table in the remaining part of a page? Specifically, I want to put a large table on a single page but I also want to have a subsection title line at the top. However, using the below code
\documentclass{article}
\usepackage{fontspec}
\setmainfont{TeX Gyre Termes}
\begin{document}
\subsection{Title}
\begin{figure}[p]\centering\begin{tabular}{c}
test\\
\end{tabular}\end{figure}
\end{document}
puts the table vertically centered, but on a new page.
Of course, others may want to have several paragraphs followed by a single float centered vertically in the remaining area of the page. So one wonders if there is a way to easily accomplish this?
[p]
option forfigure
always goes to a new page, and doesn't allow anything else on that page.[b]
will move the float to the bottom of the page, so that's not what you want either. in this case, you should probably try using just\begin{center} ... \end{center}
and not treat it as a float at all, but add vertical space manually as necessary.\vfill\begin{figure}\centering ... \end{figure}\vfill
or am I missing something?\vfill
with\vspace*{\fill}
?