0

I have a table and I was not able to remove additional space that exists after the table's caption.

\begin{table}[ht]
\raggedright
    \begin{tabular}{l|l}
     ...
    \hline
\end{tabular}
 \caption{Notations used in the calculation of the cost function.}\label{cost:calc}
\end{table}

Example view:

enter image description here

How could I prevent additional space generated after a table?

CarLaTeX
  • 62,716
alper
  • 1,389
  • Could you please add a compilable example code that reproduces this issue? –  Apr 22 '19 at 11:00
  • The spacing might depend on the documentclass and the packages you use. Therefore please make your code a compilable minimal working example (MWE) – leandriis Apr 22 '19 at 11:01
  • I have generated a minimal working example where the problem is fixed I am not sure why. But on my original work which is around 1500 lines, the problem still emerges. @leandriis – alper Apr 22 '19 at 11:11
  • @alper: In this case, make a copy of your original file and start commenting out some lines of code, recompile and see if the issue persists. Continue to remove unnecessaray lines of code until you have the smallest document possible that still recreates your problem. – leandriis Apr 22 '19 at 11:12
  • Replacing \begin{table}[ht] into \begin{table}[H] fixed the problem. @leandriis – alper Apr 22 '19 at 11:28
  • 2
  • Often situations like this arise when LaTeX adjusts the space between elements on the page in order to make the page breaks fall at "acceptable" spots. This might explain why the problem doesn't occur when you include only a small amount of text (=> no page break). – LarrySnyder610 Apr 22 '19 at 15:16

0 Answers0