## LaTeX forum ⇒ Page Layout ⇒ Big gap in at the end of the page - what am I doing wrong? Topic is solved

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
lukaszskowron96
Posts: 36
Joined: Tue Oct 09, 2018 1:01 pm

### Big gap in at the end of the page - what am I doing wrong?

Hi,

I encoutered this strange problem. For some reason LATEX decided to leave a big gap at the end of that page and I REALLY need to put this circled text into that gap as it distorts the layout of my next pages and ultimately almost whole document. Please, can you help me fix this?

latexforumbiggap.png (48.29 KiB) Viewed 598 times

This is the part of code that generates those pages:

\begin{table}[!ht]\begin{center}\centering\vspace{5mm}\begin{tabular}{|c|C{0.26\textwidth}|C{0.26\textwidth}|C{0.26\textwidth}|}\hline& \multirow{2}{*}{$$\frac{kB}{s_{um}}=0$$} & \multirow{2}{*}{$$\frac{kB}{s_{um}}=2$$} & \multirow{2}{*}{$$\frac{kB}{s_{um}}=5$$} \\& &  & \\ \hline$$N_{P}=1$$ &\begin{center} \includegraphics[width=0.26\textwidth]{placeholder3} \end{center} & \begin{center}\includegraphics[width=0.26\textwidth]{placeholder3}\end{center}  & \begin{center}\includegraphics[width=0.26\textwidth]{placeholder3}\end{center}\\ \hline$$N_{P}=4$$ &  \begin{center}\includegraphics[width=0.26\textwidth]{placeholder3}\end{center} & \begin{center}\includegraphics[width=0.26\textwidth]{placeholder3}\end{center} &  \begin{center}\includegraphics[width=0.26\textwidth]{placeholder3}\end{center}\\\hline\end{tabular}\end{center}\caption{\label{tab:table-name}Side views of failure mechanisms}\end{table}\subsection{3.5 Circular Foundations with Central Square Perforation}Another interesting case is a combination between two previous cases - a ring foundation with central square perforation. No signs of this foundation analyses have been found in the literature - one of the reasons why it has been decided to look at it. The basic notation for and maximal theoretical perforation ratio is as shown below. The imposed soil-foundation interface is rough.

Where I defined C as:

\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}

lukaszskowron96
Posts: 36
Joined: Tue Oct 09, 2018 1:01 pm
OK, I sorted this out... Just got rid of \vspace{5mm}.

Stefan Kottwitz
Posts: 9513
Joined: Mon Mar 10, 2008 9:44 pm
You could remove further additional space by replacing \begin{center} ... \end{center} by a simple \centering command, within the table environment.

Stefan

lukaszskowron96
Posts: 36
Joined: Tue Oct 09, 2018 1:01 pm
Stefan,

It doesn't seem to work, where exactly I need to put /centering ?

Stefan Kottwitz
Posts: 9513
Joined: Mon Mar 10, 2008 9:44 pm
Directly after \begin{table}[!ht], so:

\begin{table}[!ht]\centering\begin{tabular}{...}...\end{tabular}\caption{...}\end{table}

The reason is, that \begin{center} … \end{center} is for "displayed" centered text, that comes with a whitespace before and after it. \centering does it without additional spacing. The effect of \centering is limited by the table environment anyway, so no \end is needed.

Stefan