[Tex/LaTex] Unwanted blank page prepended to large table

blank-pagetables

Problem-ku:

A page-long table
Gets a blank page prepended
I do not want this

The table is very large (69×20) but fits on one page.

Here's the code I'm using at the beginning and end of the mega-table.

Before:

\newgeometry{left=1cm,top=1.5cm}
\bibpunct{}{}{;}{n}{}{,}
\begin{table}[H]
  \footnotesize
  \begin{center}
    \tabcolsep=0.11cm
    \begin{tabular}{ |r||l|l|l||l|l|l|l||l|l|l|l||l|l||l|l|l||l|l|l|}
      \hline

After:

     \hline
    \end{tabular}\\    
    \caption{The caption\\$^{1}$\footnotesize{A footnote}}
    \label{tab:BigFrameworkChart}
  \end{center}
\end{table}
\bibpunct{[}{]}{,}{n}{}{,}
\restoregeometry

How the heck do I get rid of this extra page?

Best Answer

You may be better off using the afterpage package and its command \afterpage, along the lines of the following code snippet. By the way, you may want to consider (i) getting rid of all interior single vertical lines in the table and (ii) replacing all double vertical lines with single vertical lines.

\afterpage{%   % be sure to load the "afterpage" package in the document's preamble
\newgeometry{left=1cm,top=1.5cm}
\begin{table}[p!] % don't use [H]
  \footnotesize
  \centering % don't use "center" environment
  \setlength{\tabcolsep}{0.11cm}
    \begin{tabular}{ |r|| *{3}{l|}| *{4}{l|}| *{4}{l|} |l|l|| *{3}{l|}| *{3}{l|}}
      \hline
      % [body of table]
      \hline
    \end{tabular}   
    \caption{The caption}
    \label{tab:BigFrameworkChart}
\end{table}
\clearpage % flush the float
\restoregeometry} % end of \afterpage group