Page LayoutBig gap in at the end of the page - what am I doing wrong?

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
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?

Post by lukaszskowron96 »

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
latexforumbiggap.png (48.29 KiB) Viewed 4898 times
This is the part of code that generates those pages:

Code: Select all

\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:

Code: Select all

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
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?

Post by lukaszskowron96 »

OK, I sorted this out... Just got rid of \vspace{5mm}. ;)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

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

Post by Stefan Kottwitz »

You could remove further additional space by replacing \begin{center} ... \end{center} by a simple \centering command, within the table environment.

Stefan
LaTeX.org admin
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?

Post by lukaszskowron96 »

Stefan,

It doesn't seem to work, where exactly I need to put /centering ?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

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

Post by Stefan Kottwitz »

Directly after \begin{table}[!ht], so:

Code: Select all

\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
LaTeX.org admin
Post Reply