How can I change this spacing between text and table?


  • 5
    Welcome to TEX.SE! While I strongly suspect that some user here might be able to read minds :-), unfortunately most of us can't, and we actually need to look at some code. Please provide a full minimal working example which reproduces the issue, possibly starting with \documentclass{...} and ending with \end{document}. In this way we can copy-paste the code and look at the problem without resorting to wild guesses about what you are doing. – campa May 30 '18 at 7:22
  • 2
    The picture is placed at the very top, the table at the very bottom. \raggedbottom could be a try with global consequences. – Johannes_B May 30 '18 at 7:48

My first answer! Sorry, I have not seen any attachment, maybe you can tell me how to find it.

As for this question, \vspace can meet your requirements, my code is like this:


\vspace{-0.5 cm}
\caption{This is caption}\label{table1}
        speed & 15000 & 20000\\
        speed & 28138 & 25463

But also, the floating format influences the spacing between paragraphs, please check your context.

  • 1
    Awesome that you're making answers! Just a pointer: The OP (and future TeX-ers with this problem) probably would find it better if the code you provide is actually runnable out of the box. E.g. it should have a \documentclass and \begin{document}/\end{document} in addition to the you use (which you have added here). – Andreas Storvik Strauman May 30 '18 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.